Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.
Python ai-filmmakingai-videoai-video-generatorapple-siliconhailuoimage-to-videolip-synclocal-ailora-trainingltx-2ltx-2-5ltx-videomacosminimax-h3mlxmusic-generationoffline-aipinokiotext-to-videovideo-generation
release(v5.0.0): native Mac app, redesigned panel, Speech and lip-sync, P-H3-Image, Bench, Pro activation
mrbizarro698ec6cf092c
diff --git a/.gitignore b/.gitignoreindex b9c2f00..aa588aa 100644--- a/.gitignore+++ b/.gitignore@@ -168,6 +168,9 @@ state_studio/# self-referential link. Same trap as ltx-2-mlx above — ignore both spellings.yue2-mlxnode_modules+# Speech engine venv (scripts/speech/speech_setup.sh); both spellings, same reason.+speech-mlx/+speech-mlx# FLUX 3 has a separate MLX environment.diff --git a/README.md b/README.mdindex bbdd40c..959e434 100644--- a/README.md+++ b/README.md@@ -1,234 +1,122 @@-# Phosphene: free local AI video generator for Mac+# Phosphene-**Run LTX-2.5 and MiniMax H3 (Hailuo) on your Apple Silicon Mac. Text-to-video and image-to-video with sound, lip-sync, songs and image editing. Offline: no cloud, no API key, no NVIDIA GPU.**+AI video with sound, songs and images, made locally on your Mac.<p align="center">- <a href="https://phosphene.video/?utm_source=github&utm_medium=readme&utm_campaign=repo&utm_content=top"><img src="assets/logo-readme.png" alt="Phosphene" width="360"></a>+ <img src="assets/the_commuter_hero.gif" alt="The Commuter, a 75-second One Shot made in Phosphene" width="100%"></p>-<h3 align="center"><a href="https://phosphene.video/?utm_source=github&utm_medium=readme&utm_campaign=repo&utm_content=top">Visit Phosphene official site →</a></h3>-<p align="center">- <img src="assets/readme/low_tide_sleeper.webp" alt="The low-tide sleeper: a giant stone sleeper on a black-sand beach, an AI video made locally on a Mac with Phosphene and MiniMax H3" width="100%">-</p>-<p align="center"><sub>“The low-tide sleeper”, MiniMax H3, image to video. Every clip on this page was rendered on one Mac with Phosphene.</sub></p>+“The Commuter”: a 75-second One Shot rendered overnight on one Mac with Hailuo H3, from a single designed still. [More clips](https://phosphene.video/gallery/).-Phosphene is a free, open-source AI video generator that runs locally on a Mac with M1, M2, M3, M4 or M5.-It runs **LTX-2.5** and **MiniMax H3 (Hailuo H3)** for text-to-video and image-to-video with sound in the same pass,-**YuE2** for songs from lyrics, and **FLUX 3 Klein**, **Qwen-Image-Edit** and **FLUX.2** for images. It installs with one click through Pinokio-and is built on Apple's MLX: no CUDA, no cloud GPU, no API key, no credits and no watermark.-Your prompts, pictures and videos never leave your Mac.+[Website](https://phosphene.video) · [Docs](https://phosphene.video/docs/) · [Benchmarks](https://phosphene.video/benchmarks/) · [Changelog](https://phosphene.video/changelog/) · [@PhospheneAI](https://x.com/PhospheneAI)-**Current release: v4.19.19.** Made by Mr Bizarro.+**Current release: v5.0.0** See what's new in the [changelog](https://phosphene.video/changelog/).-## Why Phosphene+Phosphene is a free, open-source app for Apple Silicon Macs, built on Apple's MLX by Mr Bizarro.+Renders run offline, and your prompts, pictures and videos stay on your Mac.+Optional extras download when a feature first needs them.-- **Free, with no credits.** No subscription, no sign-up, no watermark, no per-render charge. Make as many takes as you like.-- **Private and offline.** Rendering happens on your Mac. Download the models once, then work without a connection.-- **Sound comes with the picture.** Footsteps, rooms, voices and lip movement are generated together, not added later.-- **One app for the whole film.** Shots, long takes, songs, stills, trained characters and an editing timeline.-- **Made for the Mac.** Phosphene checks your memory and only offers what your Mac can run.+## What it does-## What you can make+- **Video with LTX-2.5:** turn text or a picture into video with sound from the same prompt.+ Set first and last keyframes, Extend a clip, Retake one moment, or lip-sync a face to your voice or song.+ Upscale & Face Fix and [Motion Control](docs/MOTION_CONTROL.md) are included. Adapts from 16 GB of memory.-### Text-to-video and image-to-video with sound (LTX-2.5 on Apple Silicon)+- **Scenes with Hailuo H3:** make scenes with dialogue you can hear.+ Use keyframes, extend a shot, lip-sync, or add sound to a silent clip.+ About 75 GB, one click from the Pinokio sidebar. Needs 36 GB+ memory.+ Its licence excludes the EU, UK, South Korea and US.-Turn a prompt or a picture into a video clip with sound, using the MLX port of Lightricks' LTX-2.5. Set first and last frames, guide a shot with 3–8 keyframes,-**Extend** a clip, **Retake** one moment, or lip-sync a face to your own voice or song. Upscale & Face Fix is built in.-Works from 16 GB of memory.+- **Music Studio:** YuE2 makes songs with vocals from lyrics and a style.+ Make another take or work on the score. About 11 GB, installed inside the panel. Needs 16 GB+ memory.-<p align="center">- <img src="assets/readme/gold_tear.webp" alt="Stone eye with a gold tear, AI video made on a Mac with LTX-2.5" width="49%">- <img src="assets/readme/ember_hand.webp" alt="A burning ember in a marble palm, AI video made on a Mac with LTX-2.5" width="49%">-</p>-<p align="center"><sub>“Stone eye, gold tear” and “Ember in a marble palm”, LTX-2.5, image to video</sub></p>+- **Images:** FLUX 3 Klein, Qwen-Image-Edit, FLUX.2 via mflux and P-H3-Image by Pruna AI (needs Hailuo H3, 48 GB+) make images and edit them in words, like “make the jacket red”.+ Use up to three reference pictures, then send a still straight to video.-### Run MiniMax H3 (Hailuo) locally on a Mac+- **Speech and lip-sync:** turn text into a spoken voice, then lip-sync a face to it.-MiniMax H3, also called Hailuo H3, makes scenes where people talk, with lips that match their voices.-Use keyframes, extend a shot, lip-sync, or **Add sound** to give a silent clip its own soundscape.-**New, preview:** Pika H3 Flex, Pika Labs' six-step H3, as a Speed choice: about 2.2× faster than Best at the same size. As far as we know, the first Mac port.-About 75 GB, one click from the Pinokio sidebar, from 36 GB of memory.-Its licence excludes the EU, UK, South Korea and US.+- **Bench:** measure what your Mac can do and compare it with other Macs.-<p align="center">- <img src="assets/readme/mirror_blinks.webp" alt="A woman at a theatre mirror whose reflection blinks late, made with MiniMax H3 on a Mac" width="49%">- <img src="assets/readme/lung_mender.webp" alt="An old man whose chest is folded paper, in his workshop, made with MiniMax H3 on a Mac" width="49%">-</p>-<p align="center"><sub>“The mirror blinks late” and “The lung mender”, MiniMax H3, image to video</sub></p>+- **Storyboard, One Shot and the Editor:** build a film from one prompt or shot by shot.+ Cut it on the Editor timeline with music and room tone.-### Long AI films: One Shot, Storyboard and the Editor+- **Train a character:** train a face and voice LoRA on your Mac from your own photos and recordings.-- **One Shot:** one continuous shot of 30 seconds to 2 minutes that never cuts.-- **Storyboard:** turn one idea into a multi-shot film. Plan the shots, render them, keep the best takes, or turn on Auto. Add a song to cut a music video to the beat.-- **Editor:** trim, split, J-cuts and L-cuts, music, titles and transitions. Render one file or send the timeline to DaVinci Resolve, Premiere Pro or After Effects.+- **Scripts and agents:** queue renders through the [local HTTP API](docs/API.md).+ There's also an [image layout API for agents](docs/AGENT_API.md).-<p align="center">- <img src="assets/readme/app_editor.webp" alt="The Phosphene Editor: a timeline for AI video clips on a Mac" width="100%">-</p>-<p align="center"><sub>The Editor: trim the takes, add music and titles, then render or send the cut on.</sub></p>--### Remix your own footage--- **Motion Control:** copy the motion, camera move and pose of a clip you give it while your prompt paints a new subject and scene ([guide](docs/MOTION_CONTROL.md)).-- **Ingredients:** compose 2–8 reference pictures (a character, a prop, a place) into one clip.-- **Colorize:** turn black-and-white footage into colour.+- **Prompt help:** Google's Gemma runs locally for Enhance, training captions and the storyboard planner.+ Enhance sharpens a prompt.<p align="center">- <img src="assets/readme/drowned_ballroom.webp" alt="A diver with a lamp in a flooded ballroom under a chandelier, text-to-video with LTX-2.5 on a Mac" width="100%">+ <img src="https://github.com/user-attachments/assets/0c504d54-1666-4a64-8872-7d471682c8f0" alt="The Phosphene panel" width="100%"></p>-<p align="center"><sub>“The Drowned Ballroom”, LTX-2.5, text to video</sub></p>-### Songs from lyrics with YuE2: a local Suno alternative+## Hardware-Music Studio uses YuE2 to write a full song with vocals and instruments from your lyrics and a style, or an instrumental.-Make another take, cover a song, or get the score. About 11 GB, installed inside the app, from 24 GB of memory.+Apple Silicon only, M1 or newer. Intel Macs and Windows are not supported.-<p align="center">- <img src="assets/readme/neon_mile.webp" alt="A man singing at the wheel of a car at night, a Music Studio song with MiniMax H3 lip-sync" width="49%">- <img src="assets/readme/bust_sings.webp" alt="A marble bust singing, LTX-2.5 lip-sync to a song" width="49%">-</p>-<p align="center"><sub>“Neon Mile”, a Music Studio song sung with MiniMax H3, and “The bust sings”, LTX-2.5 lip-sync</sub></p>--### AI images with FLUX 3 Klein, Qwen-Image-Edit and FLUX.2--New in 4.19.14: FLUX 3 Klein by Black Forest Labs makes an image from a sentence in about 50 seconds on an M4 Max, or edits the reference pictures you give it.-Qwen-Image-Edit and FLUX.2 (via mflux) make images and edit them in words, like “make the jacket red”,-with up to three reference pictures. Ideogram 4 puts readable words on a picture. Send any still straight to video.--<p align="center">- <img src="assets/readme/app_images.webp" alt="The Phosphene Images tab: AI image editing on a Mac with reference pictures" width="100%">-</p>-<p align="center"><sub>Images: describe the change, add up to three reference pictures, pick from four takes.</sub></p>--### Train a character LoRA on your Mac (face and voice)--Train an LTX-2 character LoRA of an original character, or of yourself, on your Mac: face from your photos, voice from your recordings.-Local Gemma writes the training captions for you. Browse and install LTX LoRAs from CivitAI inside the app.--<p align="center">- <img src="assets/phosphene_app_mac.jpg" alt="The Phosphene AI video app on a Mac: LTX-2.5 text-to-video with a trained character LoRA" width="100%">-</p>-<p align="center"><sub>Bizarro, a trained character, in the Video tab: the prompt, the take and the outputs.</sub></p>--### Scripts and AI agents--Add Phosphene to Claude Code, Codex or any MCP client in one line (Phosphene running in Pinokio):--```bash-claude mcp add phosphene -- ~/pinokio/api/phosphene.git/ltx-2-mlx/env/bin/python ~/pinokio/api/phosphene.git/agents/phosphene_mcp.py-```--There is also a `phosphene` command (`agents/phosphene_cli.py`); both are in [`docs/AGENT_TOOLS.md`](docs/AGENT_TOOLS.md).-Under them, everything the app does is reachable over a local HTTP API (`docs/API.md`), so your own script can queue renders too.-There is also an image layout API for agents (`docs/AGENT_API.md`).-Gemma runs locally for prompt **Enhance**, captions and the storyboard planner.--## Mac requirements: M1 to M5, memory and disk--Any Apple Silicon Mac, M1 or newer, including MacBook Air, MacBook Pro, Mac mini and Mac Studio. Memory decides what you can run. Intel Macs and Windows are not supported.--| Memory | What you can make |+| Memory | What to expect || --- | --- |-| 16–24 GB | LTX-2.5 video from text or a picture at smaller sizes, and images. Songs from 24 GB. |-| 32–36 GB | Everything above. MiniMax H3 from 36 GB. |+| 16–24 GB | LTX-2.5 video from text or a picture at smaller sizes, images, and songs. Close other apps and browser tabs before you compose on a 16 GB Mac. |+| 32–36 GB | Everything above. Hailuo H3 from 36 GB. || 48–64 GB | LTX keyframes, Extend, trained characters with Q8 weights, and the High tier. |-| 96 GB+ | Most modes at full size (from 80 GB). Size limits come off at 120 GB. |--**Disk:** the first install downloads 27.5 GB before Start, then about 10.7 GB in the background.-MiniMax H3 (about 75 GB) and Music Studio (about 11 GB) are optional.--## How fast is it on a Mac?+| 96 GB+ | Most modes at full size (available from 80 GB). Size limits come off at 120 GB. |-On an M4 Max with 64 GB, a 5-second LTX-2.5 clip at High takes about 6 minutes,-a 5-second MiniMax H3 clip on Draft + Fast about 5 minutes, and a 3-minute song about 3 minutes.-Smaller Macs take longer: across Phosphene users, a 5-second LTX-2.5 clip at Balanced (480p) took a median 10m40s on a 16 GB M4.-Phosphene estimates the time before you press Generate. See render times by Mac.+Phosphene is built on an M4 Max with 64 GB. See the [benchmarks](https://phosphene.video/benchmarks/).-<p align="center">- <img src="assets/readme/lantern_fjord.webp" alt="A man in a rowing boat among floating lanterns in a fjord, made with MiniMax H3 on a Mac" width="100%">-</p>-<p align="center"><sub>“Lantern Fjord”, MiniMax H3, image to video</sub></p>+**Disk (Pinokio):** Start opens after the runtime is installed, with no model downloads. Allow 18 GB free for setup, including 15 GB kept free. Choose models inside the app: LTX-2.5 Q4 video is about 27.5 GB; image models download on first use.+Hailuo H3 (~75 GB) and the music engine (~11 GB) are optional.-## One-click install with Pinokio+## Install-Phosphene installs with one click through Pinokio (pinokio.computer), a free app launcher:+Today, install through [Pinokio](https://pinokio.computer):1. Install Pinokio.2. Open **Discover → Download from URL** and paste `https://github.com/mrbizarro/phosphene`.3. Press **Install**.-4. Press **Start**, then open the app.+4. Press **Start**, then open the panel.To update, press **Update** in Pinokio, then restart Phosphene.-The [docs](https://phosphene.video/docs/?utm_source=github&utm_medium=readme&utm_campaign=repo&utm_content=docs) have the step-by-step install, troubleshooting and every feature in detail.-To install by hand instead, follow the [manual install](docs/MANUAL_INSTALL.md).-Linux on Apple Silicon (`docs/LINUX.md`) is maintained by @joshuaswarren on a best-effort basis.--## What's coming--These open with **Phosphene 5.0**:--- **A Mac installer,** so you won't need Pinokio. It can reuse the models your Pinokio install already downloaded.-- **Pro,** for people who use Phosphene every day: new features and speed-ups first, Phosphene Remote to start and watch renders from your iPhone, and priority support. $15 a month or $120 a year.-- **Founding:** 3 years of Pro for one payment of $149, limited to 200 seats.--Nothing is on sale yet. [Get Phosphene for Mac and join the list →](https://phosphene.video/?utm_source=github&utm_medium=readme&utm_campaign=repo&utm_content=coming)-Everything available today stays free, Phosphene stays open source under MIT, and new model ports reach everyone free.--## FAQ--**Is Phosphene really free?**-Yes. No subscription, credits or watermark, and every feature available today stays free. Pro adds speed-ups and Remote; it does not lock today's features.--**Does it work offline?**-Yes. Download the models once, then render without a connection. When online, it checks GitHub for updates and downloads models you ask for.--**Can I run LTX-2 or MiniMax H3 on an M1, M2 or 16 GB Mac?**-LTX-2.5 runs from 16 GB at smaller sizes on any Apple Silicon Mac. MiniMax H3 needs 36 GB. The Mac requirements table above has the details.+See the [full install guide](https://phosphene.video/docs/install/) for details, or the [manual install](docs/MANUAL_INSTALL.md) to do it by hand.-**LTX-2.5 or MiniMax H3: which should I use?**-MiniMax H3 for people talking: dialogue and voices that match lips. LTX-2.5 for everything else: more modes, keyframes, trained characters, Motion Control and smaller Macs. Phosphene has both in one switcher.+There is also a native Mac app, no Pinokio needed: see [phosphene.video/download](https://phosphene.video/download/).+It can reuse models your Pinokio install already downloaded.-**Are LTX-2.5 and MiniMax H3 open source?**-Their weights are open to download, each under its own community licence (see License below). Phosphene's code is MIT.+[Linux on Apple Silicon](docs/LINUX.md) is maintained by @joshuaswarren on a best-effort basis.+It is not installed by Pinokio.-**Does it run on Windows or Intel Macs?**-No. Phosphene is built for Apple Silicon. On Windows with an NVIDIA GPU, look at ComfyUI or WanGP.+## Where we're going-**Can I run Wan 2.2 or FramePack on a Mac?**-Phosphene doesn't include them. Draw Things lists Wan 2.2, and mlx-video runs Wan 2.1 and 2.2 from Python. Phosphene's LTX-2.5 and MiniMax H3 cover the same jobs with sound.+- Pro, for people who use Phosphene every day or earn money with it.+- More models. Bringing new open models to the Mac first is the point. New ports reach everyone free; Pro may get them up to 24 hours early.+- Everything available today stays free.-**What is the best local AI video generator for Mac? How is Phosphene different from ComfyUI, Draw Things or LTX Desktop?**-ComfyUI gives you a node graph for every model; Phosphene gives you ready-made workflows built on MLX for the Mac.-Draw Things has an App Store app and cloud compute; LTX Desktop comes from the makers of LTX.-Each is ahead of Phosphene somewhere; pick the one that fits how you work.+## Pro-**Is it an alternative to Veo 3, Runway, Kling or Higgsfield?**-Those run in the cloud and charge per render. Phosphene runs open models on your own Mac for free. Cloud models are faster, and some are sharper; Phosphene is private, unlimited and yours.+We love open source. Phosphene will always be open source and well maintained.+If you can afford it, Pro keeps the lights on: faster renders, priority support and more.-**Can I use what I make commercially?**-Phosphene's code is MIT. Each model has its own licence, and some are non-commercial (see License below). Check a model's licence before you sell its output.+Pro is optional. What it includes and how to get it: [phosphene.video/pricing](https://phosphene.video/pricing/).## Privacy-No prompt, picture, video or filename is uploaded. The app listens on `127.0.0.1` only, with no login, so don't expose it to a network.+No prompt, picture, video or filename is uploaded; the panel listens on `127.0.0.1` only, with no login, so don't expose it to a network.Phosphene checks GitHub for updates and contacts Hugging Face or CivitAI only when you download models or LoRAs.Anonymous usage counts (version, hardware class such as “M4 Max / 64 GB”, and render stats) are on by default;-one click in Settings turns them off, and every field is listed in `docs/ANALYTICS.md`.-Make original or stylised characters, or yourself with documented consent; follow the acceptable use policy on phosphene.video.+one click in Settings turns them off, and [every field is documented](docs/ANALYTICS.md).## Contributing-Bug reports, ideas in Discussions and pull requests are welcome.+[Bug reports](https://github.com/mrbizarro/phosphene/issues) and PRs are welcome.A report with your chip, macOS version, Phosphene version and the error line is worth as much as a patch.-Contributors are credited in the release notes. See CONTRIBUTING.md.+Contributors are credited in the [release notes](https://github.com/mrbizarro/phosphene/releases). See [CONTRIBUTING.md](CONTRIBUTING.md).## Credits- Lightricks for LTX-Video 2.x, and @dgrauet for ltx-2-mlx, the MLX port Phosphene builds on.- MiniMax for Hailuo H3, and Apple ML research for MLX.- LightX2V for lightx2v v1.3, the adapter for Best on High; TaoLive (TaoMate-H3) and @kijai for the 3-step Fast adapter.-- Pika Labs (Mellis, Inc.) for Pika H3 Flex, a MiniMax H3 Model Derivative, downloaded from Pika's own Hugging Face repo at a pinned revision and converted on your Mac. Powered by MiniMax H3.-- Black Forest Labs for FLUX 3 Klein, and mflux-community for its MLX conversions.- @filipstrand for mflux; Multimodal Art Projection for YuE2 and @vanch007 for its MLX port.- mlx-community for Gemma on MLX, and @cocktailpeanut for Pinokio.@@ -238,9 +126,9 @@ and everyone who filed a bug.## License-Phosphene's own code is MIT. The AI models are not part of this repo and each has its own licence.+Phosphene's own code is [MIT](LICENSE). The AI models are not part of this repo and each has its own licence.Phosphene shows a model's licence before download or first run when the licence requires it.Ideogram 4, YuE2's weights, FLUX.1 Krea [dev] and Bria FIBO are non-commercial.YuE2 lets individual creators sell songs they make. Hailuo H3's licence excludes the EU, UK, South Korea and US.-Check a model's licence before using its output commercially. The licence texts are in the `LICENSES` folder.+Check a model's licence before using its output commercially. [Model licence texts](LICENSES/).diff --git a/VERSION b/VERSIONindex 41d1a1b..0062ac9 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-4.19.19+5.0.0diff --git a/agents/phosphene_cli.py b/agents/phosphene_cli.pyindex 99f9965..513412c 100644--- a/agents/phosphene_cli.py+++ b/agents/phosphene_cli.py@@ -148,6 +148,15 @@ def cmd_stop(args, ph: Phosphene) -> int:return 0+def cmd_open_cut(args, ph: Phosphene) -> int:+ spec = json.loads(Path(args.spec).read_text(encoding="utf-8"))+ doc = ph.open_cut(spec, wait=not args.no_wait)+ lines = [f"Opened {doc.get('title')!r} in the Editor: {doc.get('clips')} clips, {doc.get('duration')} s",+ f" {doc.get('editor_url')}"] + [f" note: {n}" for n in doc.get("notes") or []]+ _print(args, doc, "\n".join(lines))+ return 0 if doc.get("ok") else 1++def mcp_entry() -> dict:return {"mcpServers": {"phosphene": {"command": sys.executable, "args": [str(HERE / "phosphene_mcp.py")]}}}@@ -223,6 +232,9 @@ def build_parser() -> argparse.ArgumentParser:p.add_argument("--out", required=True)p = make("stop", cmd_stop, "stop the running job")p.add_argument("job", nargs="?")+ p = make("open-cut", cmd_open_cut, "turn a cut spec (JSON) into a film in the Editor, ready to edit by hand")+ p.add_argument("spec", help="the cut spec file (phosphene_cut: 1; see docs/API.md)")+ p.add_argument("--no-wait", action="store_true", help="answer before the proxies are built")make("mcp-config", cmd_mcp_config, "the MCP server entry for agent tools")return apdiff --git a/agents/phosphene_client.py b/agents/phosphene_client.pyindex cd7d846..2aeebe4 100644--- a/agents/phosphene_client.py+++ b/agents/phosphene_client.py@@ -405,6 +405,17 @@ class Phosphene:return saved# ---- licences (the studio asks before some models run; a person accepts)+ def open_cut(self, spec: dict, *, wait: bool = True) -> dict:+ """An agent's cut -> a film in the Editor, ready to edit by hand. `spec` is a cut spec+ (`phosphene_cut: 1`, clips with in/at, soundtrack, overlays, levels; docs/API.md). Returns the new+ film's id, the notes (a clip slowed to fill its slot, a hole) and `editor_url` (relative to the studio).+ `wait` answers once the proxies are built, so the film plays at once."""+ doc = self.post("/storyboard/edit/import", json_body={"cut": spec, "wait": bool(wait)},+ timeout=900 if wait else None)+ if isinstance(doc, dict) and doc.get("editor_url"):+ doc["editor_url"] = self.url + doc["editor_url"]+ return doc+def licences(self) -> dict:return self.get("/licences")diff --git a/agents/phosphene_mcp.py b/agents/phosphene_mcp.pyindex 7bfff02..bb03066 100644--- a/agents/phosphene_mcp.py+++ b/agents/phosphene_mcp.py@@ -54,6 +54,36 @@ TOOLS = ["H3: draft | fast_hd | standard | high (see phosphene_status)."},"seconds": {"type": "number", "description": "Length. LTX: about 2-10 s (default 5). H3: 3, 5, 10 or 15."},"seed": _SEED, "label": {"type": "string"}, "wait": _WAIT}}},+ {"name": "phosphene_open_cut",+ "description": "Hand a finished cut to a person: turn your edit (clips with in-points and film positions, the "+ "soundtrack, overlays, levels) into a film in Phosphene's Editor, saved and ready to edit by hand. "+ "Each clip plays from its `at` to the next clip's `at`; a slot slightly longer than the take is "+ "filled by slowing the clip (reported in notes). Files anywhere on this Mac are brought into the "+ "film's folder; the originals are not touched. Returns the film id and editor_url.",+ "inputSchema": {"type": "object", "required": ["clips"], "additionalProperties": False, "properties": {+ "title": {"type": "string"},+ "fps": {"type": "number", "description": "Frame rate the cuts snap to (default 24)."},+ "clips": {"type": "array", "items": {"type": "object", "required": ["path"], "properties": {+ "path": {"type": "string", "description": "Absolute path of the clip."},+ "in": {"type": "number", "description": "Source second the clip starts at (default 0)."},+ "out": {"type": "number", "description": "Optional source second it may not play past."},+ "at": {"type": "number", "description": "Film second it starts at (omit on every clip to lay them back to back)."},+ "length": {"type": "number", "description": "Film seconds (the last clip, or clips without at)."},+ "speed": {"type": "number"}, "gain": {"type": "number", "description": "Clip sound level 0-1."},+ "mute": {"type": "boolean", "description": "Drop this clip's own sound (e.g. a lip-sync shot whose voice is in the score)."},+ "fade_in": {"type": "number"}, "fade_out": {"type": "number"},+ "title": {"type": "string"}}}},+ "clip_gain": {"type": "number", "description": "Default clip sound level 0-1 (e.g. 0.9 under a score)."},+ "clip_fades": {"type": "array", "items": {"type": "number"}, "minItems": 2, "maxItems": 2,+ "description": "Sound fade in/out seconds on every clip edge, e.g. [0.04, 0.06]."},+ "soundtrack": {"type": "object", "properties": {"path": {"type": "string"}, "at": {"type": "number"},+ "in": {"type": "number"}, "out": {"type": "number"}, "gain": {"type": "number"}}},+ "overlays": {"type": "array", "items": {"type": "object", "properties": {+ "path": {"type": "string"}, "text": {"type": "string"}, "at": {"type": "number"},+ "end": {"type": "number"}, "in": {"type": "number"}}}},+ "sounds": {"type": "array", "items": {"type": "object", "properties": {+ "path": {"type": "string"}, "at": {"type": "number"}, "in": {"type": "number"},+ "out": {"type": "number"}, "gain": {"type": "number"}, "title": {"type": "string"}}}}}}},{"name": "phosphene_make_image","description": "Queue still images with the image engine chosen in Phosphene's settings.","inputSchema": {"type": "object", "required": ["prompt"], "additionalProperties": False, "properties": {@@ -192,6 +222,16 @@ class Tools:def phosphene_fetch(self, job_id, dest) -> dict:return {"ok": True, "files": self.ph().fetch(job_id, dest)}+ def phosphene_open_cut(self, clips, title=None, fps=None, clip_gain=None, clip_fades=None, soundtrack=None,+ overlays=None, sounds=None) -> dict:+ spec = {"phosphene_cut": 1, "clips": clips}+ for k, v in (("title", title), ("fps", fps), ("clip_gain", clip_gain), ("clip_fades", clip_fades),+ ("soundtrack", soundtrack),+ ("overlays", overlays), ("sounds", sounds)):+ if v is not None:+ spec[k] = v+ return self.ph().open_cut(spec, wait=True)+def phosphene_stop(self, job_id=None) -> dict:return {"ok": True, "result": self.ph().stop(job_id)}diff --git a/assets/logo-header.png b/assets/logo-header.pngindex dcd01d9..fa7c45d 100644Binary files a/assets/logo-header.png and b/assets/logo-header.png differdiff --git a/assets/logo-readme.png b/assets/logo-readme.pngindex 497b1e8..5c2c5fe 100644Binary files a/assets/logo-readme.png and b/assets/logo-readme.png differdiff --git a/assets/phosphene_app_mac.jpg b/assets/phosphene_app_mac.jpgdeleted file mode 100644index ddbc049..0000000Binary files a/assets/phosphene_app_mac.jpg and /dev/null differdiff --git a/assets/phosphene_banner.png b/assets/phosphene_banner.pngindex b1e08ce..869106d 100644Binary files a/assets/phosphene_banner.png and b/assets/phosphene_banner.png differdiff --git a/assets/phosphene_civitai_cover.png b/assets/phosphene_civitai_cover.pngindex 782873c..862d2bd 100644Binary files a/assets/phosphene_civitai_cover.png and b/assets/phosphene_civitai_cover.png differdiff --git a/assets/phosphene_logo.png b/assets/phosphene_logo.pngindex e066156..5c2c5fe 100644Binary files a/assets/phosphene_logo.png and b/assets/phosphene_logo.png differdiff --git a/assets/phosphene_social_card.png b/assets/phosphene_social_card.pngindex c4c355a..b1cae16 100644Binary files a/assets/phosphene_social_card.png and b/assets/phosphene_social_card.png differdiff --git a/assets/phosphene_x_header.png b/assets/phosphene_x_header.pngindex 03494b3..5b8668f 100644Binary files a/assets/phosphene_x_header.png and b/assets/phosphene_x_header.png differdiff --git a/assets/pro/compare.json b/assets/pro/compare.jsonnew file mode 100644index 0000000..5cf0a2d--- /dev/null+++ b/assets/pro/compare.json@@ -0,0 +1,8 @@+{+ "note": "Same clip rendered twice on the same Mac: the Free path and the Pro speed profile. Measured, not projected.",+ "machine": "M4 Max · 64 GB",+ "items": [+ {"id": "h3_5s", "engine": "h3", "title": "Hailuo H3 · High · i2v · 5 s", "video": "/assets/pro/compare_h3_5s.mp4", "poster": "/assets/pro/compare_h3_5s.jpg",+ "free_s": 896.5, "pro_s": 601.9, "speedup": 1.49, "seed": 4101, "quality": "faces, motion, speech and sync reviewed equal (identity 0.868 vs 0.863)"}+ ]+}diff --git a/assets/pro/compare_h3_5s.jpg b/assets/pro/compare_h3_5s.jpgnew file mode 100644index 0000000..c7251a3Binary files /dev/null and b/assets/pro/compare_h3_5s.jpg differdiff --git a/assets/pro/compare_h3_5s.mp4 b/assets/pro/compare_h3_5s.mp4new file mode 100644index 0000000..d529cdbBinary files /dev/null and b/assets/pro/compare_h3_5s.mp4 differdiff --git a/assets/readme/app_editor.webp b/assets/readme/app_editor.webpdeleted file mode 100644index d4a75d7..0000000Binary files a/assets/readme/app_editor.webp and /dev/null differdiff --git a/assets/readme/app_images.webp b/assets/readme/app_images.webpdeleted file mode 100644index cefee54..0000000Binary files a/assets/readme/app_images.webp and /dev/null differdiff --git a/assets/readme/bust_sings.webp b/assets/readme/bust_sings.webpdeleted file mode 100644index 8b9b69a..0000000Binary files a/assets/readme/bust_sings.webp and /dev/null differdiff --git a/assets/readme/drowned_ballroom.webp b/assets/readme/drowned_ballroom.webpdeleted file mode 100644index 8eb83e5..0000000Binary files a/assets/readme/drowned_ballroom.webp and /dev/null differdiff --git a/assets/readme/ember_hand.webp b/assets/readme/ember_hand.webpdeleted file mode 100644index bfcae2b..0000000Binary files a/assets/readme/ember_hand.webp and /dev/null differdiff --git a/assets/readme/gold_tear.webp b/assets/readme/gold_tear.webpdeleted file mode 100644index 5410875..0000000Binary files a/assets/readme/gold_tear.webp and /dev/null differdiff --git a/assets/readme/lantern_fjord.webp b/assets/readme/lantern_fjord.webpdeleted file mode 100644index d58dc91..0000000Binary files a/assets/readme/lantern_fjord.webp and /dev/null differdiff --git a/assets/readme/low_tide_sleeper.webp b/assets/readme/low_tide_sleeper.webpdeleted file mode 100644index 66b2305..0000000Binary files a/assets/readme/low_tide_sleeper.webp and /dev/null differdiff --git a/assets/readme/lung_mender.webp b/assets/readme/lung_mender.webpdeleted file mode 100644index 4f1fafe..0000000Binary files a/assets/readme/lung_mender.webp and /dev/null differdiff --git a/assets/readme/mirror_blinks.webp b/assets/readme/mirror_blinks.webpdeleted file mode 100644index b059709..0000000Binary files a/assets/readme/mirror_blinks.webp and /dev/null differdiff --git a/assets/readme/neon_mile.webp b/assets/readme/neon_mile.webpdeleted file mode 100644index 02666e4..0000000Binary files a/assets/readme/neon_mile.webp and /dev/null differdiff --git a/assets/readme/visit_website.svg b/assets/readme/visit_website.svgdeleted file mode 100644index 0987cf9..0000000--- a/assets/readme/visit_website.svg+++ /dev/null@@ -1,18 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="720" height="112" viewBox="0 0 720 112" role="img" aria-label="Visit our official website: phosphene.video">- <title>Visit our official website: phosphene.video</title>- <defs>- <linearGradient id="fill" x1="0" y1="0" x2="1" y2="0">- <stop offset="0" stop-color="#ff2e9f"/>- <stop offset="0.5" stop-color="#b14aff"/>- <stop offset="1" stop-color="#5eeaff"/>- </linearGradient>- <linearGradient id="shine" x1="0" y1="0" x2="0" y2="1">- <stop offset="0" stop-color="#ffffff" stop-opacity="0.28"/>- <stop offset="0.55" stop-color="#ffffff" stop-opacity="0"/>- </linearGradient>- </defs>- <rect x="4" y="4" width="712" height="104" rx="52" fill="url(#fill)"/>- <rect x="4" y="4" width="712" height="104" rx="52" fill="url(#shine)"/>- <text x="360" y="54" text-anchor="middle" fill="#05071a" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="32" font-weight="800" letter-spacing="0.2">Visit our official website →</text>- <text x="360" y="86" text-anchor="middle" fill="#05071a" fill-opacity="0.82" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="21" font-weight="600">phosphene.video · free download for Mac</text>-</svg>diff --git a/assets/remote/remote-film.mp4 b/assets/remote/remote-film.mp4new file mode 100644index 0000000..e28b577Binary files /dev/null and b/assets/remote/remote-film.mp4 differdiff --git a/assets/remote/remote-film.webp b/assets/remote/remote-film.webpnew file mode 100644index 0000000..0dab7feBinary files /dev/null and b/assets/remote/remote-film.webp differdiff --git a/assets/screenshot_brand_wide.png b/assets/screenshot_brand_wide.pngindex b1e08ce..869106d 100644Binary files a/assets/screenshot_brand_wide.png and b/assets/screenshot_brand_wide.png differdiff --git a/assets/screenshot_modes.jpg b/assets/screenshot_modes.jpgindex 19ad74c..512f50f 100644Binary files a/assets/screenshot_modes.jpg and b/assets/screenshot_modes.jpg differdiff --git a/assets/screenshot_modes_quality.jpg b/assets/screenshot_modes_quality.jpgindex e93b924..d8a076a 100644Binary files a/assets/screenshot_modes_quality.jpg and b/assets/screenshot_modes_quality.jpg differdiff --git a/assets/screenshot_panel_full.jpg b/assets/screenshot_panel_full.jpgindex d064af1..f80ca1e 100644Binary files a/assets/screenshot_panel_full.jpg and b/assets/screenshot_panel_full.jpg differdiff --git a/assets/screenshots/phos_01_video_tab.png b/assets/screenshots/phos_01_video_tab.pngindex b6280b0..6694679 100644Binary files a/assets/screenshots/phos_01_video_tab.png and b/assets/screenshots/phos_01_video_tab.png differdiff --git a/assets/screenshots/phos_02_images_tab.png b/assets/screenshots/phos_02_images_tab.pngindex 6bd57e2..a321ad8 100644Binary files a/assets/screenshots/phos_02_images_tab.png and b/assets/screenshots/phos_02_images_tab.png differdiff --git a/assets/screenshots/phos_03_audio_tab.png b/assets/screenshots/phos_03_audio_tab.pngindex 6cad705..22fc3e9 100644Binary files a/assets/screenshots/phos_03_audio_tab.png and b/assets/screenshots/phos_03_audio_tab.png differdiff --git a/assets/screenshots/phos_04_train_tab.png b/assets/screenshots/phos_04_train_tab.pngindex 448896d..238c46e 100644Binary files a/assets/screenshots/phos_04_train_tab.png and b/assets/screenshots/phos_04_train_tab.png differdiff --git a/assets/screenshots/phos_05_character_mode.png b/assets/screenshots/phos_05_character_mode.pngindex 4be1142..f2ac456 100644Binary files a/assets/screenshots/phos_05_character_mode.png and b/assets/screenshots/phos_05_character_mode.png differdiff --git a/bench.py b/bench.pynew file mode 100644index 0000000..1ecaa2b--- /dev/null+++ b/bench.py@@ -0,0 +1,1392 @@+"""Phosphene Bench — a fixed, versioned benchmark of local AI video on a Mac.++One button (Settings -> Phosphene Bench) renders the suite below through the+panel's OWN queue — the same make_job() path, the same worker, the same timer+that every real render and the public /benchmarks numbers use — and turns the+times into a result card (PNG), a JSON record and a plain-text summary.++What makes a benchmark worth quoting is that nobody can tune it, so the rules+live here, in code, not in a doc:++* THE SUITE IS FROZEN. Prompts, seeds, sizes, lengths and step order are data+ in SUITE. `suite_fingerprint()` hashes that data and test_bench.py pins the+ hash to SUITE_FINGERPRINT, so a change that does not also bump SUITE_ID+ ("PB1" -> "PB2") fails the build. Results from two suites are never mixed.+* THE SAME SETTINGS FOR EVERY MAC. The only per-Mac difference is the one the+ app already makes on every render: below 48 GB the Balanced canvas is the+ Compact tier's 768x448 (LTX_QUALITIES applies the clamp). The record says+ which canvas ran, so comparisons stay like for like.+* NOTHING ELSE ON THE GPU. A run refuses to start while anything is queued,+ running, or holding the GPU gate, and it never queues behind other work.+* NEVER A SILENT DOWNLOAD. A step whose model is not on disk is reported+ `missing` with an install offer; the run skips it. Nothing is fetched unless+ the person clicks Install.+* NO BEST-OF. A run that misses a core step is `complete: false` and cannot be+ submitted. Submitting sends EVERY complete run of this suite stored on the+ Mac, and the leaderboard takes each Mac's median.++This module never imports mlx_ltx_panel: the panel hands it a `host` object+(panel/routes_bench.py) with the handful of operations it needs, so the unit+tests drive the runner with a fake host and no GPU.+"""+from __future__ import annotations++import copy+import ctypes+import ctypes.util+import hashlib+import json+import os+import platform+import re+import statistics+import subprocess+import threading+import time+import uuid+from pathlib import Path++import hostinfo++SCHEMA = "phosphene-bench/1"+SUITE_ID = "PB1"+SUITE_NAME = "Phosphene Bench 1"+# sha256 of the canonical suite data, first 12 hex. test_bench.py recomputes+# it: editing SUITE without bumping SUITE_ID (and this pin) fails the build.+SUITE_FINGERPRINT = "170df0bdfe5a"++# Fixed for every Mac. 20261028: the date this suite was frozen for.+SEED = 20261028+# A real prompt with real sound, not a smoke-test string — the Bench renders+# a clip people will look at, and audio is half of what LTX-2.5 generates.+VIDEO_PROMPT = (+ "A lighthouse keeper climbs a spiral iron staircase at dusk, a lantern "+ "swinging in his hand, warm light sweeping across rough stone walls and "+ "a small round window full of stormy sea. Audio: boots ringing on iron "+ "steps, wind whistling through a cracked pane, distant waves breaking, "+ "no music, no speech."+)+IMAGE_PROMPT = (+ "A ceramic teapot on a sunlit wooden table beside an open window, a thin "+ "curl of steam rising from the spout, soft morning light, linen curtain "+ "moving in the breeze, shallow depth of field, natural colour photograph."+)++LABEL_PREFIX = "Phosphene Bench"++# The steps, in run order. `form` is exactly what make_job() receives — the+# same fields the panel's own Generate button posts. Every field that could+# change the work is pinned explicitly, never left to a default that a later+# release, a saved setting or a Load Params could move:+# enhance off (no prompt rewrite), upscale off (no export pass), accel off,+# schedule_preset "" (the tuned default), temporal_mode native, one seed.+_LTX_COMMON = {+ "engine": "ltx", "mode": "t2v", "prompt": VIDEO_PROMPT, "seed": str(SEED),+ "frame_rate": "24", "enhance": "off", "upscale": "off", "accel": "off",+ "schedule_preset": "", "temporal_mode": "native", "no_music": "off",+ "steps": "8", "negative_prompt": "",+}+SUITE: dict = {+ "id": SUITE_ID,+ "name": SUITE_NAME,+ "seed": SEED,+ "steps": [+ {+ # UNTIMED warm-up. Loads the video engine so the timed LTX steps+ # measure the Mac, not the disk or the first-use compile. The+ # public /benchmarks drop each install's first render on an+ # engine for the same reason. Its wall time is still recorded.+ "id": "warmup", "kind": "ltx", "core": False, "timed": False,+ "label": "Engine warm-up", "what": "1-second LTX-2.5 Quick clip, excluded from timed results",+ "quality": "quick", "seconds": 1,+ "form": {**_LTX_COMMON, "quality": "quick", "frames": "25"},+ },+ {+ "id": "ltx_quick_5s", "kind": "ltx", "core": True, "timed": True,+ "label": "LTX-2.5 Quick · 5 s", "what": "5-second video with sound, 640×448, 121 frames at 24 fps",+ "quality": "quick", "seconds": 5,+ "form": {**_LTX_COMMON, "quality": "quick", "frames": "121"},+ },+ {+ "id": "ltx_balanced_5s", "kind": "ltx", "core": True, "timed": True,+ "headline": True,+ "label": "LTX-2.5 Balanced · 5 s", "what": "5-second video with sound, 1024×576, 121 frames at 24 fps",+ "quality": "balanced", "seconds": 5,+ "form": {**_LTX_COMMON, "quality": "balanced", "frames": "121"},+ },+ {+ "id": "image_klein", "kind": "image", "core": True, "timed": True,+ "label": "FLUX.2 [klein] 4B · 4 images", "what": "Four 1024×1024 images in one job, 4 steps, 4-bit",+ "images": 4,+ "form": {"mode": "image", "prompt": IMAGE_PROMPT, "seed": str(SEED),+ "engine_override": "flux2_klein_inline", "aspect": "1:1",+ "n": "4", "refs": "[]", "loras": "[]"},+ },+ {+ # OPTIONAL. Hailuo H3 is a 75 GB install whose licence excludes+ # the EU, UK, South Korea and the US — the Bench never offers to+ # download it and never puts it in the headline. It runs only+ # where it is already installed, capable and accepted. Best+ # sampler pinned (h3_tristep=0, no Turbo, Auto steps) so the+ # Fast adapter being installed or not cannot change the work.+ "id": "h3_draft_5s", "kind": "h3", "core": False, "timed": True,+ "label": "Hailuo H3 Draft · 5 s", "what": "Optional 5-second video, only with H3 already installed",+ "seconds": 5,+ "form": {"engine": "h3", "mode": "t2v", "prompt": VIDEO_PROMPT,+ "seed": str(SEED), "h3_quality": "draft", "h3_length": "5s",+ "h3_tristep": "0", "h3_turbo": "", "h3_steps": "",+ "h3_upscale": "off", "h3_orientation": "landscape",+ "enhance": "off", "negative_prompt": ""},+ },+ ],+}++STEP_IDS = tuple(s["id"] for s in SUITE["steps"])+CORE_STEP_IDS = tuple(s["id"] for s in SUITE["steps"] if s["core"])+HEADLINE_STEP = next(s["id"] for s in SUITE["steps"] if s.get("headline"))+# What the image step needs on disk (the HF cache) and how big it is.+KLEIN_REPO = "Runpod/FLUX.2-klein-4B-mflux-4bit"+KLEIN_GB = 4.3+# The snapshot folders mflux's FLUX.2 loader reads (checked before a run).+KLEIN_COMPONENTS = ("transformer", "vae", "text_encoder", "tokenizer")++STEP_STATUSES = ("ready", "missing", "optional_skip", "queued", "running",+ "done", "failed", "skipped", "cancelled")+THERMAL_STATES = ("nominal", "fair", "serious", "critical", "unknown")+++# ---- the suite fingerprint -------------------------------------------------++def suite_fingerprint(suite: dict | None = None) -> str:+ """sha256 over the canonical JSON of everything that defines the work.++ Labels and blurbs are copy, not work, so they are left out: rewording a+ step must not invalidate every result ever recorded."""+ s = suite or SUITE+ core = {+ "id": s["id"], "seed": s["seed"],+ "steps": [{k: v for k, v in st.items() if k not in ("label", "what")}+ for st in s["steps"]],+ }+ blob = json.dumps(core, sort_keys=True, separators=(",", ":"), ensure_ascii=False)+ return hashlib.sha256(blob.encode("utf-8")).hexdigest()[:12]+++def step_def(step_id: str) -> dict:+ for s in SUITE["steps"]:+ if s["id"] == step_id:+ return s+ raise KeyError(step_id)+++def job_form(step_id: str) -> dict:+ """The make_job form for a step: a fresh copy (callers may not mutate the+ suite), with the queue label added. Values are strings, as a browser+ form would send them."""+ st = step_def(step_id)+ form = dict(st["form"])+ form["preset_label"] = f"{LABEL_PREFIX} · {st['label']}"+ return form+++# ---- the plan: what WILL run on this Mac ------------------------------------++def plan(readiness: dict, canvases: dict | None = None) -> list[dict]:+ """Ordered steps with a status each, from a readiness snapshot.++ `readiness` (built by the host from the panel's own probes):+ {"ltx": {"ok": bool, "generation": "ltx25", "missing_keys": [...]},+ "image": {"ok": bool, "gb": 4.3},+ "h3": {"installed": bool, "capable": bool, "licence_ok": bool}}+ `canvases`: {"quick": "640×448", "balanced": "768×448", ...} — the canvas+ THIS Mac renders each quality at (already tier-clamped by the panel).++ Pure: the same readiness gives the same plan, byte for byte.+ """+ canvases = canvases or {}+ ltx = readiness.get("ltx") or {}+ img = readiness.get("image") or {}+ h3 = readiness.get("h3") or {}+ out: list[dict] = []+ for st in SUITE["steps"]:+ row = {"id": st["id"], "label": st["label"], "what": st["what"],+ "kind": st["kind"], "core": st["core"], "timed": st["timed"],+ "headline": bool(st.get("headline")), "status": "ready",+ "reason": "", "install": None}+ if st["kind"] == "ltx":+ canvas = canvases.get(st["quality"])+ if canvas:+ row["canvas"] = canvas+ row["what"] = re.sub(r"\d+×\d+", canvas, st["what"])+ if ltx.get("generation") and ltx["generation"] != "ltx25":+ row["status"], row["reason"] = "missing", "wrong_generation"+ elif not ltx.get("ok"):+ row["status"], row["reason"] = "missing", "ltx_missing"+ row["install"] = {"kind": "models",+ "keys": list(ltx.get("missing_keys") or [])}+ elif st["kind"] == "image":+ row["canvas"] = "1024×1024"+ if not img.get("ok"):+ row["status"], row["reason"] = "missing", "image_missing"+ row["install"] = {"kind": "image", "repo": KLEIN_REPO,+ "gb": float(img.get("gb") or KLEIN_GB)}+ elif st["kind"] == "h3":+ row["canvas"] = "640×384"+ if not h3.get("capable"):+ row["status"], row["reason"] = "optional_skip", "h3_not_capable"+ elif not h3.get("installed"):+ row["status"], row["reason"] = "optional_skip", "h3_not_installed"+ elif not h3.get("licence_ok"):+ row["status"], row["reason"] = "optional_skip", "h3_licence"+ out.append(row)+ return out+++def plan_can_run(rows: list[dict]) -> tuple[bool, str]:+ """Every core step must be ready (a run that cannot be complete is not+ started — it would only produce a result nobody may compare)."""+ for r in rows:+ if r["core"] and r["status"] != "ready":+ return False, r["reason"] or "missing"+ warm = next((r for r in rows if r["id"] == "warmup"), None)+ if warm and warm["status"] != "ready":+ return False, warm["reason"] or "missing"+ return True, ""+++# ---- the Mac -----------------------------------------------------------------++_THERMAL_NAMES = {0: "nominal", 1: "fair", 2: "serious", 3: "critical"}+++def _objc_process_info():+ """NSProcessInfo.processInfo through the ObjC runtime, or None.++ ctypes, not pyobjc: the engine venv does not carry pyobjc, and this is+ two message sends. Off macOS (or on any failure) every caller degrades to+ "unknown" — a benchmark must never fail because a sensor is missing."""+ try:+ objc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("objc"))+ ctypes.cdll.LoadLibrary("/System/Library/Frameworks/Foundation.framework/Foundation")+ objc.objc_getClass.restype = ctypes.c_void_p+ objc.objc_getClass.argtypes = [ctypes.c_char_p]+ objc.sel_registerName.restype = ctypes.c_void_p+ objc.sel_registerName.argtypes = [ctypes.c_char_p]+ send = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p)(("objc_msgSend", objc))+ cls = objc.objc_getClass(b"NSProcessInfo")+ if not cls:+ return None+ return objc, send(cls, objc.sel_registerName(b"processInfo"))+ except Exception: # noqa: BLE001+ return None+++_PI_CACHE: list = []+++def thermal_state() -> str:+ """macOS's own thermal pressure verdict: nominal/fair/serious/critical."""+ if not hostinfo.IS_MAC:+ return "unknown"+ try:+ if not _PI_CACHE:+ got = _objc_process_info()+ if got is None:+ return "unknown"+ _PI_CACHE.append(got)+ objc, pi = _PI_CACHE[0]+ sendl = ctypes.CFUNCTYPE(ctypes.c_long, ctypes.c_void_p, ctypes.c_void_p)(("objc_msgSend", objc))+ return _THERMAL_NAMES.get(int(sendl(pi, objc.sel_registerName(b"thermalState"))), "unknown")+ except Exception: # noqa: BLE001+ return "unknown"+++def low_power_mode() -> bool | None:+ if not hostinfo.IS_MAC:+ return None+ try:+ out = subprocess.run(["pmset", "-g"], capture_output=True, text=True,+ errors="replace", timeout=3).stdout+ m = re.search(r"^\s*lowpowermode\s+(\d)", out, re.M)+ return bool(int(m.group(1))) if m else False+ except Exception: # noqa: BLE001+ return None+++def power_source() -> str:+ """"ac", "battery" or "unknown". A desktop Mac reports AC."""+ if not hostinfo.IS_MAC:+ return "unknown"+ try:+ out = subprocess.run(["pmset", "-g", "batt"], capture_output=True, text=True,+ errors="replace", timeout=3).stdout+ except Exception: # noqa: BLE001+ return "unknown"+ if "AC Power" in out:+ return "ac"+ if "Battery Power" in out:+ return "battery"+ return "unknown"+++def _sysctl_int(name: str) -> int:+ try:+ v = subprocess.run(["sysctl", "-n", name], capture_output=True, text=True,+ errors="replace", timeout=3).stdout.strip()+ return int(v) if v.isdigit() else 0+ except Exception: # noqa: BLE001+ return 0+++def gpu_cores() -> int:+ if not hostinfo.IS_MAC:+ return 0+ try:+ out = subprocess.run(["system_profiler", "SPDisplaysDataType", "-json"],+ capture_output=True, text=True, errors="replace",+ timeout=20).stdout+ for gpu in json.loads(out or "{}").get("SPDisplaysDataType") or []:+ n = str(gpu.get("sppci_cores") or "")+ if n.isdigit():+ return int(n)+ except Exception: # noqa: BLE001+ pass+ return 0+++_CHIP_RE = re.compile(r"\bM(\d+)\s*(Pro|Max|Ultra)?\b", re.I)+++def chip_family(brand: str) -> str:+ m = _CHIP_RE.search(brand or "")+ if not m:+ return "unknown"+ return f"M{m.group(1)}" + (f" {m.group(2).title()}" if m.group(2) else "")+++def mac_info(tier: str = "") -> dict:+ """Hardware CLASS facts — every M4 Max 64 GB Mac16,9 reports the same.+ No serial, no hostname, no user name."""+ brand = hostinfo.chip_brand() or ""+ ram = hostinfo.total_ram_bytes()+ macos = platform.mac_ver()[0] if hostinfo.IS_MAC else ""+ build = ""+ if hostinfo.IS_MAC:+ try:+ build = subprocess.run(["sw_vers", "-buildVersion"], capture_output=True,+ text=True, errors="replace", timeout=3).stdout.strip()+ except Exception: # noqa: BLE001+ build = ""+ return {+ "chip": brand or "unknown",+ "chip_family": chip_family(brand),+ "cpu_cores": {"performance": _sysctl_int("hw.perflevel0.physicalcpu"),+ "efficiency": _sysctl_int("hw.perflevel1.physicalcpu")},+ "gpu_cores": gpu_cores(),+ "ram_gb": int(round(ram / 2**30)) if ram else 0,+ "model_id": hostinfo.hw_model() or "unknown",+ "macos": macos or "unknown",+ "macos_build": build or "unknown",+ "tier": tier or "unknown",+ }+++# ---- memory + thermal sampling ------------------------------------------------++class Sampler:+ """Samples the Mac's memory in use (active + wired + compressed, the same+ reading hostinfo gives the rest of the panel) and swap, twice a second, and+ the thermal state every few seconds, while a step runs.++ Whole-Mac numbers on purpose: an MLX render lives in unified memory shared+ with the GPU, and the honest question a reviewer asks is "how much of this+ Mac did it take", which the pre-step baseline answers as `added_gb`."""++ def __init__(self, interval: float = 0.5, reader=None, thermal=None):+ self.interval = interval+ self._read = reader or hostinfo.memory_usage+ self._thermal = thermal or thermal_state+ self._stop = threading.Event()+ self._thread: threading.Thread | None = None+ self.baseline_used = 0+ self.peak_used = 0+ self.peak_swap = 0+ self.thermal_worst = "unknown"+ self.samples = 0++ def _sample(self) -> None:+ try:+ mem = self._read() or {}+ except Exception: # noqa: BLE001+ return+ used, swap = int(mem.get("used") or 0), int(mem.get("swap_used") or 0)+ self.peak_used = max(self.peak_used, used)+ self.peak_swap = max(self.peak_swap, swap)+ self.samples += 1++ def _thermal_sample(self) -> None:+ self.thermal_worst = worse_thermal(self.thermal_worst, self._thermal())++ def start(self) -> None:+ try:+ mem = self._read() or {}+ self.baseline_used = int(mem.get("used") or 0)+ except Exception: # noqa: BLE001+ self.baseline_used = 0+ self._sample()+ self._thermal_sample()++ def loop():+ n = 0+ while not self._stop.wait(self.interval):+ self._sample()+ n += 1+ if n % 6 == 0:+ self._thermal_sample()+ self._thread = threading.Thread(target=loop, name="bench-sampler", daemon=True)+ self._thread.start()++ def stop(self) -> dict:+ self._stop.set()+ if self._thread:+ self._thread.join(timeout=2)+ self._sample()+ self._thermal_sample()+ gib = 2**30+ return {+ "peak_mem_gb": round(self.peak_used / gib, 1) if self.peak_used else None,+ "added_mem_gb": (round(max(0, self.peak_used - self.baseline_used) / gib, 1)+ if self.peak_used else None),+ "swap_peak_gb": round(self.peak_swap / gib, 1),+ "thermal_worst": self.thermal_worst,+ }+++def worse_thermal(a: str, b: str) -> str:+ order = {"unknown": -1, "nominal": 0, "fair": 1, "serious": 2, "critical": 3}+ return a if order.get(a, -1) >= order.get(b, -1) else b+++_MLX_PEAK_RE = re.compile(r"\[mlx\] run peak ([\d.]+) GiB")+++def new_log_lines(before: list, after: list) -> list:+ """The log lines added since `before` was taken. The panel log is capped+ (LOG_LIMIT), so an index would drift once it rotates; anchor on the last+ line we had instead."""+ if not before:+ return list(after)+ last = before[-1]+ for i in range(len(after) - 1, -1, -1):+ if after[i] == last:+ return list(after[i + 1:])+ return list(after)+++def engine_peak_from_log(lines: list[str]) -> float | None:+ """The helper prints "[mlx] run peak N GiB" at the end of an LTX render;+ the last one in this step's slice of the log is the step's own figure."""+ peak = None+ for ln in lines or ():+ m = _MLX_PEAK_RE.search(str(ln))+ if m:+ peak = round(float(m.group(1)), 1)+ return peak+++# ---- the result document ------------------------------------------------------++def _iso(ts: float) -> str:+ return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(ts))+++def summarize(steps: list[dict]) -> dict:+ by_id = {s["id"]: s for s in steps}+ complete = all((by_id.get(i) or {}).get("status") == "done" for i in CORE_STEP_IDS)+ core_total = (round(sum(by_id[i]["wall_sec"] for i in CORE_STEP_IDS), 1)+ if complete else None)+ head = by_id.get(HEADLINE_STEP) or {}+ return {+ "complete": complete,+ "core_total_sec": core_total,+ "headline_step": HEADLINE_STEP,+ "headline_sec": head.get("wall_sec") if head.get("status") == "done" else None,+ }+++def warnings_for(conditions: dict, steps: list[dict]) -> list[str]:+ w = []+ if conditions.get("power") == "battery":+ w.append("battery")+ if conditions.get("low_power_mode"):+ w.append("low_power_mode")+ if conditions.get("output_preset_default") is False:+ w.append("output_codec")+ if conditions.get("thermal_worst") in ("serious", "critical"):+ w.append("thermal_" + conditions["thermal_worst"])+ # Swap GROWTH, not swap: a Mac that already had swap in use before the+ # run (macOS keeps it for hours) did not page because of the Bench.+ base = float(conditions.get("swap_start_gb") or 0.0)+ if any((s.get("swap_peak_gb") or 0) - base >= 1.0 for s in steps if s.get("status") == "done"):+ w.append("swap")+ return w+++def eligible(doc: dict) -> bool:+ """May this run go on the leaderboard? Complete, this suite, and not in+ Low Power Mode (which caps the GPU by design — a different machine)."""+ return bool(doc.get("suite", {}).get("id") == SUITE_ID+ and doc.get("suite", {}).get("fingerprint") == SUITE_FINGERPRINT+ and doc.get("summary", {}).get("complete")+ and not doc.get("conditions", {}).get("low_power_mode")+ # The encode settings live in Settings, not in the suite: a+ # non-default output codec changes the encode time, so it is+ # recorded and keeps the run off the board.+ and doc.get("conditions", {}).get("output_preset_default") is not False)+++def new_run_id() -> str:+ return uuid.uuid4().hex[:16]+++def build_result(*, run_id: str, started: float, finished: float, app: dict, mac: dict,+ conditions: dict, steps: list[dict]) -> dict:+ doc = {+ "schema": SCHEMA,+ "suite": {"id": SUITE_ID, "name": SUITE_NAME, "fingerprint": SUITE_FINGERPRINT},+ "run_id": run_id,+ "started_at": _iso(started),+ "finished_at": _iso(finished),+ "app": app,+ "mac": mac,+ "conditions": conditions,+ "steps": steps,+ "summary": summarize(steps),+ }+ doc["warnings"] = warnings_for(conditions, steps)+ doc["summary"]["eligible"] = eligible(doc)+ return doc+++# ---- JSON Schema ----------------------------------------------------------------+# Published as docs/bench.schema.json (test_bench.py keeps the two identical)+# and enforced on every document this module writes by validate().++_NUM_OR_NULL = {"type": ["number", "null"], "minimum": 0}+_STEP_SCHEMA = {+ "type": "object",+ "required": ["id", "label", "status", "core", "timed", "wall_sec"],+ "additionalProperties": False,+ "properties": {+ "id": {"type": "string", "enum": list(STEP_IDS)},+ "label": {"type": "string"},+ "kind": {"type": "string", "enum": ["ltx", "image", "h3"]},+ "core": {"type": "boolean"},+ "timed": {"type": "boolean"},+ "status": {"type": "string", "enum": ["done", "failed", "skipped", "cancelled"]},+ "reason": {"type": "string"},+ "canvas": {"type": ["string", "null"], "pattern": r"^\d+×\d+$"},+ "frames": {"type": ["integer", "null"], "minimum": 0},+ "images": {"type": ["integer", "null"], "minimum": 0},+ "wall_sec": _NUM_OR_NULL,+ "peak_mem_gb": _NUM_OR_NULL,+ "added_mem_gb": _NUM_OR_NULL,+ "swap_peak_gb": _NUM_OR_NULL,+ "engine_peak_gb": _NUM_OR_NULL,+ "thermal_worst": {"type": "string", "enum": list(THERMAL_STATES)},+ },+}+RESULT_SCHEMA = {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "https://phosphene.video/bench/schema/phosphene-bench-1.json",+ "title": "Phosphene Bench result",+ "type": "object",+ "required": ["schema", "suite", "run_id", "started_at", "finished_at", "app",+ "mac", "conditions", "steps", "summary", "warnings"],+ "additionalProperties": False,+ "properties": {+ "schema": {"type": "string", "enum": [SCHEMA]},+ "suite": {+ "type": "object", "required": ["id", "name", "fingerprint"],+ "additionalProperties": False,+ "properties": {"id": {"type": "string", "pattern": r"^PB\d+$"},+ "name": {"type": "string"},+ "fingerprint": {"type": "string", "pattern": r"^[0-9a-f]{12}$"}},+ },+ "run_id": {"type": "string", "pattern": r"^[0-9a-f]{16}$"},+ "started_at": {"type": "string", "pattern": r"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$"},+ "finished_at": {"type": "string", "pattern": r"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$"},+ "app": {+ "type": "object", "required": ["version", "edition", "distribution"],+ "additionalProperties": False,+ "properties": {"version": {"type": "string"},+ "edition": {"type": "string", "enum": ["free", "pro"]},+ "distribution": {"type": "string", "enum": ["pinokio", "mac-app"]},+ "generation": {"type": "string"}},+ },+ "mac": {+ "type": "object",+ "required": ["chip", "chip_family", "cpu_cores", "gpu_cores", "ram_gb",+ "model_id", "macos", "macos_build", "tier"],+ "additionalProperties": False,+ "properties": {+ "chip": {"type": "string"}, "chip_family": {"type": "string"},+ "cpu_cores": {"type": "object", "required": ["performance", "efficiency"],+ "additionalProperties": False,+ "properties": {"performance": {"type": "integer", "minimum": 0},+ "efficiency": {"type": "integer", "minimum": 0}}},+ "gpu_cores": {"type": "integer", "minimum": 0},+ "ram_gb": {"type": "integer", "minimum": 0},+ "model_id": {"type": "string"}, "macos": {"type": "string"},+ "macos_build": {"type": "string"}, "tier": {"type": "string"},+ },+ },+ "conditions": {+ "type": "object",+ "required": ["power", "low_power_mode", "thermal_start", "thermal_worst"],+ "additionalProperties": False,+ "properties": {+ "power": {"type": "string", "enum": ["ac", "battery", "unknown"]},+ "low_power_mode": {"type": ["boolean", "null"]},+ "thermal_start": {"type": "string", "enum": list(THERMAL_STATES)},+ "thermal_worst": {"type": "string", "enum": list(THERMAL_STATES)},+ "mem_used_start_gb": _NUM_OR_NULL,+ "swap_start_gb": _NUM_OR_NULL,+ "warmup_sec": _NUM_OR_NULL,+ "output_preset": {"type": ["string", "null"]},+ "output_preset_default": {"type": ["boolean", "null"]},+ },+ },+ "steps": {"type": "array", "items": _STEP_SCHEMA},+ "summary": {+ "type": "object",+ "required": ["complete", "eligible", "core_total_sec", "headline_step", "headline_sec"],+ "additionalProperties": False,+ "properties": {"complete": {"type": "boolean"}, "eligible": {"type": "boolean"},+ "core_total_sec": _NUM_OR_NULL,+ "headline_step": {"type": "string", "enum": list(STEP_IDS)},+ "headline_sec": _NUM_OR_NULL},+ },+ "warnings": {"type": "array", "items": {"type": "string"}},+ },+}+++def _type_ok(val, t) -> bool:+ types = t if isinstance(t, list) else [t]+ for name in types:+ if name == "null" and val is None:+ return True+ if name == "boolean" and isinstance(val, bool):+ return True+ if name == "integer" and isinstance(val, int) and not isinstance(val, bool):+ return True+ if name == "number" and isinstance(val, (int, float)) and not isinstance(val, bool):+ return True+ if name == "string" and isinstance(val, str):+ return True+ if name == "object" and isinstance(val, dict):+ return True+ if name == "array" and isinstance(val, list):+ return True+ return False+++def validate(doc, schema: dict | None = None, path: str = "$") -> list[str]:+ """A small JSON Schema validator for exactly the keywords RESULT_SCHEMA+ uses (type, required, properties, additionalProperties, items, enum,+ pattern, minimum). The engine venv has no jsonschema; the schema file is+ still standard draft 2020-12, so anyone can check a result with any+ validator. Returns a list of errors; empty means valid."""+ s = RESULT_SCHEMA if schema is None else schema+ errs: list[str] = []+ if "type" in s and not _type_ok(doc, s["type"]):+ return [f"{path}: expected {s['type']}, got {type(doc).__name__}"]+ if "enum" in s and doc not in s["enum"]:+ errs.append(f"{path}: {doc!r} not one of {s['enum']}")+ if isinstance(doc, str) and "pattern" in s and not re.search(s["pattern"], doc):+ errs.append(f"{path}: {doc!r} does not match {s['pattern']}")+ if (isinstance(doc, (int, float)) and not isinstance(doc, bool)+ and "minimum" in s and doc < s["minimum"]):+ errs.append(f"{path}: {doc} < {s['minimum']}")+ if isinstance(doc, dict):+ for k in s.get("required", ()):+ if k not in doc:+ errs.append(f"{path}: missing {k!r}")+ props = s.get("properties", {})+ for k, v in doc.items():+ if k in props:+ errs.extend(validate(v, props[k], f"{path}.{k}"))+ elif s.get("additionalProperties") is False:+ errs.append(f"{path}: unexpected {k!r}")+ if isinstance(doc, list) and "items" in s:+ for i, v in enumerate(doc):+ errs.extend(validate(v, s["items"], f"{path}[{i}]"))+ return errs+++# ---- formatting --------------------------------------------------------------++def fmt_sec(sec) -> str:+ """48 s · 2m 19s · 1h 02m."""+ if sec is None:+ return "—"+ s = int(round(float(sec)))+ if s < 60:+ return f"{s} s"+ if s < 3600:+ return f"{s // 60}m {s % 60:02d}s"+ return f"{s // 3600}h {(s % 3600) // 60:02d}m"+++_THERMAL_WORDS = {"nominal": "nominal", "fair": "fair", "serious": "serious",+ "critical": "critical", "unknown": "not reported"}+++def summary_text(doc: dict) -> str:+ """The "Copy results" block: plain text a reviewer can paste anywhere."""+ mac, app, cond = doc["mac"], doc["app"], doc["conditions"]+ cores = mac.get("cpu_cores") or {}+ cpu = (cores.get("performance") or 0) + (cores.get("efficiency") or 0)+ lines = [+ f"{COPY['copy_results_header']} · suite {doc['suite']['fingerprint']}",+ f"{mac['chip']} · {mac['gpu_cores']}-core GPU · {cpu}-core CPU · {mac['ram_gb']} GB · "+ f"{mac['model_id']} · macOS {mac['macos']} ({mac['macos_build']})",+ f"Phosphene {app['version']} ({app['edition']}, {app['distribution']})",+ "",+ ]+ for st in doc["steps"]:+ if not st.get("timed"):+ continue+ t = fmt_sec(st.get("wall_sec")) if st["status"] == "done" else st["status"]+ mem = (f" · peak {st['peak_mem_gb']} GB in use (+{st['added_mem_gb']} GB)"+ if st.get("peak_mem_gb") is not None and st["status"] == "done" else "")+ canvas = f" · {st['canvas']}" if st.get("canvas") else ""+ lines.append(f"{st['label']}{canvas}: {t}{mem}")+ lines.append("")+ warm = cond.get("warmup_sec")+ lines.append(+ f"Engine warm-up {fmt_sec(warm)} (untimed) · power {cond['power']} · Low Power Mode "+ f"{'on' if cond.get('low_power_mode') else 'off'} · thermal {_THERMAL_WORDS.get(cond['thermal_start'])}"+ f" -> {_THERMAL_WORDS.get(cond['thermal_worst'])}")+ if not doc["summary"]["complete"]:+ lines.append(COPY["result_incomplete"])+ lines.append(f"Run {doc['run_id']} · {doc['finished_at']} · phosphene.video/bench")+ return "\n".join(lines)+++# ---- analytics (the opt-in leaderboard submission) -----------------------------++def analytics_props(doc: dict, run_index: int = 1, runs_total: int = 1) -> dict:+ """The flat property dict for ONE `bench_result` event (docs/ANALYTICS.md).++ Hardware CLASS and timings only: no prompt (the suite's are fixed anyway),+ no path, no filename, no seed. Exact seconds are sent — unlike the+ bucketed render_completed — because publishing them is the point of an+ explicit, per-click opt-in."""+ mac, app, cond = doc["mac"], doc["app"], doc["conditions"]+ p = {+ "schema": doc["schema"],+ "suite_id": doc["suite"]["id"],+ "suite_fp": doc["suite"]["fingerprint"],+ "run_id": doc["run_id"],+ "run_index": int(run_index),+ "runs_total": int(runs_total),+ "version": app["version"],+ "edition": app["edition"],+ "distribution": app["distribution"],+ "chip_family": mac["chip_family"],+ "gpu_cores": mac["gpu_cores"],+ "cpu_p": (mac.get("cpu_cores") or {}).get("performance", 0),+ "cpu_e": (mac.get("cpu_cores") or {}).get("efficiency", 0),+ "ram_gb": mac["ram_gb"],+ "model_id": mac["model_id"],+ "os_version": ".".join(str(mac["macos"]).split(".")[:2]),+ "power": cond["power"],+ "low_power": bool(cond.get("low_power_mode")),+ "thermal_worst": cond["thermal_worst"],+ "warmup_sec": cond.get("warmup_sec"),+ "complete": bool(doc["summary"]["complete"]),+ "eligible": bool(doc["summary"]["eligible"]),+ }+ for st in doc["steps"]:+ if st["id"] == "warmup":+ continue+ k = st["id"]+ p[f"st_{k}"] = st["status"]+ p[f"s_{k}"] = st.get("wall_sec") if st["status"] == "done" else None+ p[f"mem_{k}"] = st.get("peak_mem_gb") if st["status"] == "done" else None+ p[f"add_{k}"] = st.get("added_mem_gb") if st["status"] == "done" else None+ p[f"cv_{k}"] = st.get("canvas")+ return p+++def runs_to_submit(docs: list[dict]) -> list[dict]:+ """Every complete, eligible run of THIS suite, oldest first — not the one+ on screen. That is the no-best-of rule: the board takes each Mac's+ median, so sending all of them is what makes the median honest."""+ ok = [d for d in docs if eligible(d)]+ return sorted(ok, key=lambda d: d["started_at"])+++def install_median(docs: list[dict], step_id: str) -> float | None:+ """What the leaderboard does per Mac (mirrored in the site's builder)."""+ vals = [s["wall_sec"] for d in docs for s in d["steps"]+ if s["id"] == step_id and s["status"] == "done" and s.get("wall_sec") is not None]+ return round(statistics.median(vals), 1) if vals else None+++# ---- storage -------------------------------------------------------------------++class Store:+ """state/bench/<run_id>.json + <run_id>.png, and submitted.json (run ids+ already sent, so a second Submit sends only what is new)."""++ def __init__(self, root: Path):+ self.root = Path(root)++ def _ensure(self) -> None:+ self.root.mkdir(parents=True, exist_ok=True)++ def path(self, run_id: str, ext: str) -> Path:+ if not re.fullmatch(r"[0-9a-f]{16}", run_id or ""):+ raise ValueError("bad run id")+ return self.root / f"{run_id}.{ext}"++ def save(self, doc: dict) -> Path:+ errs = validate(doc)+ if errs:+ raise ValueError("bench result does not match its schema: " + "; ".join(errs[:5]))+ self._ensure()+ p = self.path(doc["run_id"], "json")+ tmp = p.with_suffix(".json.tmp")+ tmp.write_text(json.dumps(doc, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")+ os.replace(tmp, p)+ return p++ def load(self, run_id: str) -> dict | None:+ try:+ return json.loads(self.path(run_id, "json").read_text(encoding="utf-8"))+ except (OSError, ValueError):+ return None++ def runs(self) -> list[dict]:+ out = []+ if not self.root.is_dir():+ return out+ for p in sorted(self.root.glob("*.json")):+ if not re.fullmatch(r"[0-9a-f]{16}\.json", p.name):+ continue+ try:+ d = json.loads(p.read_text(encoding="utf-8"))+ except (OSError, ValueError):+ continue+ if isinstance(d, dict) and d.get("schema") == SCHEMA:+ out.append(d)+ return sorted(out, key=lambda d: d.get("started_at", ""), reverse=True)++ def submitted(self) -> set[str]:+ try:+ return set(json.loads((self.root / "submitted.json").read_text(encoding="utf-8")))+ except (OSError, ValueError, TypeError):+ return set()++ def mark_submitted(self, ids) -> None:+ self._ensure()+ cur = self.submitted() | set(ids)+ (self.root / "submitted.json").write_text(json.dumps(sorted(cur)) + "\n", encoding="utf-8")+++# ---- the runner ----------------------------------------------------------------++class BenchBusy(RuntimeError):+ """The Mac is doing something else (queue, render, GPU gate, a run)."""+++class Runner:+ """Runs the suite through the host's queue, one step at a time.++ host must provide:+ readiness() -> dict (see plan())+ canvases() -> dict quality -> "W×H" on this Mac+ busy_reason() -> str "" when nothing is queued/running/holding the GPU+ make_job(form) -> job dict the panel's make_job+ refusal(job) -> str "" or why the panel would refuse this job+ enqueue(job)+ job(job_id) -> dict | None the live job (queue, current or history)+ cancel(job_id)+ cold_start() drop the warm engine so every run starts the same+ log_lines() -> list[str] the panel log, oldest first+ app_info() -> dict {version, edition, distribution, generation}+ render_settings() -> dict Settings that change the time but are not suite data+ ({output_preset, output_preset_default})+ tier() -> str+ store -> Store+ render_card(doc, path) write the PNG+ """++ TERMINAL = ("done", "failed", "cancelled", "stopped", "error")+ # A step's job that is in neither the queue, `current` nor history for+ # this long was removed by hand (or trimmed); the run stops waiting.+ vanish_after = 60.0++ def __init__(self, host, poll: float = 1.0, sampler_factory=None, clock=time.time):+ self.host = host+ self.poll = poll+ self._sampler_factory = sampler_factory or (lambda: Sampler())+ self._clock = clock+ self._lock = threading.Lock()+ self._thread: threading.Thread | None = None+ self._cancel = threading.Event()+ self.state: dict = {"running": False, "run_id": None, "steps": [], "step_index": None,+ "step_started": None, "job_id": None, "error": "", "last_run": None,+ "stopped": False}++ # -- public -------------------------------------------------------------+ def snapshot(self) -> dict:+ with self._lock:+ st = copy.deepcopy(self.state)+ if st.get("running") and st.get("step_started"):+ st["step_elapsed"] = round(self._clock() - st["step_started"], 1)+ return st++ def start(self, wait: bool = False) -> str:+ with self._lock:+ if self.state["running"]:+ raise BenchBusy("bench_running")+ busy = self.host.busy_reason()+ if busy:+ raise BenchBusy(busy)+ rows = plan(self.host.readiness(), self.host.canvases())+ ok, why = plan_can_run(rows)+ if not ok:+ raise BenchBusy(why)+ run_id = new_run_id()+ self._cancel.clear()+ self.state.update(running=True, run_id=run_id, step_index=None, job_id=None,+ error="", stopped=False, step_started=None,+ steps=[{"id": r["id"], "label": r["label"], "status":+ ("queued" if r["status"] == "ready" else r["status"]),+ "reason": r["reason"], "wall_sec": None} for r in rows])+ self._thread = threading.Thread(target=self._run, args=(run_id, rows),+ name="phosphene-bench", daemon=True)+ self._thread.start()+ if wait:+ self._thread.join()+ return run_id++ def cancel(self) -> bool:+ with self._lock:+ if not self.state["running"]:+ return False+ job_id = self.state.get("job_id")+ self._cancel.set()+ if job_id:+ try:+ self.host.cancel(job_id)+ except Exception: # noqa: BLE001+ pass+ return True++ # -- the thread -----------------------------------------------------------+ def _set_step(self, idx: int, **kw) -> None:+ with self._lock:+ self.state["steps"][idx].update(kw)++ def _run(self, run_id: str, rows: list[dict]) -> None:+ started = self._clock()+ results: list[dict] = []+ warmup_sec = None+ try:+ app = self.host.app_info()+ mac = mac_info(self.host.tier())+ mem0 = hostinfo.memory_usage()+ conditions = {+ "power": power_source(),+ "low_power_mode": low_power_mode(),+ "thermal_start": thermal_state(),+ "thermal_worst": "unknown",+ "mem_used_start_gb": round((mem0.get("used") or 0) / 2**30, 1),+ "swap_start_gb": round((mem0.get("swap_used") or 0) / 2**30, 1),+ }+ conditions["thermal_worst"] = conditions["thermal_start"]+ try:+ conditions.update(self.host.render_settings() or {})+ except Exception: # noqa: BLE001+ pass+ try:+ self.host.cold_start()+ except Exception: # noqa: BLE001+ pass+ for idx, row in enumerate(rows):+ st = step_def(row["id"])+ rec = {"id": row["id"], "label": row["label"], "kind": st["kind"],+ "core": st["core"], "timed": st["timed"], "status": "skipped",+ "reason": row["reason"], "canvas": row.get("canvas"),+ "frames": None, "images": st.get("images"), "wall_sec": None,+ "peak_mem_gb": None, "added_mem_gb": None, "swap_peak_gb": None,+ "engine_peak_gb": None, "thermal_worst": "unknown"}+ if self._cancel.is_set():+ rec["status"], rec["reason"] = "cancelled", "stopped"+ self._set_step(idx, status="cancelled")+ results.append(rec)+ continue+ if row["status"] != "ready":+ self._set_step(idx, status="skipped")+ results.append(rec)+ continue+ self._run_step(idx, row, rec)+ if rec["thermal_worst"] != "unknown":+ conditions["thermal_worst"] = worse_thermal(conditions["thermal_worst"],+ rec["thermal_worst"])+ if row["id"] == "warmup":+ warmup_sec = rec["wall_sec"]+ if rec["status"] != "done":+ # Without a working engine the timed steps would fail+ # the same way; stop here and say why.+ if rec["status"] == "failed":+ with self._lock:+ self.state["error"] = f"Engine warm-up failed: {rec['reason']}"+ self._cancel.set()+ results.append(rec)+ conditions["warmup_sec"] = warmup_sec+ # The warm-up is recorded in conditions, never as a result row a+ # reader could mistake for a measurement.+ steps_out = [r for r in results if r["id"] != "warmup"]+ doc = build_result(run_id=run_id, started=started, finished=self._clock(),+ app=app, mac=mac, conditions=conditions, steps=steps_out)+ self.host.store.save(doc)+ try:+ self.host.render_card(doc, self.host.store.path(run_id, "png"))+ except Exception as exc: # noqa: BLE001+ with self._lock:+ self.state["error"] = f"card: {exc}"+ with self._lock:+ self.state["last_run"] = run_id+ self.state["stopped"] = self._cancel.is_set()+ except Exception as exc: # noqa: BLE001+ with self._lock:+ self.state["error"] = str(exc)+ finally:+ with self._lock:+ self.state.update(running=False, step_index=None, job_id=None, step_started=None)++ def _wait_idle(self, timeout: float = 600.0) -> bool:+ """Between steps the worker is finishing its bookkeeping (history,+ persist); wait for the panel to be idle again before queueing, so a+ step never starts behind anything."""+ end = self._clock() + timeout+ while self._clock() < end:+ if self._cancel.is_set():+ return False+ if not self.host.busy_reason():+ return True+ time.sleep(self.poll)+ return False++ def _run_step(self, idx: int, row: dict, rec: dict) -> None:+ if not self._wait_idle():+ rec["status"] = "cancelled" if self._cancel.is_set() else "failed"+ rec["reason"] = "stopped" if self._cancel.is_set() else "busy"+ self._set_step(idx, status=rec["status"], reason=rec["reason"])+ return+ try:+ job = self.host.make_job(job_form(row["id"]))+ except Exception as exc: # noqa: BLE001+ rec["status"], rec["reason"] = "failed", f"could not build the job: {exc}"+ self._set_step(idx, status="failed", reason=rec["reason"])+ return+ refusal = self.host.refusal(job)+ if refusal:+ rec["status"], rec["reason"] = "failed", refusal+ self._set_step(idx, status="failed", reason=refusal)+ return+ params = job.get("params") or {}+ if row.get("kind") == "ltx" or rec["kind"] in ("ltx", "h3"):+ w, h = params.get("width"), params.get("height")+ if w and h:+ rec["canvas"] = f"{int(w)}×{int(h)}"+ if params.get("frames"):+ rec["frames"] = int(params["frames"])+ log_before = self.host.log_lines()+ sampler = self._sampler_factory()+ sampler.start()+ final = None+ try:+ with self._lock:+ self.state.update(step_index=idx, job_id=job["id"], step_started=self._clock())+ self._set_step(idx, status="running")+ if self._cancel.is_set():+ # Stop pressed while the job was being built: never queue it.+ job["status"] = "cancelled"+ else:+ self.host.enqueue(job)+ if self._cancel.is_set():+ # Stop pressed between publishing the id and queueing:+ # cancel() may have looked before the job existed.+ try:+ self.host.cancel(job["id"])+ except Exception: # noqa: BLE001+ pass+ missing = 0+ while job.get("status") != "cancelled":+ j = self.host.job(job["id"])+ # TERMINAL means the worker has also stamped the timer: it sets+ # `done` before its finally block writes finished_at and+ # elapsed_sec, and reading in between would record 0 s.+ if (j is not None and j.get("status") in self.TERMINAL+ and (j.get("finished_at") or self._cancel.is_set())):+ final = j+ break+ if j is None:+ missing += 1+ # Removed from the queue by hand, or trimmed out of a+ # history we never saw it land in: stop waiting.+ if self._cancel.is_set() or missing * self.poll >= self.vanish_after:+ break+ else:+ missing = 0+ time.sleep(self.poll)+ finally:+ mem = sampler.stop()+ rec.update({k: mem[k] for k in ("peak_mem_gb", "added_mem_gb", "swap_peak_gb", "thermal_worst")})+ rec["engine_peak_gb"] = engine_peak_from_log(new_log_lines(log_before, self.host.log_lines()))+ if final is not None:+ fp = final.get("params") or {}+ if rec["kind"] in ("ltx", "h3") and fp.get("width") and fp.get("height"):+ rec["canvas"] = f"{int(fp['width'])}×{int(fp['height'])}"+ if fp.get("frames"):+ rec["frames"] = int(fp["frames"])+ status = (final or {}).get("status")+ if status == "done" and (final.get("elapsed_sec") or 0) > 0:+ rec["status"] = "done"+ rec["wall_sec"] = round(float(final["elapsed_sec"]), 1)+ rec["reason"] = ""+ elif status == "done":+ rec["status"], rec["reason"] = "failed", "the render finished without a time"+ elif status in ("cancelled", "stopped") or self._cancel.is_set():+ rec["status"], rec["reason"] = "cancelled", "stopped"+ else:+ rec["status"] = "failed"+ rec["reason"] = str((final or {}).get("error") or (+ "the step left the queue before it finished" if final is None+ else "the render did not finish"))[:300]+ self._set_step(idx, status=rec["status"], wall_sec=rec["wall_sec"], reason=rec["reason"])+++# ---- copy ----------------------------------------------------------------------+# Strings the SERVER renders (the card and the copied text). The browser's+# strings live in webapp/index.html and webapp/js/bench.js. Written by Codex+# (today-2026-10-22/bench/codex/), fact-checked against this module.+COPY = {+ "copy_results_header": "Phosphene Bench PB1 results",+ "result_incomplete": "Incomplete: a core step did not finish. This run cannot go on the leaderboard.",+ "card_headline_label": "LTX-2.5 Balanced · 5-second video with sound",+ "card_footer": "Phosphene Bench PB1 · free, local AI on your Mac · phosphene.video/bench",+}+++# ---- the result card -------------------------------------------------------------++_FONT_DIRS = ("/System/Library/Fonts",)+_BG = (0, 6, 26)+_PANEL = (12, 19, 48)+_TEXT = (240, 244, 251)+_MUTED = (182, 191, 209)+_FAINT = (110, 120, 150)+_PINK, _PURPLE, _CYAN = (255, 46, 159), (177, 74, 255), (94, 234, 255)+_AMBER = (210, 153, 34)+++def _font(size: int, weight: str = "Regular", mono: bool = False):+ from PIL import ImageFont # noqa: PLC0415+ name = "SFNSMono.ttf" if mono else "SFNS.ttf"+ for d in _FONT_DIRS:+ p = Path(d) / name+ if p.is_file():+ try:+ f = ImageFont.truetype(str(p), size)+ try:+ f.set_variation_by_name(weight)+ except Exception: # noqa: BLE001+ pass+ return f+ except OSError:+ continue+ try:+ return ImageFont.load_default(size=size)+ except TypeError: # Pillow < 10.1+ return ImageFont.load_default()+++def _gradient(w: int, h: int):+ """Pink -> purple -> cyan, left to right: the mark's three rings."""+ from PIL import Image # noqa: PLC0415+ g = Image.new("RGB", (w, 1))+ px = g.load()+ for x in range(w):+ t = x / max(1, w - 1)+ a, b, u = ((_PINK, _PURPLE, t / 0.5) if t < 0.5 else (_PURPLE, _CYAN, (t - 0.5) / 0.5))+ px[x, 0] = tuple(int(a[i] + (b[i] - a[i]) * u) for i in range(3))+ return g.resize((w, h))+++def render_card(doc: dict, out_path, mark_path=None, scale: int = 2) -> Path:+ """The shareable PNG. 1600×900 points, drawn at 2× (3200×1800 px).++ Every number on it comes from the result document — the card cannot say+ anything the JSON does not."""+ from PIL import Image, ImageDraw, ImageFilter # noqa: PLC0415++ W, H = 1600 * scale, 900 * scale+ S = scale++ def s(v):+ return int(round(v * S))++ img = Image.new("RGB", (W, H), _BG)+ # A soft blue wash from the top, like the panel's own body background.+ wash = Image.new("L", (W, H), 0)+ ImageDraw.Draw(wash).ellipse((s(-200), s(-700), s(1800), s(420)), fill=40)+ wash = wash.filter(ImageFilter.GaussianBlur(s(140)))+ img.paste(Image.new("RGB", (W, H), (47, 129, 247)), (0, 0), wash)++ mark = None+ mp = Path(mark_path) if mark_path else Path(__file__).resolve().parent / "assets" / "phosphene_mark_square.png"+ if mp.is_file():+ try:+ mark = Image.open(mp).convert("RGBA")+ except OSError:+ mark = None+ if mark is not None:+ # The mark, huge and faint, bleeding off the right edge.+ # Centred behind the step panel, which is opaque, so only the outer+ # rings show around it (the yellow core stays hidden).+ big = mark.resize((s(1180), s(1180)), Image.LANCZOS)+ lum = big.convert("L").point(lambda v: 255 if v > 24 else 0)+ alpha = lum.point(lambda a: int(a * 0.13))+ img.paste(big.convert("RGB"), (s(1188 - 590), s(505 - 590)), alpha)++ d = ImageDraw.Draw(img)+ mac, app, cond, summ = doc["mac"], doc["app"], doc["conditions"], doc["summary"]+ steps = {st["id"]: st for st in doc["steps"]}+ X0 = s(84)++ # Header: mark + wordmark + suite pill, version on the right.+ if mark is not None:+ small = mark.resize((s(56), s(56)), Image.LANCZOS)+ circle = Image.new("L", small.size, 0)+ ImageDraw.Draw(circle).ellipse((0, 0, small.size[0] - 1, small.size[1] - 1), fill=255)+ img.paste(small.convert("RGB"), (X0, s(64)), circle)+ f_brand = _font(s(30), "Semibold")+ d.text((X0 + s(72), s(76)), "Phosphene Bench", font=f_brand, fill=_TEXT)+ bw = d.textlength("Phosphene Bench", font=f_brand)+ pill_x = X0 + s(72) + bw + s(16)+ f_pill = _font(s(17), "Semibold", mono=True)+ pill_txt = f"{doc['suite']['id']} · {doc['suite']['fingerprint'][:6]}"+ pw = d.textlength(pill_txt, font=f_pill)+ d.rounded_rectangle((pill_x, s(78), pill_x + pw + s(24), s(110)), radius=s(16),+ outline=(61, 71, 122), width=max(1, S), fill=(19, 27, 63))+ d.text((pill_x + s(12), s(84)), pill_txt, font=f_pill, fill=_CYAN)+ f_meta = _font(s(18), "Regular", mono=True)+ ver = f"Phosphene {app['version']} · {app['edition']}"+ d.text((W - X0 - d.textlength(ver, font=f_meta), s(84)), ver, font=f_meta, fill=_MUTED)++ # The Mac.+ f_chip = _font(s(64), "Bold")+ d.text((X0, s(164)), mac["chip"], font=f_chip, fill=_TEXT)+ cores = mac.get("cpu_cores") or {}+ cpu = (cores.get("performance") or 0) + (cores.get("efficiency") or 0)+ spec = " · ".join(x for x in (+ f"{mac['gpu_cores']}-core GPU" if mac.get("gpu_cores") else "",+ f"{cpu}-core CPU" if cpu else "",+ f"{mac['ram_gb']} GB" if mac.get("ram_gb") else "",+ f"macOS {mac['macos']}",+ mac.get("model_id") or "") if x)+ d.text((X0, s(248)), spec, font=_font(s(24), "Regular"), fill=_MUTED)++ # Headline: the Balanced 5 s time, in the mark's gradient.+ d.text((X0, s(330)), COPY["card_headline_label"], font=_font(s(20), "Semibold"),+ fill=_MUTED)+ head = steps.get(HEADLINE_STEP) or {}+ head_txt = fmt_sec(head.get("wall_sec")) if head.get("status") == "done" else "—"+ f_big = _font(s(150), "Bold")+ bbox = d.textbbox((0, 0), head_txt, font=f_big)+ tw, th = bbox[2] - bbox[0], bbox[3] - bbox[1]+ mask = Image.new("L", (tw + s(8), th + s(8)), 0)+ ImageDraw.Draw(mask).text((-bbox[0], -bbox[1]), head_txt, font=f_big, fill=255)+ img.paste(_gradient(mask.size[0], mask.size[1]), (X0, s(372)), mask)+ canvas_note = head.get("canvas") or ""+ if canvas_note:+ d.text((X0, s(372) + th + s(28)), f"{canvas_note} · 121 frames · 24 fps",+ font=_font(s(20), "Regular", mono=True), fill=_MUTED)+ if summ.get("core_total_sec"):+ peaks = [st["peak_mem_gb"] for st in doc["steps"]+ if st.get("core") and st["status"] == "done" and st.get("peak_mem_gb") is not None]+ tot = f"Core suite {fmt_sec(summ['core_total_sec'])}"+ if peaks:+ tot += f" · peak {max(peaks)} GB in use"+ y_tot = s(372) + th + s(84)+ d.rounded_rectangle((X0, y_tot, X0 + d.textlength(tot, font=_font(s(22), "Semibold")) + s(40),+ y_tot + s(48)), radius=s(24), fill=(19, 27, 63), outline=(61, 71, 122),+ width=max(1, S))+ d.text((X0 + s(20), y_tot + s(10)), tot, font=_font(s(22), "Semibold"), fill=_TEXT)++ # Step table (right column).+ tx, ty, tw_col = s(860), s(330), s(656)+ d.rounded_rectangle((tx - s(28), ty - s(26), tx + tw_col, ty + s(380)), radius=s(22),+ fill=_PANEL, outline=(36, 45, 92), width=max(1, S))+ f_row = _font(s(22), "Semibold")+ f_sub = _font(s(16), "Regular")+ f_time = _font(s(28), "Semibold")+ timed = [st for st in doc["steps"] if st.get("timed")]+ done_times = [st["wall_sec"] for st in timed if st["status"] == "done" and st.get("wall_sec")]+ tmax = max(done_times) if done_times else 1.0+ y = ty+ for st in timed:+ label = st["label"]+ d.text((tx, y), label, font=f_row, fill=_TEXT if st["core"] else _MUTED)+ if st["status"] == "done":+ t = fmt_sec(st["wall_sec"])+ sub = " · ".join(x for x in (+ st.get("canvas") or "",+ f"peak {st['peak_mem_gb']} GB in use" if st.get("peak_mem_gb") is not None else "",+ "optional" if not st["core"] else "") if x)+ col = _TEXT+ else:+ t = {"skipped": "not run", "failed": "failed", "cancelled": "stopped"}.get(st["status"], st["status"])+ sub = "optional extra" if not st["core"] else (st.get("reason") or "")[:60]+ col = _FAINT if st["status"] == "skipped" else _AMBER+ tw_ = d.textlength(t, font=f_time)+ d.text((tx + tw_col - s(28) - tw_, y - s(2)), t, font=f_time, fill=col)+ d.text((tx, y + s(32)), sub, font=f_sub, fill=_FAINT)+ # Bar: the share of the slowest timed step.+ by = y + s(60)+ d.rounded_rectangle((tx, by, tx + tw_col - s(28), by + s(6)), radius=s(3), fill=(29, 39, 82))+ if st["status"] == "done" and st.get("wall_sec"):+ frac = max(0.02, min(1.0, float(st["wall_sec"]) / tmax))+ bar = _gradient(max(1, int((tw_col - s(28)) * frac)), s(6))+ m = Image.new("L", bar.size, 0)+ ImageDraw.Draw(m).rounded_rectangle((0, 0, bar.size[0] - 1, bar.size[1] - 1), radius=s(3), fill=255)+ img.paste(bar, (tx, by), m)+ y += s(92)++ # Conditions + footer.+ f_foot = _font(s(17), "Regular", mono=True)+ warm = cond.get("warmup_sec")+ cond_line = " · ".join((+ {"ac": "On charger", "battery": "On battery", "unknown": "Power not reported"}[cond["power"]],+ f"Low Power Mode {'on' if cond.get('low_power_mode') else 'off'}",+ f"thermal {_THERMAL_WORDS.get(cond['thermal_worst'])}",+ f"warm-up {fmt_sec(warm)} untimed",+ ))+ d.text((X0, s(760)), cond_line, font=f_foot, fill=_MUTED)+ status_txt = ("Complete run" if summ["complete"] else "INCOMPLETE run: not comparable")+ d.text((X0, s(792)), f"{status_txt} · run {doc['run_id']} · {doc['finished_at'][:10]}",+ font=f_foot, fill=_MUTED if summ["complete"] else _AMBER)+ d.line((X0, s(838), W - X0, s(838)), fill=(36, 45, 92), width=max(1, S))+ d.text((X0, s(852)), COPY["card_footer"], font=_font(s(18), "Medium"), fill=_TEXT)+ out = Path(out_path)+ out.parent.mkdir(parents=True, exist_ok=True)+ img.save(out, "PNG", optimize=True)+ return outdiff --git a/clip_title.py b/clip_title.pynew file mode 100644index 0000000..a0996c2--- /dev/null+++ b/clip_title.py@@ -0,0 +1,81 @@+"""One human title for a clip/job, derived from its prompt at read time.++Shared rule (Studio server, Remote API, and mirrored in webapp/js/queue.js+displayTitle() and the iPhone app's ClipTitle): prefer a user-set label; else+strip the H3 structured-prompt scaffolding and take the first sentence of the+scene, trimmed to ~60 chars at a word boundary. Display only: never written+back to prompts, sidecars or file names.+"""+from __future__ import annotations++import re++TITLE_MAX = 60++_FIELDS = re.compile(+ r"\b(?:integrated_multimodal_description|overall_soundscape|non_diegetic_music|"+ r"summary|high_level_description)\s*:", re.I)+_SHOT = re.compile(r"\[\s*Shot\s*\d+\s*\]", re.I)+_TIMESTAMP = re.compile(r"\bAt\s+\d{1,2}:\d{2}(?:\.\d+)?\s*,", re.I)+_SPEAKER = re.compile(r"\(\s*S\d+\s*\)")+_REFTAG = re.compile(r"<\s*(?:Picture|Image|Audio|Video)\s*\d+\s*>(?:\s*\(from[^)]*\))?", re.I)+_DIALOGUE = re.compile(r"<d>[\s\S]*?</d>", re.I)+_ALIGN = re.compile(r"^\s*For the target video, at 0(?:\.0+)? seconds[^\n]*\n?", re.I)+# "vh5tape, worn VHS tape recording..." : a LoRA trigger lead-in, not the scene.+_TRIGGER_LEAD = re.compile(r"^[A-Za-z]*\d[A-Za-z0-9_]*\s*,|^[a-z0-9_]*trn\s*,", re.I)+++_STYLE_LEAD = re.compile(+ r"^(?:live-action(?:-style [a-z]+)?|cinematic|animated|photorealistic|vintage film|"+ r"warm film look|film look)\s*,\s*", re.I)+# A sentence that only names the look ("..., shot on VHS", "warm film look").+_STYLE_ONLY = re.compile(r"(?:shot on [A-Za-z0-9 ]{2,20}|film look|film grain|vhs look|tape damage|tape recording)$", re.I)+++def _clean(t: str) -> str:+ t = _ALIGN.sub(" ", t)+ for rx in (_FIELDS, _SHOT, _TIMESTAMP, _SPEAKER, _REFTAG):+ t = rx.sub(" ", t)+ return re.sub(r"\s+", " ", t).strip(" :;-")+++def _sentences(t: str) -> list[str]:+ return [s.strip() for s in re.split(r"(?<=[.!?])\s+", t) if s.strip()]+++def _trim(t: str, limit: int) -> str:+ if len(t) <= limit:+ return t+ cut = t[:limit + 1]+ sp = cut.rfind(" ")+ cut = cut[:sp] if sp >= limit * 0.5 else t[:limit]+ return cut.rstrip(" ,;:-.") + "…"+++def display_title(prompt, label=None, limit: int = TITLE_MAX) -> str:+ lab = re.sub(r"\s+", " ", str(label or "")).strip()+ if lab:+ return _trim(lab, limit)+ orig = str(prompt or "")+ t = _clean(_DIALOGUE.sub(" ", orig))+ if not t:+ inner = " ".join(re.findall(r"<d>([\s\S]*?)</d>", orig, re.I))+ t = _clean(re.sub(r"^\s*\[[A-Za-z ]+\]\s*", "", inner))+ if not t:+ return ""+ sents = _sentences(t)+ first = ""+ for i, sent in enumerate(sents):+ cand = sent.rstrip(".!?")+ while _STYLE_LEAD.match(cand):+ cand = _STYLE_LEAD.sub("", cand, 1)+ last = i == len(sents) - 1+ cand = _TRIGGER_LEAD.sub("", cand, 1).strip()+ if not last and (_STYLE_ONLY.search(cand) or len(cand) < 12):+ continue+ first = cand+ break+ first = first or sents[0].rstrip(".!?")+ if first and first[0].islower():+ first = first[0].upper() + first[1:]+ return _trim(first, limit)diff --git a/data/fleet_timings.json b/data/fleet_timings.jsonindex 315bca0..5ff1c29 100644--- a/data/fleet_timings.json+++ b/data/fleet_timings.json@@ -1,16 +1,10 @@{- "built_at": "2026-10-26T16:08:33Z",+ "built_at": "2026-10-14T06:17:56Z","levels": {"cell": {"cells": {- "h3|a2v|draft_3s|121.0|M4 Max|36.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|a2v|draft_5s|120.0|M5 Max|128.0|best": {- "n": 11,+ "n": 8,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -22,113 +16,23 @@"p75_sec": 180.0},"h3|a2v|high_10s|134.0|M5 Max|64.0|best": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|a2v|high_10s|163.0|M5 Max|64.0|best": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1500.0- },- "h3|a2v|high_10s|168.0|M5 Max|64.0|best": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1500.0,- "p75_sec": 1800.0- },- "h3|a2v|high_10s|178.0|M5 Max|64.0|best": {"n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1350.0},- "h3|a2v|high_3s|72.0|M5 Max|64.0|best": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|a2v|high_5s|108.0|M5 Max|64.0|best": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|a2v|high_5s|159.0|M5 Max|128.0|best": {"n": 4,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0},- "h3|a2v|high_5s|192.0|M5 Pro|48.0|fast": {- "n": 24,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|216.0|M5 Pro|48.0|fast": {- "n": 22,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|240.0|M5 Pro|48.0|fast": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|73.0|M5 Max|128.0|best": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|high_5s|74.0|M5 Max|64.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|standard_5s|120.0|M3 Ultra|96.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|extend|draft_5s|244.0|M3 Ultra|512.0|fast": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|extend|draft_5s|484.0|M5 Pro|64.0|best": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|extend|high_15s|722.0|M5 Pro|64.0|best": {- "n": 3,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },"h3|extend|standard_10s|495.0|M5 Max|36.0|fast": {"n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},- "h3|extend|standard_3s|160.0|M5 Pro|64.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|draft_10s_dense|243.0|M4 Max|128.0|fast": {"n": 9,"p25_sec": 600.0,@@ -190,7 +94,7 @@"p75_sec": 675.0},"h3|i2v|draft_10s|243.0|M4 Max|128.0|fast": {- "n": 5,+ "n": 3,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -202,7 +106,7 @@"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M4 Max|64.0|fast": {- "n": 44,+ "n": 36,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -219,24 +123,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "h3|i2v|draft_10s|243.0|M5 Max|36.0|best": {- "n": 5,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|i2v|draft_10s|243.0|M5 Max|36.0|fast": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 210.0- },- "h3|i2v|draft_10s|243.0|M5 Max|64.0|best": {- "n": 14,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|i2v|draft_10s|243.0|M5 Pro|48.0|fast": {"n": 5,"p25_sec": 120.0,@@ -244,13 +130,13 @@"p75_sec": 180.0},"h3|i2v|draft_10s|243.0|M5 Pro|64.0|best": {- "n": 27,- "p25_sec": 510.0,+ "n": 25,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M5 Pro|64.0|fast": {- "n": 26,+ "n": 25,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -286,16 +172,10 @@"p75_sec": 2400.0},"h3|i2v|draft_15s|362.0|M4 Pro|48.0|fast": {- "n": 5,+ "n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1800.0- },- "h3|i2v|draft_15s|362.0|M5 Max|128.0|best": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 360.0,- "p75_sec": 465.0+ "p75_sec": 1350.0},"h3|i2v|draft_15s|362.0|M5 Max|128.0|fast": {"n": 5,@@ -303,12 +183,6 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|draft_15s|362.0|M5 Max|36.0|fast": {- "n": 4,- "p25_sec": 285.0,- "p50_sec": 300.0,- "p75_sec": 330.0- },"h3|i2v|draft_15s|362.0|M5 Max|64.0|best": {"n": 3,"p25_sec": 510.0,@@ -328,7 +202,7 @@"p75_sec": 240.0},"h3|i2v|draft_15s|362.0|M5 Pro|64.0|fast": {- "n": 21,+ "n": 20,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -340,16 +214,10 @@"p75_sec": 420.0},"h3|i2v|draft_3s|73.0|M1 Max|64.0|fast": {- "n": 10,+ "n": 7,"p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 285.0- },- "h3|i2v|draft_3s|73.0|M1 Ultra|64.0|fast": {- "n": 55,- "p25_sec": 105.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 180.0,+ "p75_sec": 210.0},"h3|i2v|draft_3s|73.0|M3 Max|36.0|best": {"n": 5,@@ -358,16 +226,16 @@"p75_sec": 420.0},"h3|i2v|draft_3s|73.0|M3 Max|36.0|fast": {- "n": 17,+ "n": 16,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"h3|i2v|draft_3s|73.0|M3 Ultra|256.0|fast": {- "n": 5,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 90.0+ "p75_sec": 67.5},"h3|i2v|draft_3s|73.0|M3 Ultra|512.0|best": {"n": 17,@@ -388,10 +256,10 @@"p75_sec": 255.0},"h3|i2v|draft_3s|73.0|M4 Max|128.0|fast": {- "n": 18,+ "n": 17,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 225.0+ "p75_sec": 240.0},"h3|i2v|draft_3s|73.0|M4 Max|36.0|best": {"n": 6,@@ -412,10 +280,10 @@"p75_sec": 180.0},"h3|i2v|draft_3s|73.0|M4 Pro|48.0|best": {- "n": 5,+ "n": 4,"p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0+ "p50_sec": 510.0,+ "p75_sec": 750.0},"h3|i2v|draft_3s|73.0|M4 Pro|48.0|fast": {"n": 11,@@ -423,24 +291,12 @@"p50_sec": 180.0,"p75_sec": 240.0},- "h3|i2v|draft_3s|73.0|M4 Pro|64.0|fast": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"h3|i2v|draft_3s|73.0|M5 Max|128.0|best": {- "n": 16,+ "n": 14,"p25_sec": 60.0,- "p50_sec": 60.0,+ "p50_sec": 75.0,"p75_sec": 120.0},- "h3|i2v|draft_3s|73.0|M5 Max|128.0|fast": {- "n": 3,- "p25_sec": 37.5,- "p50_sec": 45.0,- "p75_sec": 52.5- },"h3|i2v|draft_3s|73.0|M5 Max|36.0|fast": {"n": 5,"p25_sec": 45.0,@@ -448,7 +304,7 @@"p75_sec": 60.0},"h3|i2v|draft_3s|73.0|M5 Max|64.0|best": {- "n": 5,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -460,22 +316,16 @@"p75_sec": 120.0},"h3|i2v|draft_3s|73.0|M5 Pro|48.0|fast": {- "n": 6,+ "n": 5,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},- "h3|i2v|draft_3s|73.0|M5 Pro|64.0|best": {- "n": 13,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|i2v|draft_3s|73.0|M5 Pro|64.0|fast": {- "n": 15,+ "n": 11,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 90.0+ "p75_sec": 60.0},"h3|i2v|draft_5s|124.0|M1 Max|64.0|best": {"n": 25,@@ -490,22 +340,10 @@"p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M1 Ultra|64.0|fast": {- "n": 23,+ "n": 13,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 270.0- },- "h3|i2v|draft_5s|124.0|M2 Max|96.0|fast": {- "n": 3,- "p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 270.0- },- "h3|i2v|draft_5s|124.0|M2 Ultra|64.0|fast": {- "n": 7,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0+ "p75_sec": 300.0},"h3|i2v|draft_5s|124.0|M3 Max|36.0|best": {"n": 3,@@ -514,9 +352,9 @@"p75_sec": 900.0},"h3|i2v|draft_5s|124.0|M3 Max|36.0|fast": {- "n": 5,+ "n": 4,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M3 Max|96.0|best": {@@ -538,14 +376,14 @@"p75_sec": 750.0},"h3|i2v|draft_5s|124.0|M3 Ultra|512.0|fast": {- "n": 36,+ "n": 35,"p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 210.0+ "p50_sec": 90.0,+ "p75_sec": 240.0},"h3|i2v|draft_5s|124.0|M4 Max|128.0|fast": {- "n": 15,- "p25_sec": 270.0,+ "n": 8,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -555,24 +393,12 @@"p50_sec": 180.0,"p75_sec": 180.0},- "h3|i2v|draft_5s|124.0|M4 Max|64.0|best": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|draft_5s|124.0|M4 Max|64.0|fast": {"n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 300.0},- "h3|i2v|draft_5s|124.0|M4 Pro|48.0|best": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"h3|i2v|draft_5s|124.0|M4 Pro|48.0|fast": {"n": 5,"p25_sec": 300.0,@@ -580,10 +406,10 @@"p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M5 Max|128.0|best": {- "n": 13,+ "n": 6,"p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 150.0,+ "p75_sec": 180.0},"h3|i2v|draft_5s|124.0|M5 Max|128.0|fast": {"n": 6,@@ -591,12 +417,6 @@"p50_sec": 75.0,"p75_sec": 90.0},- "h3|i2v|draft_5s|124.0|M5 Max|36.0|fast": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 135.0- },"h3|i2v|draft_5s|124.0|M5 Max|48.0|best": {"n": 3,"p25_sec": 120.0,@@ -616,10 +436,10 @@"p75_sec": 90.0},"h3|i2v|draft_5s|124.0|M5 Pro|64.0|best": {- "n": 96,+ "n": 89,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 330.0+ "p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M5 Pro|64.0|fast": {"n": 31,@@ -634,41 +454,17 @@"p75_sec": 420.0},"h3|i2v|fast_hd_10s|243.0|M4 Pro|64.0|fast": {- "n": 91,+ "n": 27,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "h3|i2v|fast_hd_10s|243.0|M5 Max|36.0|fast": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "h3|i2v|fast_hd_15s|362.0|M4 Pro|64.0|fast": {- "n": 3,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1350.0- },"h3|i2v|fast_hd_3s|73.0|M4 Max|48.0|fast": {"n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 135.0},- "h3|i2v|fast_hd_5s|124.0|M4 Max|64.0|fast": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 270.0- },- "h3|i2v|fast_hd_5s|124.0|M4 Pro|64.0|fast": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|i2v|high_10s_dense|243.0|M1 Ultra|64.0|best": {"n": 12,"p25_sec": 5400.0,@@ -706,7 +502,7 @@"p75_sec": 4500.0},"h3|i2v|high_10s|243.0|M1 Ultra|64.0|fast": {- "n": 11,+ "n": 8,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -736,7 +532,7 @@"p75_sec": 1800.0},"h3|i2v|high_10s|243.0|M4 Max|128.0|fast": {- "n": 32,+ "n": 27,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -754,43 +550,31 @@"p75_sec": 2400.0},"h3|i2v|high_10s|243.0|M4 Max|64.0|fast": {- "n": 131,+ "n": 118,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|high_10s|243.0|M5 Max|128.0|best": {- "n": 18,- "p25_sec": 975.0,- "p50_sec": 1200.0,- "p75_sec": 1650.0+ "n": 9,+ "p25_sec": 900.0,+ "p50_sec": 900.0,+ "p75_sec": 2400.0},"h3|i2v|high_10s|243.0|M5 Max|128.0|fast": {- "n": 41,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|i2v|high_10s|243.0|M5 Max|128.0|v13": {- "n": 22,+ "n": 26,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|i2v|high_10s|243.0|M5 Max|64.0|best": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "p75_sec": 825.0},"h3|i2v|high_10s|243.0|M5 Pro|48.0|best": {- "n": 34,+ "n": 33,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|high_10s|243.0|M5 Pro|48.0|fast": {- "n": 91,+ "n": 72,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -814,7 +598,7 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M4 Max|128.0|fast": {- "n": 1012,+ "n": 816,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -826,17 +610,11 @@"p75_sec": 2700.0},"h3|i2v|high_15s|362.0|M5 Max|128.0|fast": {- "n": 17,- "p25_sec": 420.0,+ "n": 11,+ "p25_sec": 1050.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|high_15s|362.0|M5 Max|128.0|v13": {- "n": 9,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|high_15s|362.0|M5 Max|64.0|best": {"n": 5,"p25_sec": 1800.0,@@ -844,10 +622,10 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M5 Max|64.0|fast": {- "n": 4,+ "n": 3,"p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 900.0+ "p50_sec": 600.0,+ "p75_sec": 750.0},"h3|i2v|high_15s|362.0|M5 Pro|48.0|best": {"n": 5,@@ -862,10 +640,10 @@"p75_sec": 900.0},"h3|i2v|high_15s|362.0|M5 Pro|64.0|fast": {- "n": 10,+ "n": 9,"p25_sec": 1800.0,- "p50_sec": 2700.0,- "p75_sec": 4950.0+ "p50_sec": 3600.0,+ "p75_sec": 5400.0},"h3|i2v|high_3s|73.0|M1 Ultra|64.0|best": {"n": 11,@@ -880,10 +658,10 @@"p75_sec": 420.0},"h3|i2v|high_3s|73.0|M4 Max|128.0|fast": {- "n": 126,+ "n": 47,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 390.0+ "p75_sec": 420.0},"h3|i2v|high_3s|73.0|M4 Max|48.0|fast": {"n": 6,@@ -892,13 +670,13 @@"p75_sec": 300.0},"h3|i2v|high_3s|73.0|M4 Max|64.0|best": {- "n": 272,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "n": 8,+ "p25_sec": 555.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0},"h3|i2v|high_3s|73.0|M4 Max|64.0|fast": {- "n": 5,+ "n": 4,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -909,12 +687,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "h3|i2v|high_3s|73.0|M5 Max|128.0|best": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },"h3|i2v|high_3s|73.0|M5 Max|128.0|fast": {"n": 80,"p25_sec": 120.0,@@ -928,7 +700,7 @@"p75_sec": 255.0},"h3|i2v|high_3s|73.0|M5 Max|64.0|best": {- "n": 27,+ "n": 18,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -945,12 +717,6 @@"p50_sec": 120.0,"p75_sec": 180.0},- "h3|i2v|high_3s|73.0|M5 Pro|64.0|best": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|i2v|high_5s|124.0|M1 Max|64.0|best": {"n": 4,"p25_sec": 2250.0,@@ -994,7 +760,7 @@"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M2 Ultra|64.0|fast": {- "n": 24,+ "n": 23,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -1012,13 +778,13 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M3 Ultra|256.0|best": {- "n": 9,+ "n": 4,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 975.0},"h3|i2v|high_5s|124.0|M3 Ultra|256.0|fast": {- "n": 66,+ "n": 56,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -1047,17 +813,11 @@"p50_sec": 420.0,"p75_sec": 420.0},- "h3|i2v|high_5s|124.0|M4 Max|128.0|best": {- "n": 4,- "p25_sec": 1125.0,- "p50_sec": 1200.0,- "p75_sec": 1350.0- },"h3|i2v|high_5s|124.0|M4 Max|128.0|fast": {- "n": 321,+ "n": 221,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"h3|i2v|high_5s|124.0|M4 Max|36.0|fast": {"n": 3,@@ -1078,13 +838,13 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M4 Max|64.0|best": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1800.0,+ "n": 4,+ "p25_sec": 1125.0,+ "p50_sec": 1500.0,"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M4 Max|64.0|fast": {- "n": 167,+ "n": 160,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -1096,25 +856,19 @@"p75_sec": 900.0},"h3|i2v|high_5s|124.0|M5 Max|128.0|best": {- "n": 30,- "p25_sec": 600.0,- "p50_sec": 900.0,+ "n": 7,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|high_5s|124.0|M5 Max|128.0|fast": {- "n": 213,+ "n": 147,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},- "h3|i2v|high_5s|124.0|M5 Max|128.0|v13": {- "n": 5,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"h3|i2v|high_5s|124.0|M5 Max|64.0|best": {- "n": 30,+ "n": 20,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -1126,29 +880,17 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M5 Pro|48.0|fast": {- "n": 690,+ "n": 654,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|high_5s|124.0|M5 Pro|64.0|best": {- "n": 3,- "p25_sec": 1050.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"h3|i2v|high_5s|124.0|M5 Pro|64.0|fast": {"n": 3,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|high_5s|124.0|M5|24.0|fast": {- "n": 33,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|native_10s|243.0|M1 Ultra|64.0|best": {"n": 13,"p25_sec": 5400.0,@@ -1264,8 +1006,8 @@"p75_sec": 900.0},"h3|i2v|native_5s|124.0|M5 Pro|48.0|best": {- "n": 14,- "p25_sec": 1800.0,+ "n": 3,+ "p25_sec": 1500.0,"p50_sec": 1800.0,"p75_sec": 1800.0},@@ -1288,7 +1030,7 @@"p75_sec": 1800.0},"h3|i2v|standard_10s_dense|243.0|M4 Max|64.0|best": {- "n": 26,+ "n": 12,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0@@ -1342,7 +1084,7 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M1 Ultra|64.0|fast": {- "n": 12,+ "n": 11,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -1377,12 +1119,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|standard_10s|243.0|M3 Ultra|512.0|best": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|i2v|standard_10s|243.0|M3 Ultra|512.0|fast": {"n": 4,"p25_sec": 600.0,@@ -1396,19 +1132,19 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M4 Max|128.0|fast": {- "n": 7,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 3,+ "p25_sec": 510.0,+ "p50_sec": 600.0,+ "p75_sec": 750.0},"h3|i2v|standard_10s|243.0|M4 Max|64.0|best": {- "n": 54,+ "n": 50,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M4 Max|64.0|fast": {- "n": 188,+ "n": 164,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -1425,16 +1161,10 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|standard_10s|243.0|M4 Pro|64.0|fast": {- "n": 28,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|standard_10s|243.0|M5 Max|128.0|best": {- "n": 39,- "p25_sec": 300.0,- "p50_sec": 300.0,+ "n": 11,+ "p25_sec": 330.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"h3|i2v|standard_10s|243.0|M5 Max|128.0|fast": {@@ -1456,10 +1186,10 @@"p75_sec": 420.0},"h3|i2v|standard_10s|243.0|M5 Max|64.0|fast": {- "n": 4,+ "n": 3,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 210.0+ "p75_sec": 240.0},"h3|i2v|standard_10s|243.0|M5 Pro|48.0|fast": {"n": 7,@@ -1480,7 +1210,7 @@"p75_sec": 300.0},"h3|i2v|standard_15s|362.0|M1 Max|64.0|best": {- "n": 13,+ "n": 11,"p25_sec": 3600.0,"p50_sec": 3600.0,"p75_sec": 5400.0@@ -1528,27 +1258,21 @@"p75_sec": 4500.0},"h3|i2v|standard_15s|362.0|M5 Max|128.0|best": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 900.0,+ "n": 3,+ "p25_sec": 1050.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_15s|362.0|M5 Max|128.0|fast": {- "n": 16,+ "n": 15,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|standard_15s|362.0|M5 Max|36.0|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },"h3|i2v|standard_15s|362.0|M5 Max|64.0|best": {- "n": 5,+ "n": 4,"p25_sec": 600.0,- "p50_sec": 600.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"h3|i2v|standard_15s|362.0|M5 Max|64.0|fast": {@@ -1558,7 +1282,7 @@"p75_sec": 420.0},"h3|i2v|standard_15s|362.0|M5 Pro|64.0|best": {- "n": 11,+ "n": 10,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -1587,12 +1311,6 @@"p50_sec": 300.0,"p75_sec": 330.0},- "h3|i2v|standard_3s|73.0|M4 Max|36.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|standard_3s|73.0|M4 Max|36.0|fast": {"n": 5,"p25_sec": 180.0,@@ -1624,13 +1342,13 @@"p75_sec": 180.0},"h3|i2v|standard_3s|73.0|M5 Pro|64.0|best": {- "n": 11,+ "n": 6,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 180.0+ "p75_sec": 225.0},"h3|i2v|standard_3s|73.0|M5 Pro|64.0|fast": {- "n": 15,+ "n": 14,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -1642,10 +1360,10 @@"p75_sec": 1200.0},"h3|i2v|standard_5s|124.0|M1 Max|64.0|fast": {- "n": 24,+ "n": 23,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 510.0},"h3|i2v|standard_5s|124.0|M1 Ultra|128.0|fast": {"n": 3,@@ -1702,10 +1420,10 @@"p75_sec": 180.0},"h3|i2v|standard_5s|124.0|M3 Ultra|512.0|best": {- "n": 10,+ "n": 9,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 1200.0},"h3|i2v|standard_5s|124.0|M3 Ultra|512.0|fast": {"n": 16,@@ -1714,10 +1432,10 @@"p75_sec": 465.0},"h3|i2v|standard_5s|124.0|M3 Ultra|96.0|best": {- "n": 14,+ "n": 12,"p25_sec": 300.0,- "p50_sec": 360.0,- "p75_sec": 420.0+ "p50_sec": 300.0,+ "p75_sec": 465.0},"h3|i2v|standard_5s|124.0|M3 Ultra|96.0|fast": {"n": 7,@@ -1732,35 +1450,29 @@"p75_sec": 1125.0},"h3|i2v|standard_5s|124.0|M4 Max|128.0|fast": {- "n": 18,+ "n": 13,"p25_sec": 300.0,- "p50_sec": 360.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"h3|i2v|standard_5s|124.0|M4 Max|36.0|best": {- "n": 14,+ "n": 12,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M4 Max|64.0|best": {- "n": 56,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M4 Max|64.0|fast": {- "n": 267,+ "n": 265,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},- "h3|i2v|standard_5s|124.0|M4 Pro|48.0|best": {- "n": 11,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"h3|i2v|standard_5s|124.0|M4 Pro|48.0|fast": {"n": 9,"p25_sec": 420.0,@@ -1768,31 +1480,19 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M5 Max|128.0|best": {- "n": 111,+ "n": 109,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},- "h3|i2v|standard_5s|124.0|M5 Max|128.0|fast": {- "n": 4,- "p25_sec": 112.5,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|i2v|standard_5s|124.0|M5 Max|48.0|best": {"n": 17,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},- "h3|i2v|standard_5s|124.0|M5 Max|64.0|best": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0- },"h3|i2v|standard_5s|124.0|M5 Max|64.0|fast": {- "n": 6,+ "n": 5,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -1810,64 +1510,22 @@"p75_sec": 420.0},"h3|i2v|standard_5s|124.0|M5 Pro|64.0|best": {- "n": 15,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0+ "n": 4,+ "p25_sec": 300.0,+ "p50_sec": 360.0,+ "p75_sec": 465.0},"h3|i2v|standard_5s|124.0|M5 Pro|64.0|fast": {- "n": 17,- "p25_sec": 180.0,+ "n": 13,+ "p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},- "h3|keyframe|draft_10s|243.0|M5 Pro|64.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|keyframe|draft_3s|73.0|M4 Pro|64.0|fast": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "h3|keyframe|draft_5s|124.0|M5 Max|128.0|best": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|keyframe|draft_5s|124.0|M5 Pro|64.0|fast": {- "n": 12,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|keyframe|fast_hd_10s|243.0|M3 Ultra|256.0|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|fast_hd_10s|243.0|M5 Pro|64.0|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|high_10s|243.0|M3 Max|128.0|fast": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|keyframe|high_15s|362.0|M4 Max|128.0|fast": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "h3|keyframe|draft_5s|124.0|M5 Pro|64.0|fast": {+ "n": 12,+ "p25_sec": 120.0,+ "p50_sec": 120.0,+ "p75_sec": 120.0},"h3|keyframe|high_3s|73.0|M5 Max|128.0|fast": {"n": 7,@@ -1875,35 +1533,17 @@"p50_sec": 120.0,"p75_sec": 120.0},- "h3|keyframe|high_5s|124.0|M4 Max|64.0|fast": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|keyframe|high_5s|124.0|M5 Max|128.0|best": {- "n": 6,- "p25_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 900.0},"h3|keyframe|high_5s|124.0|M5 Max|128.0|fast": {- "n": 22,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|standard_10s|243.0|M4 Max|64.0|fast": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|keyframe|standard_3s|73.0|M5 Pro|64.0|best": {"n": 4,"p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0+ "p50_sec": 270.0,+ "p75_sec": 300.0},"h3|keyframe|standard_5s|124.0|M3 Ultra|256.0|best": {"n": 5,@@ -1911,24 +1551,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "h3|keyframe|standard_5s|124.0|M4 Max|64.0|fast": {- "n": 22,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },- "h3|keyframe|standard_5s|124.0|M5 Max|128.0|fast": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|keyframe|standard_5s|124.0|M5 Pro|64.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|keyframe|standard_5s|124.0|M5 Pro|64.0|fast": {"n": 4,"p25_sec": 225.0,@@ -1978,9 +1600,9 @@"p75_sec": 600.0},"h3|t2v|draft_10s|243.0|M2 Max|96.0|fast": {- "n": 8,+ "n": 5,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"h3|t2v|draft_10s|243.0|M3 Max|96.0|best": {@@ -2007,12 +1629,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "h3|t2v|draft_10s|243.0|M4 Pro|64.0|best": {- "n": 3,- "p25_sec": 1500.0,- "p50_sec": 1800.0,- "p75_sec": 2700.0- },"h3|t2v|draft_10s|243.0|M5 Max|128.0|best": {"n": 4,"p25_sec": 240.0,@@ -2026,17 +1642,11 @@"p75_sec": 120.0},"h3|t2v|draft_10s|243.0|M5 Max|36.0|fast": {- "n": 23,+ "n": 16,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},- "h3|t2v|draft_10s|243.0|M5 Pro|48.0|fast": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 360.0- },"h3|t2v|draft_15s|362.0|M1 Max|64.0|fast": {"n": 3,"p25_sec": 1200.0,@@ -2062,29 +1672,17 @@"p75_sec": 2400.0},"h3|t2v|draft_15s|362.0|M4 Pro|48.0|fast": {- "n": 17,+ "n": 16,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|t2v|draft_15s|362.0|M4 Pro|64.0|best": {- "n": 3,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 4500.0- },"h3|t2v|draft_15s|362.0|M5 Max|128.0|fast": {- "n": 6,+ "n": 5,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|t2v|draft_15s|362.0|M5 Max|36.0|fast": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"h3|t2v|draft_15s|362.0|M5 Max|64.0|best": {"n": 5,"p25_sec": 420.0,@@ -2104,16 +1702,16 @@"p75_sec": 180.0},"h3|t2v|draft_15s|362.0|M5 Pro|64.0|fast": {- "n": 13,+ "n": 12,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|t2v|draft_3s|73.0|M1 Max|64.0|best": {- "n": 12,+ "n": 11,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 510.0},"h3|t2v|draft_3s|73.0|M1 Max|64.0|fast": {"n": 7,@@ -2152,7 +1750,7 @@"p75_sec": 180.0},"h3|t2v|draft_3s|73.0|M3 Max|36.0|best": {- "n": 5,+ "n": 3,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -2169,18 +1767,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "h3|t2v|draft_3s|73.0|M3 Ultra|256.0|best": {- "n": 8,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 135.0- },- "h3|t2v|draft_3s|73.0|M3 Ultra|256.0|fast": {- "n": 3,- "p25_sec": 52.5,- "p50_sec": 60.0,- "p75_sec": 60.0- },"h3|t2v|draft_3s|73.0|M3 Ultra|512.0|best": {"n": 21,"p25_sec": 90.0,@@ -2212,9 +1798,9 @@"p75_sec": 330.0},"h3|t2v|draft_3s|73.0|M4 Max|128.0|fast": {- "n": 29,+ "n": 28,"p25_sec": 120.0,- "p50_sec": 120.0,+ "p50_sec": 150.0,"p75_sec": 240.0},"h3|t2v|draft_3s|73.0|M4 Max|48.0|best": {@@ -2247,18 +1833,6 @@"p50_sec": 180.0,"p75_sec": 240.0},- "h3|t2v|draft_3s|73.0|M4 Pro|64.0|best": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|t2v|draft_3s|73.0|M4 Pro|64.0|fast": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"h3|t2v|draft_3s|73.0|M5 Max|128.0|best": {"n": 541,"p25_sec": 60.0,@@ -2272,13 +1846,13 @@"p75_sec": 60.0},"h3|t2v|draft_3s|73.0|M5 Max|36.0|best": {- "n": 13,+ "n": 9,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"h3|t2v|draft_3s|73.0|M5 Max|36.0|fast": {- "n": 26,+ "n": 22,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 60.0@@ -2302,19 +1876,19 @@"p75_sec": 30.0},"h3|t2v|draft_3s|73.0|M5 Pro|48.0|best": {- "n": 7,- "p25_sec": 105.0,+ "n": 6,+ "p25_sec": 97.5,"p50_sec": 120.0,"p75_sec": 120.0},"h3|t2v|draft_3s|73.0|M5 Pro|64.0|best": {- "n": 11,+ "n": 10,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 300.0},"h3|t2v|draft_3s|73.0|M5 Pro|64.0|fast": {- "n": 22,+ "n": 20,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0@@ -2356,7 +1930,7 @@"p75_sec": 240.0},"h3|t2v|draft_5s|124.0|M2 Max|96.0|fast": {- "n": 11,+ "n": 5,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -2380,25 +1954,19 @@"p75_sec": 1200.0},"h3|t2v|draft_5s|124.0|M3 Ultra|256.0|best": {- "n": 31,+ "n": 22,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 180.0,"p75_sec": 240.0},- "h3|t2v|draft_5s|124.0|M3 Ultra|256.0|fast": {- "n": 12,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|t2v|draft_5s|124.0|M3 Ultra|512.0|best": {- "n": 8,- "p25_sec": 180.0,- "p50_sec": 750.0,- "p75_sec": 975.0+ "n": 7,+ "p25_sec": 390.0,+ "p50_sec": 900.0,+ "p75_sec": 1050.0},"h3|t2v|draft_5s|124.0|M3 Ultra|512.0|fast": {- "n": 40,+ "n": 38,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -2416,16 +1984,16 @@"p75_sec": 600.0},"h3|t2v|draft_5s|124.0|M4 Max|128.0|fast": {- "n": 19,+ "n": 18,"p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "p50_sec": 210.0,+ "p75_sec": 285.0},"h3|t2v|draft_5s|124.0|M4 Max|36.0|fast": {- "n": 5,+ "n": 3,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 360.0},"h3|t2v|draft_5s|124.0|M4 Max|64.0|best": {"n": 15,@@ -2446,7 +2014,7 @@"p75_sec": 600.0},"h3|t2v|draft_5s|124.0|M4 Pro|48.0|fast": {- "n": 35,+ "n": 33,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -2476,10 +2044,10 @@"p75_sec": 300.0},"h3|t2v|draft_5s|124.0|M5 Max|36.0|fast": {- "n": 34,+ "n": 6,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 60.0},"h3|t2v|draft_5s|124.0|M5 Max|48.0|best": {"n": 5,@@ -2506,8 +2074,8 @@"p75_sec": 60.0},"h3|t2v|draft_5s|124.0|M5 Pro|64.0|best": {- "n": 12,- "p25_sec": 240.0,+ "n": 10,+ "p25_sec": 255.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -2517,54 +2085,12 @@"p50_sec": 90.0,"p75_sec": 105.0},- "h3|t2v|fast_hd_10s|243.0|M4 Pro|64.0|fast": {- "n": 9,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|t2v|fast_hd_10s|243.0|M5 Max|128.0|fast": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|t2v|fast_hd_15s|362.0|M4 Pro|64.0|fast": {- "n": 24,- "p25_sec": 1125.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0- },- "h3|t2v|fast_hd_15s|362.0|M5 Max|64.0|fast": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 240.0- },- "h3|t2v|fast_hd_15s|362.0|M5 Pro|64.0|fast": {- "n": 15,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|t2v|fast_hd_3s|73.0|M5 Max|36.0|fast": {"n": 7,"p25_sec": 37.5,"p50_sec": 45.0,"p75_sec": 45.0},- "h3|t2v|fast_hd_5s|124.0|M4 Pro|64.0|fast": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|t2v|fast_hd_5s|124.0|M5 Max|128.0|fast": {- "n": 8,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"h3|t2v|high_10s_dense|243.0|M1 Ultra|64.0|best": {"n": 4,"p25_sec": 5400.0,@@ -2632,7 +2158,7 @@"p75_sec": 1200.0},"h3|t2v|high_10s|243.0|M5 Max|36.0|fast": {- "n": 4,+ "n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -2674,47 +2200,29 @@"p75_sec": 1500.0},"h3|t2v|high_15s|362.0|M5 Max|64.0|fast": {- "n": 12,- "p25_sec": 600.0,+ "n": 7,+ "p25_sec": 510.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|t2v|high_15s|362.0|M5 Pro|64.0|best": {- "n": 11,+ "n": 7,"p25_sec": 1800.0,- "p50_sec": 3600.0,+ "p50_sec": 1800.0,"p75_sec": 3600.0},- "h3|t2v|high_15s|362.0|M5 Pro|64.0|fast": {- "n": 11,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|t2v|high_3s|73.0|M1 Ultra|64.0|best": {"n": 23,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "h3|t2v|high_3s|73.0|M3 Ultra|96.0|fast": {- "n": 3,- "p25_sec": 150.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"h3|t2v|high_3s|73.0|M4 Max|128.0|fast": {- "n": 28,+ "n": 26,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},- "h3|t2v|high_3s|73.0|M4 Max|64.0|fast": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"h3|t2v|high_3s|73.0|M4 Pro|48.0|fast": {"n": 4,"p25_sec": 600.0,@@ -2740,10 +2248,10 @@"p75_sec": 5400.0},"h3|t2v|high_5s|124.0|M1 Max|64.0|fast": {- "n": 7,+ "n": 6,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 1125.0},"h3|t2v|high_5s|124.0|M1 Ultra|64.0|best": {"n": 7,@@ -2775,27 +2283,15 @@"p50_sec": 900.0,"p75_sec": 1050.0},- "h3|t2v|high_5s|124.0|M3 Ultra|512.0|best": {- "n": 3,- "p25_sec": 2400.0,- "p50_sec": 2400.0,- "p75_sec": 3900.0- },"h3|t2v|high_5s|124.0|M3 Ultra|512.0|fast": {"n": 4,"p25_sec": 900.0,"p50_sec": 1050.0,"p75_sec": 1200.0},- "h3|t2v|high_5s|124.0|M3 Ultra|96.0|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|t2v|high_5s|124.0|M4 Max|128.0|fast": {- "n": 48,- "p25_sec": 825.0,+ "n": 41,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},@@ -2812,8 +2308,8 @@"p75_sec": 600.0},"h3|t2v|high_5s|124.0|M5 Max|128.0|fast": {- "n": 17,- "p25_sec": 300.0,+ "n": 15,+ "p25_sec": 270.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -2830,10 +2326,10 @@"p75_sec": 240.0},"h3|t2v|high_5s|124.0|M5 Max|64.0|fast": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "n": 3,+ "p25_sec": 210.0,+ "p50_sec": 240.0,+ "p75_sec": 270.0},"h3|t2v|high_5s|124.0|M5 Pro|48.0|best": {"n": 10,@@ -2848,13 +2344,13 @@"p75_sec": 240.0},"h3|t2v|high_5s|124.0|M5 Pro|64.0|best": {- "n": 5,+ "n": 3,"p25_sec": 600.0,- "p50_sec": 900.0,- "p75_sec": 1200.0+ "p50_sec": 600.0,+ "p75_sec": 750.0},"h3|t2v|high_5s|124.0|M5 Pro|64.0|fast": {- "n": 10,+ "n": 9,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3027,18 +2523,6 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|t2v|standard_10s|243.0|M4 Pro|64.0|fast": {- "n": 6,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },- "h3|t2v|standard_10s|243.0|M5 Max|128.0|best": {- "n": 3,- "p25_sec": 450.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|t2v|standard_10s|243.0|M5 Max|128.0|fast": {"n": 9,"p25_sec": 180.0,@@ -3052,7 +2536,7 @@"p75_sec": 465.0},"h3|t2v|standard_10s|243.0|M5 Pro|48.0|fast": {- "n": 10,+ "n": 9,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -3075,12 +2559,6 @@"p50_sec": 2400.0,"p75_sec": 3900.0},- "h3|t2v|standard_15s|362.0|M3 Ultra|96.0|best": {- "n": 3,- "p25_sec": 1050.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0- },"h3|t2v|standard_15s|362.0|M4 Pro|48.0|best": {"n": 10,"p25_sec": 2400.0,@@ -3093,12 +2571,6 @@"p50_sec": 1800.0,"p75_sec": 1800.0},- "h3|t2v|standard_15s|362.0|M4 Pro|64.0|fast": {- "n": 5,- "p25_sec": 3600.0,- "p50_sec": 5400.0,- "p75_sec": 5400.0- },"h3|t2v|standard_15s|362.0|M5 Max|128.0|fast": {"n": 11,"p25_sec": 270.0,@@ -3112,7 +2584,7 @@"p75_sec": 900.0},"h3|t2v|standard_15s|362.0|M5 Max|64.0|fast": {- "n": 51,+ "n": 38,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -3124,10 +2596,10 @@"p75_sec": 420.0},"h3|t2v|standard_15s|362.0|M5 Pro|64.0|best": {- "n": 17,- "p25_sec": 900.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "n": 8,+ "p25_sec": 600.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0},"h3|t2v|standard_15s|362.0|M5 Pro|64.0|fast": {"n": 22,@@ -3147,12 +2619,6 @@"p50_sec": 420.0,"p75_sec": 510.0},- "h3|t2v|standard_3s|73.0|M3 Max|64.0|best": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|t2v|standard_3s|73.0|M3 Max|96.0|best": {"n": 3,"p25_sec": 900.0,@@ -3183,12 +2649,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "h3|t2v|standard_3s|73.0|M4 Max|64.0|fast": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|t2v|standard_3s|73.0|M4 Pro|48.0|best": {"n": 3,"p25_sec": 510.0,@@ -3285,12 +2745,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "h3|t2v|standard_5s|124.0|M3 Max|36.0|turbo": {- "n": 6,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 555.0- },"h3|t2v|standard_5s|124.0|M3 Max|96.0|best": {"n": 16,"p25_sec": 1800.0,@@ -3298,7 +2752,7 @@"p75_sec": 2400.0},"h3|t2v|standard_5s|124.0|M3 Ultra|256.0|best": {- "n": 5,+ "n": 4,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -3316,7 +2770,7 @@"p75_sec": 600.0},"h3|t2v|standard_5s|124.0|M3 Ultra|96.0|best": {- "n": 8,+ "n": 7,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3370,10 +2824,10 @@"p75_sec": 600.0},"h3|t2v|standard_5s|124.0|M4 Pro|64.0|best": {- "n": 6,+ "n": 3,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 900.0+ "p75_sec": 1050.0},"h3|t2v|standard_5s|124.0|M5 Max|128.0|best": {"n": 18,@@ -3400,10 +2854,10 @@"p75_sec": 240.0},"h3|t2v|standard_5s|124.0|M5 Max|64.0|fast": {- "n": 7,- "p25_sec": 60.0,+ "n": 3,+ "p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 90.0+ "p75_sec": 105.0},"h3|t2v|standard_5s|124.0|M5 Pro|48.0|fast": {"n": 9,@@ -3412,13 +2866,13 @@"p75_sec": 120.0},"h3|t2v|standard_5s|124.0|M5 Pro|64.0|best": {- "n": 8,+ "n": 6,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"h3|t2v|standard_5s|124.0|M5 Pro|64.0|fast": {- "n": 8,+ "n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -3435,17 +2889,11 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|balanced|105.0|M1 Max|64.0|any": {- "n": 15,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|balanced|105.0|M4 Pro|48.0|any": {- "n": 6,- "p25_sec": 420.0,+ "n": 4,+ "p25_sec": 390.0,"p50_sec": 420.0,- "p75_sec": 1005.0+ "p75_sec": 420.0},"ltx|a2v|balanced|105.0|M4|32.0|any": {"n": 3,@@ -3459,36 +2907,12 @@"p50_sec": 90.0,"p75_sec": 105.0},- "ltx|a2v|balanced|113.0|M4 Pro|48.0|any": {- "n": 8,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1350.0- },- "ltx|a2v|balanced|113.0|M4|32.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|a2v|balanced|113.0|M5 Max|48.0|any": {"n": 3,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|a2v|balanced|121.0|M1 Max|64.0|any": {- "n": 5,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|a2v|balanced|121.0|M3 Max|36.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|121.0|M4 Max|64.0|any": {"n": 10,"p25_sec": 300.0,@@ -3496,10 +2920,10 @@"p75_sec": 600.0},"ltx|a2v|balanced|121.0|M4 Pro|48.0|any": {- "n": 26,+ "n": 20,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 1050.0+ "p75_sec": 465.0},"ltx|a2v|balanced|121.0|M4|16.0|any": {"n": 3,@@ -3508,7 +2932,7 @@"p75_sec": 510.0},"ltx|a2v|balanced|121.0|M4|32.0|any": {- "n": 63,+ "n": 58,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -3519,29 +2943,17 @@"p50_sec": 90.0,"p75_sec": 97.5},- "ltx|a2v|balanced|121.0|M5 Pro|24.0|any": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|a2v|balanced|129.0|M1 Max|64.0|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|a2v|balanced|129.0|M4 Pro|48.0|any": {- "n": 14,- "p25_sec": 600.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0+ "n": 6,+ "p25_sec": 420.0,+ "p50_sec": 510.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|129.0|M4|32.0|any": {- "n": 7,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 465.0},"ltx|a2v|balanced|129.0|M5 Max|128.0|any": {"n": 3,@@ -3556,16 +2968,16 @@"p75_sec": 120.0},"ltx|a2v|balanced|137.0|M4 Pro|48.0|any": {- "n": 16,+ "n": 8,"p25_sec": 420.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0+ "p50_sec": 420.0,+ "p75_sec": 465.0},"ltx|a2v|balanced|137.0|M4|32.0|any": {- "n": 8,+ "n": 4,"p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0+ "p50_sec": 510.0,+ "p75_sec": 675.0},"ltx|a2v|balanced|137.0|M5 Max|128.0|any": {"n": 10,@@ -3574,14 +2986,14 @@"p75_sec": 120.0},"ltx|a2v|balanced|145.0|M4 Pro|48.0|any": {- "n": 24,+ "n": 13,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 1800.0+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|145.0|M4|32.0|any": {- "n": 8,- "p25_sec": 420.0,+ "n": 6,+ "p25_sec": 465.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -3604,13 +3016,7 @@"p75_sec": 600.0},"ltx|a2v|balanced|153.0|M4 Pro|48.0|any": {- "n": 18,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1800.0- },- "ltx|a2v|balanced|153.0|M4|32.0|any": {- "n": 5,+ "n": 10,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -3622,31 +3028,25 @@"p75_sec": 120.0},"ltx|a2v|balanced|161.0|M4 Pro|48.0|any": {- "n": 14,+ "n": 7,"p25_sec": 600.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|161.0|M4|32.0|any": {- "n": 5,+ "n": 3,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|169.0|M1 Pro|32.0|any": {- "n": 10,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|a2v|balanced|169.0|M4 Pro|48.0|any": {- "n": 10,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 1800.0+ "p75_sec": 600.0},"ltx|a2v|balanced|169.0|M4|32.0|any": {- "n": 20,+ "n": 16,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -3658,14 +3058,8 @@"p75_sec": 120.0},"ltx|a2v|balanced|177.0|M4 Pro|48.0|any": {- "n": 20,- "p25_sec": 600.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|177.0|M4|32.0|any": {- "n": 3,- "p25_sec": 600.0,+ "n": 9,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -3676,15 +3070,15 @@"p75_sec": 150.0},"ltx|a2v|balanced|185.0|M4 Pro|48.0|any": {- "n": 8,- "p25_sec": 600.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0+ "n": 3,+ "p25_sec": 510.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|193.0|M4 Pro|48.0|any": {- "n": 10,+ "n": 8,"p25_sec": 600.0,- "p50_sec": 750.0,+ "p50_sec": 600.0,"p75_sec": 900.0},"ltx|a2v|balanced|193.0|M4|32.0|any": {@@ -3694,31 +3088,19 @@"p75_sec": 600.0},"ltx|a2v|balanced|201.0|M4 Pro|48.0|any": {- "n": 15,- "p25_sec": 600.0,- "p50_sec": 900.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|201.0|M4|32.0|any": {- "n": 3,+ "n": 10,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|a2v|balanced|209.0|M4 Pro|48.0|any": {- "n": 7,+ "n": 3,"p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|209.0|M4|32.0|any": {- "n": 5,- "p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|217.0|M4 Pro|48.0|any": {- "n": 50,+ "n": 46,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -3729,48 +3111,24 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|225.0|M4 Pro|48.0|any": {- "n": 5,+ "ltx|a2v|balanced|241.0|M4 Pro|48.0|any": {+ "n": 30,"p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|233.0|M4 Pro|48.0|any": {- "n": 5,- "p25_sec": 2400.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|241.0|M4 Pro|48.0|any": {- "n": 33,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "p50_sec": 900.0,+ "p75_sec": 900.0},"ltx|a2v|balanced|241.0|M4|32.0|any": {- "n": 5,+ "n": 4,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|M5 Max|64.0|any": {- "n": 33,+ "n": 29,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|289.0|M5 Max|64.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|a2v|balanced|49.0|M4 Pro|48.0|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 390.0,- "p75_sec": 600.0- },"ltx|a2v|balanced|49.0|M4|32.0|any": {"n": 9,"p25_sec": 300.0,@@ -3778,10 +3136,10 @@"p75_sec": 300.0},"ltx|a2v|balanced|57.0|M4 Pro|48.0|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 3,+ "p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 600.0+ "p75_sec": 300.0},"ltx|a2v|balanced|57.0|M4|32.0|any": {"n": 4,@@ -3795,24 +3153,6 @@"p50_sec": 45.0,"p75_sec": 52.5},- "ltx|a2v|balanced|65.0|M1 Max|64.0|any": {- "n": 10,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|a2v|balanced|65.0|M4 Max|128.0|any": {- "n": 4,- "p25_sec": 555.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|a2v|balanced|65.0|M4 Pro|48.0|any": {- "n": 4,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|a2v|balanced|65.0|M4|32.0|any": {"n": 3,"p25_sec": 300.0,@@ -3825,20 +3165,14 @@"p50_sec": 45.0,"p75_sec": 52.5},- "ltx|a2v|balanced|73.0|M1 Max|64.0|any": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|73.0|M4 Pro|48.0|any": {- "n": 6,- "p25_sec": 450.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 3,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 750.0},"ltx|a2v|balanced|73.0|M4|32.0|any": {- "n": 45,+ "n": 44,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -3855,39 +3189,21 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|a2v|balanced|81.0|M1 Max|64.0|any": {- "n": 10,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|81.0|M4 Pro|48.0|any": {- "n": 9,- "p25_sec": 420.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 4,+ "p25_sec": 300.0,+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|81.0|M4|32.0|any": {- "n": 13,+ "n": 8,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|balanced|89.0|M1 Max|64.0|any": {- "n": 6,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },- "ltx|a2v|balanced|89.0|M4 Pro|48.0|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 750.0,- "p75_sec": 1200.0- },"ltx|a2v|balanced|89.0|M4|32.0|any": {- "n": 10,- "p25_sec": 300.0,+ "n": 8,+ "p25_sec": 390.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -3897,22 +3213,16 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|a2v|balanced|97.0|M1 Max|64.0|any": {- "n": 8,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|balanced|97.0|M4 Pro|48.0|any": {- "n": 21,+ "n": 15,"p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 1200.0+ "p50_sec": 300.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|97.0|M4|32.0|any": {- "n": 11,+ "n": 8,"p25_sec": 420.0,- "p50_sec": 420.0,+ "p50_sec": 510.0,"p75_sec": 600.0},"ltx|a2v|balanced|97.0|M5 Max|48.0|any": {@@ -3939,18 +3249,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|high|113.0|M5 Max|64.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },- "ltx|a2v|high|121.0|M1 Max|64.0|any": {- "n": 7,- "p25_sec": 150.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },"ltx|a2v|high|121.0|M1 Pro|16.0|any": {"n": 3,"p25_sec": 330.0,@@ -3969,12 +3267,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|high|121.0|M3 Ultra|96.0|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 120.0- },"ltx|a2v|high|121.0|M4 Max|128.0|any": {"n": 3,"p25_sec": 570.0,@@ -3994,10 +3286,10 @@"p75_sec": 240.0},"ltx|a2v|high|121.0|M4 Pro|48.0|any": {- "n": 6,- "p25_sec": 375.0,+ "n": 5,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 825.0+ "p75_sec": 900.0},"ltx|a2v|high|121.0|M5 Max|128.0|any": {"n": 10,@@ -4011,12 +3303,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|121.0|M6|24.0|any": {- "n": 9,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|high|129.0|M5 Max|48.0|any": {"n": 3,"p25_sec": 120.0,@@ -4048,10 +3334,10 @@"p75_sec": 300.0},"ltx|a2v|high|145.0|M5 Pro|48.0|any": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 555.0+ "n": 5,+ "p25_sec": 90.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|high|153.0|M5 Pro|24.0|any": {"n": 4,@@ -4060,9 +3346,9 @@"p75_sec": 90.0},"ltx|a2v|high|169.0|M1 Max|64.0|any": {- "n": 6,- "p25_sec": 750.0,- "p50_sec": 1500.0,+ "n": 5,+ "p25_sec": 1200.0,+ "p50_sec": 1800.0,"p75_sec": 1800.0},"ltx|a2v|high|169.0|M1 Pro|16.0|any": {@@ -4107,12 +3393,6 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|a2v|high|169.0|M5 Max|64.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|a2v|high|169.0|M5 Pro|24.0|any": {"n": 4,"p25_sec": 150.0,@@ -4150,7 +3430,7 @@"p75_sec": 1800.0},"ltx|a2v|high|193.0|M5 Pro|48.0|any": {- "n": 82,+ "n": 64,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -4161,12 +3441,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|a2v|high|209.0|M5 Max|64.0|any": {- "n": 4,- "p25_sec": 555.0,- "p50_sec": 600.0,- "p75_sec": 675.0- },"ltx|a2v|high|217.0|M1 Pro|16.0|any": {"n": 31,"p25_sec": 510.0,@@ -4185,14 +3459,8 @@"p50_sec": 900.0,"p75_sec": 1350.0},- "ltx|a2v|high|217.0|M5 Max|64.0|any": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|a2v|high|217.0|M5 Pro|48.0|any": {- "n": 12,+ "n": 4,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -4204,10 +3472,10 @@"p75_sec": 900.0},"ltx|a2v|high|241.0|M1 Pro|16.0|any": {- "n": 31,- "p25_sec": 600.0,+ "n": 8,+ "p25_sec": 555.0,"p50_sec": 600.0,- "p75_sec": 750.0+ "p75_sec": 600.0},"ltx|a2v|high|241.0|M1 Ultra|64.0|any": {"n": 22,@@ -4221,17 +3489,11 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|241.0|M2|16.0|any": {- "n": 3,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1050.0- },"ltx|a2v|high|241.0|M4 Max|128.0|any": {- "n": 30,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 825.0+ "n": 7,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0},"ltx|a2v|high|241.0|M4 Max|36.0|any": {"n": 7,@@ -4263,26 +3525,14 @@"p50_sec": 180.0,"p75_sec": 300.0},- "ltx|a2v|high|241.0|M5 Max|64.0|any": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 825.0- },"ltx|a2v|high|241.0|M5 Pro|24.0|any": {- "n": 7,- "p25_sec": 120.0,- "p50_sec": 180.0,+ "n": 5,+ "p25_sec": 60.0,+ "p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|high|241.0|M5 Pro|48.0|any": {- "n": 10,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|a2v|high|241.0|M5|16.0|any": {- "n": 10,+ "n": 9,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -4293,24 +3543,12 @@"p50_sec": 600.0,"p75_sec": 675.0},- "ltx|a2v|high|289.0|M5 Max|64.0|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"ltx|a2v|high|289.0|M5 Pro|24.0|any": {"n": 3,"p25_sec": 330.0,"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|a2v|high|289.0|M5 Pro|48.0|any": {- "n": 5,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|a2v|high|361.0|M5 Pro|48.0|any": {"n": 3,"p25_sec": 900.0,@@ -4336,7 +3574,7 @@"p75_sec": 2400.0},"ltx|a2v|high|433.0|M4 Pro|24.0|any": {- "n": 83,+ "n": 78,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1800.0@@ -4401,53 +3639,29 @@"p50_sec": 1200.0,"p75_sec": 1650.0},- "ltx|a2v|high|73.0|M1 Pro|16.0|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 240.0- },- "ltx|a2v|high|73.0|M2 Pro|16.0|any": {- "n": 7,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0- },"ltx|a2v|high|73.0|M2|8.0|any": {"n": 7,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|73.0|M3 Max|36.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|a2v|high|73.0|M3 Ultra|256.0|any": {"n": 4,"p25_sec": 300.0,"p50_sec": 360.0,"p75_sec": 420.0},- "ltx|a2v|high|73.0|M3 Ultra|96.0|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 120.0- },"ltx|a2v|high|73.0|M4 Pro|48.0|any": {- "n": 7,- "p25_sec": 180.0,+ "n": 4,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|high|73.0|M4|16.0|any": {- "n": 4,+ "n": 3,"p25_sec": 240.0,- "p50_sec": 330.0,- "p75_sec": 465.0+ "p50_sec": 240.0,+ "p75_sec": 330.0},"ltx|a2v|high|73.0|M5 Max|128.0|any": {"n": 6,@@ -4461,12 +3675,6 @@"p50_sec": 105.0,"p75_sec": 120.0},- "ltx|a2v|high|81.0|M3 Ultra|256.0|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 600.0- },"ltx|a2v|high|81.0|M4 Max|36.0|any": {"n": 5,"p25_sec": 120.0,@@ -4486,9 +3694,9 @@"p75_sec": 2400.0},"ltx|a2v|high|97.0|M1 Max|64.0|any": {- "n": 5,- "p25_sec": 600.0,- "p50_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,+ "p50_sec": 1350.0,"p75_sec": 1800.0},"ltx|a2v|high|97.0|M4 Pro|48.0|any": {@@ -4503,38 +3711,14 @@"p50_sec": 2400.0,"p75_sec": 2400.0},- "ltx|a2v|quick|241.0|M4 Max|48.0|any": {- "n": 7,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|quick|241.0|M4 Pro|48.0|any": {"n": 7,"p25_sec": 750.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|a2v|quick|241.0|M4|24.0|any": {- "n": 11,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },- "ltx|a2v|quick|241.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|a2v|quick|241.0|M5 Pro|24.0|any": {- "n": 31,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|105.0|M4 Max|36.0|any": {- "n": 12,+ "n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -4551,18 +3735,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|standard|113.0|M4 Max|36.0|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|121.0|M4 Max|36.0|any": {- "n": 20,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|121.0|M5 Max|128.0|any": {"n": 4,"p25_sec": 165.0,@@ -4575,12 +3747,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|standard|129.0|M4 Max|36.0|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|129.0|M4 Pro|48.0|any": {"n": 4,"p25_sec": 600.0,@@ -4593,12 +3759,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|standard|137.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|137.0|M4 Pro|48.0|any": {"n": 3,"p25_sec": 600.0,@@ -4623,12 +3783,6 @@"p50_sec": 600.0,"p75_sec": 675.0},- "ltx|a2v|standard|161.0|M4 Max|36.0|any": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|161.0|M4 Pro|48.0|any": {"n": 8,"p25_sec": 600.0,@@ -4647,41 +3801,23 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|a2v|standard|177.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|standard|177.0|M4 Pro|48.0|any": {"n": 6,"p25_sec": 975.0,"p50_sec": 1800.0,"p75_sec": 2400.0},- "ltx|a2v|standard|185.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 210.0- },"ltx|a2v|standard|193.0|M4 Pro|48.0|any": {"n": 11,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 2400.0},- "ltx|a2v|standard|241.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|standard|241.0|M4 Max|48.0|any": {- "n": 11,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "n": 4,+ "p25_sec": 900.0,+ "p50_sec": 900.0,+ "p75_sec": 975.0},"ltx|a2v|standard|241.0|M4 Pro|48.0|any": {"n": 48,@@ -4695,72 +3831,12 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|standard|241.0|M5 Pro|24.0|any": {- "n": 8,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|41.0|M4 Pro|24.0|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|a2v|standard|49.0|M4 Pro|24.0|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|57.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|a2v|standard|73.0|M4 Max|36.0|any": {- "n": 12,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|73.0|M4 Pro|24.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|73.0|M5 Max|128.0|any": {"n": 32,"p25_sec": 90.0,"p50_sec": 105.0,"p75_sec": 180.0},- "ltx|a2v|standard|81.0|M4 Max|36.0|any": {- "n": 11,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|89.0|M4 Max|36.0|any": {- "n": 4,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|97.0|M4 Max|36.0|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|97.0|M4 Pro|24.0|any": {- "n": 4,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 150.0- },"ltx|a2v|standard|97.0|M4 Pro|48.0|any": {"n": 24,"p25_sec": 600.0,@@ -4780,22 +3856,22 @@"p75_sec": 300.0},"ltx|extend|balanced|121.0|M1 Max|64.0|any": {- "n": 6,+ "n": 5,"p25_sec": 1200.0,- "p50_sec": 1800.0,- "p75_sec": 4650.0+ "p50_sec": 1200.0,+ "p75_sec": 2400.0},"ltx|extend|balanced|121.0|M3 Ultra|256.0|any": {- "n": 6,- "p25_sec": 183.8,- "p50_sec": 750.0,- "p75_sec": 900.0+ "n": 4,+ "p25_sec": 825.0,+ "p50_sec": 900.0,+ "p75_sec": 975.0},"ltx|extend|balanced|121.0|M3 Ultra|96.0|any": {- "n": 6,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 2100.0+ "n": 4,+ "p25_sec": 1050.0,+ "p50_sec": 1800.0,+ "p75_sec": 2700.0},"ltx|extend|balanced|121.0|M4 Pro|48.0|any": {"n": 5,@@ -4815,12 +3891,6 @@"p50_sec": 450.0,"p75_sec": 750.0},- "ltx|extend|balanced|121.0|M5 Pro|64.0|any": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 750.0- },"ltx|extend|balanced|241.0|M1 Max|64.0|any": {"n": 3,"p25_sec": 3000.0,@@ -4839,12 +3909,6 @@"p50_sec": 1800.0,"p75_sec": 1800.0},- "ltx|extend|balanced|241.0|M5 Max|128.0|any": {- "n": 10,- "p25_sec": 975.0,- "p50_sec": 1200.0,- "p75_sec": 1650.0- },"ltx|extend|high|121.0|M5 Max|128.0|any": {"n": 3,"p25_sec": 1050.0,@@ -4899,12 +3963,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|i2v|balanced|113.0|M1 Max|64.0|any": {- "n": 7,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|i2v|balanced|113.0|M2 Max|64.0|any": {"n": 3,"p25_sec": 420.0,@@ -4924,27 +3982,27 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M1 Max|32.0|any": {- "n": 108,+ "n": 52,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M1 Max|64.0|any": {- "n": 373,+ "n": 309,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M1 Pro|16.0|any": {- "n": 71,+ "n": 43,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 420.0},"ltx|i2v|balanced|121.0|M1 Pro|32.0|any": {- "n": 315,- "p25_sec": 240.0,- "p50_sec": 240.0,+ "n": 21,+ "p25_sec": 300.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M1 Ultra|128.0|any": {@@ -4954,25 +4012,25 @@"p75_sec": 210.0},"ltx|i2v|balanced|121.0|M1 Ultra|64.0|any": {- "n": 8,+ "n": 6,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 270.0},"ltx|i2v|balanced|121.0|M1|16.0|any": {- "n": 34,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "n": 20,+ "p25_sec": 900.0,+ "p50_sec": 900.0,+ "p75_sec": 1200.0},"ltx|i2v|balanced|121.0|M1|8.0|any": {- "n": 17,+ "n": 15,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M2 Max|32.0|any": {- "n": 180,+ "n": 153,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -4984,19 +4042,19 @@"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M2 Max|96.0|any": {- "n": 60,+ "n": 57,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|121.0|M2 Pro|16.0|any": {- "n": 14,+ "n": 13,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M2 Pro|32.0|any": {- "n": 8,+ "n": 3,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -5014,16 +4072,16 @@"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M2|16.0|any": {- "n": 11,- "p25_sec": 510.0,+ "n": 10,+ "p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|balanced|121.0|M2|8.0|any": {- "n": 8,- "p25_sec": 825.0,+ "n": 6,+ "p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 1125.0},"ltx|i2v|balanced|121.0|M3 Max|128.0|any": {"n": 4,@@ -5032,7 +4090,7 @@"p75_sec": 330.0},"ltx|i2v|balanced|121.0|M3 Max|36.0|any": {- "n": 47,+ "n": 46,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -5044,19 +4102,19 @@"p75_sec": 195.0},"ltx|i2v|balanced|121.0|M3 Max|64.0|any": {- "n": 390,+ "n": 388,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M3 Pro|18.0|any": {- "n": 19,+ "n": 17,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M3 Pro|36.0|any": {- "n": 37,+ "n": 36,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5074,7 +4132,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M3 Ultra|96.0|any": {- "n": 36,+ "n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5092,37 +4150,37 @@"p75_sec": 510.0},"ltx|i2v|balanced|121.0|M4 Max|128.0|any": {- "n": 28,+ "n": 26,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M4 Max|36.0|any": {- "n": 572,+ "n": 549,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M4 Max|48.0|any": {- "n": 61,+ "n": 38,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|balanced|121.0|M4 Max|64.0|any": {- "n": 500,- "p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 97.5+ "n": 125,+ "p25_sec": 90.0,+ "p50_sec": 120.0,+ "p75_sec": 180.0},"ltx|i2v|balanced|121.0|M4 Pro|24.0|any": {- "n": 174,+ "n": 159,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M4 Pro|48.0|any": {- "n": 196,+ "n": 183,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5134,25 +4192,25 @@"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M4|16.0|any": {- "n": 184,+ "n": 136,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M4|24.0|any": {- "n": 99,+ "n": 95,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M4|32.0|any": {- "n": 18,- "p25_sec": 300.0,+ "n": 4,+ "p25_sec": 390.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|121.0|M5 Max|128.0|any": {- "n": 170,+ "n": 112,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0@@ -5164,67 +4222,55 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M5 Max|48.0|any": {- "n": 16,+ "n": 14,"p25_sec": 60.0,"p50_sec": 90.0,- "p75_sec": 97.5+ "p75_sec": 90.0},"ltx|i2v|balanced|121.0|M5 Max|64.0|any": {- "n": 88,+ "n": 78,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M5 Pro|24.0|any": {- "n": 32,+ "n": 27,"p25_sec": 60.0,- "p50_sec": 75.0,+ "p50_sec": 60.0,"p75_sec": 90.0},"ltx|i2v|balanced|121.0|M5 Pro|48.0|any": {- "n": 254,+ "n": 228,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M5 Pro|64.0|any": {- "n": 229,+ "n": 180,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M5|16.0|any": {- "n": 79,+ "n": 36,"p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 360.0+ "p50_sec": 270.0,+ "p75_sec": 420.0},"ltx|i2v|balanced|121.0|M5|24.0|any": {- "n": 53,+ "n": 42,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 120.0},"ltx|i2v|balanced|121.0|M5|32.0|any": {- "n": 19,- "p25_sec": 150.0,+ "n": 13,+ "p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 270.0+ "p75_sec": 300.0},- "ltx|i2v|balanced|121.0|M6|16.0|any": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|i2v|balanced|121.0|M6|24.0|any": {- "n": 4,- "p25_sec": 165.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|i2v|balanced|121.0|M6|32.0|any": {- "n": 33,+ "ltx|i2v|balanced|121.0|M6|32.0|any": {+ "n": 10,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5253,12 +4299,6 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|i2v|balanced|145.0|M1 Max|64.0|any": {- "n": 11,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|balanced|145.0|M3 Max|64.0|any": {"n": 131,"p25_sec": 240.0,@@ -5277,14 +4317,8 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|balanced|145.0|M4|32.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|i2v|balanced|145.0|M5 Pro|48.0|any": {- "n": 97,+ "n": 94,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -5320,23 +4354,17 @@"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M1 Max|64.0|any": {- "n": 38,- "p25_sec": 300.0,+ "n": 24,+ "p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 600.0},"ltx|i2v|balanced|169.0|M1 Pro|16.0|any": {- "n": 115,+ "n": 17,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 600.0},- "ltx|i2v|balanced|169.0|M1|16.0|any": {- "n": 6,- "p25_sec": 900.0,- "p50_sec": 1050.0,- "p75_sec": 1200.0- },"ltx|i2v|balanced|169.0|M2 Max|32.0|any": {"n": 7,"p25_sec": 300.0,@@ -5350,7 +4378,7 @@"p75_sec": 450.0},"ltx|i2v|balanced|169.0|M2 Max|96.0|any": {- "n": 14,+ "n": 13,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5362,7 +4390,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M2 Ultra|64.0|any": {- "n": 119,+ "n": 118,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5374,10 +4402,10 @@"p75_sec": 1200.0},"ltx|i2v|balanced|169.0|M3 Max|36.0|any": {- "n": 12,- "p25_sec": 240.0,+ "n": 8,+ "p25_sec": 225.0,"p50_sec": 240.0,- "p75_sec": 255.0+ "p75_sec": 300.0},"ltx|i2v|balanced|169.0|M3 Max|64.0|any": {"n": 76,@@ -5386,7 +4414,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M3 Pro|18.0|any": {- "n": 6,+ "n": 5,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5404,7 +4432,7 @@"p75_sec": 900.0},"ltx|i2v|balanced|169.0|M4 Max|36.0|any": {- "n": 181,+ "n": 179,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5416,19 +4444,19 @@"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M4 Max|64.0|any": {- "n": 11,+ "n": 10,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|balanced|169.0|M4 Pro|24.0|any": {- "n": 32,- "p25_sec": 240.0,- "p50_sec": 300.0,+ "n": 11,+ "p25_sec": 180.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M4 Pro|48.0|any": {- "n": 93,+ "n": 75,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -5440,10 +4468,10 @@"p75_sec": 510.0},"ltx|i2v|balanced|169.0|M4|16.0|any": {- "n": 9,- "p25_sec": 420.0,+ "n": 7,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 1050.0},"ltx|i2v|balanced|169.0|M4|24.0|any": {"n": 106,@@ -5458,7 +4486,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M5 Max|128.0|any": {- "n": 76,+ "n": 44,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -5470,35 +4498,29 @@"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M5 Max|64.0|any": {- "n": 21,+ "n": 12,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 90.0},"ltx|i2v|balanced|169.0|M5 Pro|24.0|any": {- "n": 46,+ "n": 45,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M5 Pro|48.0|any": {- "n": 46,+ "n": 39,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|169.0|M5 Pro|64.0|any": {- "n": 29,+ "n": 26,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 300.0},- "ltx|i2v|balanced|169.0|M5|16.0|any": {- "n": 3,- "p25_sec": 270.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|balanced|177.0|M4 Pro|48.0|any": {"n": 11,"p25_sec": 420.0,@@ -5541,14 +4563,8 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|balanced|193.0|M4 Max|36.0|any": {- "n": 37,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },"ltx|i2v|balanced|193.0|M4 Max|64.0|any": {- "n": 573,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -5571,18 +4587,6 @@"p50_sec": 105.0,"p75_sec": 120.0},- "ltx|i2v|balanced|193.0|M5 Pro|48.0|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|i2v|balanced|193.0|M5 Pro|64.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },"ltx|i2v|balanced|201.0|M4 Pro|48.0|any": {"n": 16,"p25_sec": 600.0,@@ -5608,19 +4612,19 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M1 Max|32.0|any": {- "n": 76,+ "n": 67,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M1 Max|64.0|any": {- "n": 107,+ "n": 103,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 750.0+ "p75_sec": 600.0},"ltx|i2v|balanced|241.0|M1 Pro|16.0|any": {- "n": 88,+ "n": 79,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -5632,34 +4636,34 @@"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M1 Ultra|64.0|any": {- "n": 9,+ "n": 8,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M1|16.0|any": {- "n": 30,+ "n": 3,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M2 Max|32.0|any": {- "n": 71,+ "n": 65,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M2 Max|64.0|any": {- "n": 52,+ "n": 50,"p25_sec": 420.0,- "p50_sec": 510.0,+ "p50_sec": 420.0,"p75_sec": 1800.0},"ltx|i2v|balanced|241.0|M2 Max|96.0|any": {- "n": 4,+ "n": 3,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 540.0+ "p75_sec": 660.0},"ltx|i2v|balanced|241.0|M2 Pro|32.0|any": {"n": 5,@@ -5680,13 +4684,13 @@"p75_sec": 180.0},"ltx|i2v|balanced|241.0|M2 Ultra|64.0|any": {- "n": 27,- "p25_sec": 240.0,+ "n": 11,+ "p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 1800.0+ "p75_sec": 420.0},"ltx|i2v|balanced|241.0|M2|16.0|any": {- "n": 27,+ "n": 19,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 2400.0@@ -5698,7 +4702,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M3 Max|36.0|any": {- "n": 18,+ "n": 17,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -5710,14 +4714,14 @@"p75_sec": 465.0},"ltx|i2v|balanced|241.0|M3 Pro|18.0|any": {- "n": 15,+ "n": 14,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M3 Pro|36.0|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 4,+ "p25_sec": 390.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -5746,75 +4750,75 @@"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4 Max|128.0|any": {- "n": 26,+ "n": 25,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 555.0+ "p75_sec": 600.0},"ltx|i2v|balanced|241.0|M4 Max|36.0|any": {- "n": 61,+ "n": 54,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|241.0|M4 Max|48.0|any": {- "n": 59,+ "n": 57,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Max|64.0|any": {- "n": 45,+ "n": 38,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|24.0|any": {- "n": 529,+ "n": 482,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|48.0|any": {- "n": 221,+ "n": 210,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|i2v|balanced|241.0|M4 Pro|64.0|any": {- "n": 109,+ "n": 88,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M4|16.0|any": {- "n": 168,+ "n": 114,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4|24.0|any": {- "n": 46,- "p25_sec": 600.0,+ "n": 42,+ "p25_sec": 675.0,"p50_sec": 900.0,"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4|32.0|any": {- "n": 34,+ "n": 18,"p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 1200.0+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|i2v|balanced|241.0|M5 Max|128.0|any": {- "n": 973,- "p25_sec": 120.0,+ "n": 617,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|241.0|M5 Max|36.0|any": {- "n": 8,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 3,+ "p25_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|241.0|M5 Max|48.0|any": {@@ -5824,46 +4828,40 @@"p75_sec": 240.0},"ltx|i2v|balanced|241.0|M5 Max|64.0|any": {- "n": 54,+ "n": 19,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 180.0},"ltx|i2v|balanced|241.0|M5 Pro|24.0|any": {- "n": 62,+ "n": 57,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|balanced|241.0|M5 Pro|48.0|any": {- "n": 487,+ "n": 431,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M5 Pro|64.0|any": {- "n": 168,+ "n": 52,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|balanced|241.0|M5 Ultra|96.0|any": {- "n": 7,- "p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|balanced|241.0|M5|16.0|any": {- "n": 27,+ "n": 20,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 675.0},"ltx|i2v|balanced|241.0|M5|24.0|any": {- "n": 49,- "p25_sec": 300.0,+ "n": 46,+ "p25_sec": 255.0,"p50_sec": 600.0,- "p75_sec": 1200.0+ "p75_sec": 1125.0},"ltx|i2v|balanced|241.0|M5|32.0|any": {"n": 5,@@ -5872,29 +4870,17 @@"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M6|32.0|any": {- "n": 9,+ "n": 3,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|249.0|M4 Pro|64.0|any": {- "n": 59,+ "n": 19,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|25.0|M1 Max|64.0|any": {- "n": 9,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|i2v|balanced|25.0|M4|32.0|any": {- "n": 4,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|balanced|25.0|M5|24.0|any": {"n": 3,"p25_sec": 45.0,@@ -5967,14 +4953,8 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|balanced|361.0|M4 Pro|64.0|any": {- "n": 17,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|i2v|balanced|361.0|M5 Max|128.0|any": {- "n": 85,+ "n": 77,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -5986,7 +4966,7 @@"p75_sec": 90.0},"ltx|i2v|balanced|361.0|M5 Pro|64.0|any": {- "n": 4,+ "n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -5997,24 +4977,12 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|balanced|41.0|M1 Max|32.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0- },"ltx|i2v|balanced|433.0|M2 Ultra|64.0|any": {"n": 18,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|457.0|M5 Pro|64.0|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1500.0- },"ltx|i2v|balanced|481.0|M1 Max|32.0|any": {"n": 6,"p25_sec": 300.0,@@ -6028,29 +4996,17 @@"p75_sec": 600.0},"ltx|i2v|balanced|481.0|M4 Max|64.0|any": {- "n": 482,+ "n": 34,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|balanced|481.0|M5 Max|128.0|any": {- "n": 4,- "p25_sec": 525.0,- "p50_sec": 750.0,- "p75_sec": 1125.0- },"ltx|i2v|balanced|481.0|M5 Pro|48.0|any": {"n": 85,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|balanced|481.0|M5 Pro|64.0|any": {- "n": 10,- "p25_sec": 675.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|i2v|balanced|481.0|M5|16.0|any": {"n": 3,"p25_sec": 360.0,@@ -6064,9 +5020,9 @@"p75_sec": 300.0},"ltx|i2v|balanced|49.0|M1 Max|64.0|any": {- "n": 27,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 5,+ "p25_sec": 120.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|49.0|M1 Pro|16.0|any": {@@ -6117,23 +5073,11 @@"p50_sec": 45.0,"p75_sec": 48.8},- "ltx|i2v|balanced|49.0|M5 Ultra|96.0|any": {- "n": 3,- "p25_sec": 7.5,- "p50_sec": 15.0,- "p75_sec": 15.0- },- "ltx|i2v|balanced|57.0|M1 Max|32.0|any": {- "n": 8,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 135.0- },"ltx|i2v|balanced|65.0|M1 Max|64.0|any": {- "n": 23,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "n": 4,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0},"ltx|i2v|balanced|65.0|M2 Max|64.0|any": {"n": 9,@@ -6160,16 +5104,16 @@"p75_sec": 1800.0},"ltx|i2v|balanced|73.0|M1 Max|32.0|any": {- "n": 15,- "p25_sec": 120.0,+ "n": 12,+ "p25_sec": 112.5,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|balanced|73.0|M1 Max|64.0|any": {- "n": 19,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "n": 12,+ "p25_sec": 180.0,+ "p50_sec": 240.0,+ "p75_sec": 255.0},"ltx|i2v|balanced|73.0|M1 Pro|16.0|any": {"n": 4,@@ -6189,23 +5133,11 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|balanced|73.0|M2 Max|96.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|i2v|balanced|73.0|M2 Ultra|64.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 90.0- },"ltx|i2v|balanced|73.0|M2|16.0|any": {- "n": 4,- "p25_sec": 112.5,+ "n": 3,+ "p25_sec": 105.0,"p50_sec": 120.0,- "p75_sec": 165.0+ "p75_sec": 120.0},"ltx|i2v|balanced|73.0|M3 Max|36.0|any": {"n": 7,@@ -6231,12 +5163,6 @@"p50_sec": 45.0,"p75_sec": 60.0},- "ltx|i2v|balanced|73.0|M3 Ultra|96.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 112.5- },"ltx|i2v|balanced|73.0|M3|8.0|any": {"n": 3,"p25_sec": 600.0,@@ -6256,15 +5182,15 @@"p75_sec": 90.0},"ltx|i2v|balanced|73.0|M4 Max|48.0|any": {- "n": 7,+ "n": 6,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|balanced|73.0|M4 Max|64.0|any": {- "n": 14,+ "n": 11,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|73.0|M4 Pro|24.0|any": {@@ -6274,32 +5200,32 @@"p75_sec": 120.0},"ltx|i2v|balanced|73.0|M4 Pro|48.0|any": {- "n": 37,+ "n": 35,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|73.0|M4|16.0|any": {- "n": 7,- "p25_sec": 360.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "n": 4,+ "p25_sec": 270.0,+ "p50_sec": 360.0,+ "p75_sec": 465.0},"ltx|i2v|balanced|73.0|M4|24.0|any": {- "n": 5,+ "n": 3,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 300.0+ "p75_sec": 270.0},"ltx|i2v|balanced|73.0|M4|32.0|any": {- "n": 25,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0+ "n": 4,+ "p25_sec": 225.0,+ "p50_sec": 240.0,+ "p75_sec": 240.0},"ltx|i2v|balanced|73.0|M5 Max|128.0|any": {- "n": 8,- "p25_sec": 41.2,+ "n": 6,+ "p25_sec": 33.8,"p50_sec": 45.0,"p75_sec": 45.0},@@ -6310,40 +5236,34 @@"p75_sec": 48.8},"ltx|i2v|balanced|73.0|M5 Max|64.0|any": {- "n": 12,+ "n": 6,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0},"ltx|i2v|balanced|73.0|M5 Pro|48.0|any": {- "n": 29,+ "n": 28,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|i2v|balanced|73.0|M5 Pro|64.0|any": {- "n": 28,- "p25_sec": 82.5,- "p50_sec": 105.0,+ "n": 23,+ "p25_sec": 75.0,+ "p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|balanced|73.0|M5|16.0|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 150.0,- "p75_sec": 225.0- },"ltx|i2v|balanced|73.0|M5|24.0|any": {- "n": 12,+ "n": 3,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|balanced|81.0|M1 Max|64.0|any": {- "n": 31,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 180.0+ "n": 6,+ "p25_sec": 240.0,+ "p50_sec": 240.0,+ "p75_sec": 285.0},"ltx|i2v|balanced|81.0|M4 Max|36.0|any": {"n": 26,@@ -6375,14 +5295,8 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|i2v|balanced|97.0|M1 Max|64.0|any": {- "n": 21,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|balanced|97.0|M2 Max|64.0|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -6394,7 +5308,7 @@"p75_sec": 270.0},"ltx|i2v|balanced|97.0|M4 Max|36.0|any": {- "n": 44,+ "n": 39,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -6441,12 +5355,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|high_720p|121.0|M2 Max|96.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },"ltx|i2v|high_720p|121.0|M3 Ultra|96.0|any": {"n": 5,"p25_sec": 300.0,@@ -6459,30 +5367,12 @@"p50_sec": 600.0,"p75_sec": 750.0},- "ltx|i2v|high_720p|121.0|M4 Max|48.0|any": {- "n": 12,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|i2v|high_720p|121.0|M4 Max|64.0|any": {"n": 4,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 540.0},- "ltx|i2v|high_720p|121.0|M5 Max|128.0|any": {- "n": 27,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },- "ltx|i2v|high_720p|169.0|M2 Max|96.0|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|high_720p|193.0|M1 Max|64.0|any": {"n": 3,"p25_sec": 1800.0,@@ -6501,48 +5391,6 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|i2v|high_720p|241.0|M2 Max|96.0|any": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "ltx|i2v|high_720p|241.0|M4 Max|64.0|any": {- "n": 5,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },- "ltx|i2v|high_720p|241.0|M5 Max|128.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0- },- "ltx|i2v|high_720p|241.0|M5 Max|64.0|any": {- "n": 18,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|i2v|high_720p|73.0|M2 Max|96.0|any": {- "n": 14,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|i2v|high_720p|73.0|M4 Max|48.0|any": {- "n": 21,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|i2v|high_720p|97.0|M4 Max|48.0|any": {- "n": 37,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0- },"ltx|i2v|high|113.0|M5 Max|128.0|any": {"n": 35,"p25_sec": 180.0,@@ -6568,8 +5416,8 @@"p75_sec": 240.0},"ltx|i2v|high|121.0|M3 Max|128.0|any": {- "n": 4,- "p25_sec": 555.0,+ "n": 3,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -6586,25 +5434,25 @@"p75_sec": 240.0},"ltx|i2v|high|121.0|M3 Ultra|96.0|any": {- "n": 28,+ "n": 11,"p25_sec": 180.0,- "p50_sec": 180.0,+ "p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|high|121.0|M4 Max|128.0|any": {- "n": 47,+ "n": 46,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|high|121.0|M4 Max|48.0|any": {- "n": 7,+ "n": 4,"p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 510.0+ "p50_sec": 300.0,+ "p75_sec": 330.0},"ltx|i2v|high|121.0|M4 Max|64.0|any": {- "n": 50,+ "n": 46,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -6615,17 +5463,11 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|high|121.0|M4 Pro|64.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|high|121.0|M5 Max|128.0|any": {- "n": 73,+ "n": 17,"p25_sec": 120.0,- "p50_sec": 300.0,- "p75_sec": 600.0+ "p50_sec": 120.0,+ "p75_sec": 240.0},"ltx|i2v|high|121.0|M5 Max|48.0|any": {"n": 13,@@ -6645,12 +5487,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|high|145.0|M4 Max|64.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|i2v|high|145.0|M5 Pro|48.0|any": {"n": 76,"p25_sec": 240.0,@@ -6694,7 +5530,7 @@"p75_sec": 420.0},"ltx|i2v|high|241.0|M1 Max|64.0|any": {- "n": 38,+ "n": 35,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -6729,12 +5565,6 @@"p50_sec": 300.0,"p75_sec": 360.0},- "ltx|i2v|high|241.0|M2 Ultra|64.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0- },"ltx|i2v|high|241.0|M3 Max|48.0|any": {"n": 4,"p25_sec": 525.0,@@ -6783,16 +5613,10 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|i2v|high|241.0|M4 Pro|64.0|any": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0- },"ltx|i2v|high|241.0|M5 Max|128.0|any": {- "n": 87,- "p25_sec": 240.0,- "p50_sec": 240.0,+ "n": 22,+ "p25_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|high|241.0|M5 Max|48.0|any": {@@ -6802,22 +5626,22 @@"p75_sec": 300.0},"ltx|i2v|high|241.0|M5 Max|64.0|any": {- "n": 34,+ "n": 9,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|high|241.0|M5 Pro|48.0|any": {- "n": 7,- "p25_sec": 510.0,+ "n": 5,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|high|241.0|M5 Pro|64.0|any": {- "n": 41,+ "n": 5,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|i2v|high|289.0|M2 Ultra|64.0|any": {"n": 3,@@ -6838,7 +5662,7 @@"p75_sec": 1200.0},"ltx|i2v|high|361.0|M5 Max|128.0|any": {- "n": 22,+ "n": 20,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -6868,19 +5692,19 @@"p75_sec": 120.0},"ltx|i2v|high|73.0|M2 Ultra|64.0|any": {- "n": 7,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|high|73.0|M4 Max|128.0|any": {- "n": 12,- "p25_sec": 225.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "n": 6,+ "p25_sec": 180.0,+ "p50_sec": 210.0,+ "p75_sec": 240.0},"ltx|i2v|high|73.0|M4 Max|64.0|any": {- "n": 10,+ "n": 9,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -6892,10 +5716,10 @@"p75_sec": 420.0},"ltx|i2v|high|73.0|M5 Max|128.0|any": {- "n": 24,+ "n": 15,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 60.0},"ltx|i2v|high|73.0|M5 Max|64.0|any": {"n": 4,@@ -6909,12 +5733,6 @@"p50_sec": 120.0,"p75_sec": 180.0},- "ltx|i2v|high|97.0|M4 Max|64.0|any": {- "n": 7,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },"ltx|i2v|high|97.0|M4 Pro|48.0|any": {"n": 3,"p25_sec": 510.0,@@ -6922,7 +5740,7 @@"p75_sec": 600.0},"ltx|i2v|high|97.0|M5 Max|128.0|any": {- "n": 9,+ "n": 7,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -6933,75 +5751,45 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|i2v|quick|105.0|M4|24.0|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|quick|113.0|M1 Max|64.0|any": {"n": 14,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|i2v|quick|113.0|M4 Max|48.0|any": {- "n": 28,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|quick|113.0|M4 Pro|48.0|any": {"n": 3,"p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 240.0},- "ltx|i2v|quick|113.0|M4|16.0|any": {- "n": 12,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|i2v|quick|113.0|M4|24.0|any": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|i2v|quick|113.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|quick|113.0|M5 Pro|24.0|any": {- "n": 13,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|i2v|quick|121.0|M1 Max|32.0|any": {- "n": 40,+ "n": 30,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|quick|121.0|M1 Max|64.0|any": {- "n": 31,+ "n": 29,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|121.0|M1 Pro|16.0|any": {- "n": 12,+ "n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|quick|121.0|M1 Pro|32.0|any": {- "n": 29,- "p25_sec": 240.0,+ "n": 13,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -7011,22 +5799,16 @@"p50_sec": 75.0,"p75_sec": 112.5},- "ltx|i2v|quick|121.0|M1|16.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0- },"ltx|i2v|quick|121.0|M2 Max|32.0|any": {- "n": 47,+ "n": 45,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M2 Max|96.0|any": {- "n": 6,+ "n": 5,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M2|16.0|any": {@@ -7036,9 +5818,9 @@"p75_sec": 600.0},"ltx|i2v|quick|121.0|M3 Max|36.0|any": {- "n": 14,- "p25_sec": 90.0,- "p50_sec": 105.0,+ "n": 10,+ "p25_sec": 97.5,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M3 Pro|18.0|any": {@@ -7053,12 +5835,6 @@"p50_sec": 120.0,"p75_sec": 240.0},- "ltx|i2v|quick|121.0|M3 Ultra|96.0|any": {- "n": 8,- "p25_sec": 45.0,- "p50_sec": 52.5,- "p75_sec": 90.0- },"ltx|i2v|quick|121.0|M4 Max|36.0|any": {"n": 5,"p25_sec": 90.0,@@ -7066,10 +5842,10 @@"p75_sec": 180.0},"ltx|i2v|quick|121.0|M4 Max|48.0|any": {- "n": 8,+ "n": 7,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 67.5+ "p75_sec": 60.0},"ltx|i2v|quick|121.0|M4 Max|64.0|any": {"n": 14,@@ -7078,7 +5854,7 @@"p75_sec": 120.0},"ltx|i2v|quick|121.0|M4 Pro|24.0|any": {- "n": 25,+ "n": 20,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -7090,69 +5866,57 @@"p75_sec": 180.0},"ltx|i2v|quick|121.0|M4|16.0|any": {- "n": 44,- "p25_sec": 420.0,+ "n": 31,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 750.0},"ltx|i2v|quick|121.0|M4|24.0|any": {- "n": 27,- "p25_sec": 270.0,+ "n": 26,+ "p25_sec": 255.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|quick|121.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 67.5,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|quick|121.0|M5 Max|36.0|any": {"n": 12,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 67.5},- "ltx|i2v|quick|121.0|M5 Max|48.0|any": {- "n": 25,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 30.0- },"ltx|i2v|quick|121.0|M5 Max|64.0|any": {- "n": 10,+ "n": 9,"p25_sec": 30.0,"p50_sec": 30.0,- "p75_sec": 41.2+ "p75_sec": 30.0},"ltx|i2v|quick|121.0|M5 Pro|24.0|any": {- "n": 85,- "p25_sec": 60.0,+ "n": 78,+ "p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|quick|121.0|M5 Pro|48.0|any": {- "n": 11,- "p25_sec": 90.0,+ "n": 9,+ "p25_sec": 60.0,"p50_sec": 120.0,- "p75_sec": 360.0+ "p75_sec": 600.0},"ltx|i2v|quick|121.0|M5 Pro|64.0|any": {- "n": 21,+ "n": 14,"p25_sec": 60.0,- "p50_sec": 120.0,- "p75_sec": 240.0+ "p50_sec": 105.0,+ "p75_sec": 225.0},"ltx|i2v|quick|121.0|M5|16.0|any": {- "n": 15,+ "n": 14,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 510.0+ "p75_sec": 390.0},"ltx|i2v|quick|121.0|M5|24.0|any": {- "n": 21,- "p25_sec": 180.0,- "p50_sec": 240.0,+ "n": 14,+ "p25_sec": 240.0,+ "p50_sec": 510.0,"p75_sec": 600.0},"ltx|i2v|quick|129.0|M1 Max|64.0|any": {@@ -7168,7 +5932,7 @@"p75_sec": 60.0},"ltx|i2v|quick|129.0|M5 Pro|24.0|any": {- "n": 5,+ "n": 3,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -7203,26 +5967,14 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|quick|145.0|M4|16.0|any": {- "n": 10,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 825.0- },- "ltx|i2v|quick|145.0|M5 Max|48.0|any": {- "n": 8,- "p25_sec": 30.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|i2v|quick|145.0|M5 Pro|24.0|any": {- "n": 6,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 82.5+ "p75_sec": 67.5},"ltx|i2v|quick|153.0|M5|16.0|any": {- "n": 9,+ "n": 6,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -7233,23 +5985,11 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|quick|161.0|M5|16.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|quick|169.0|M1 Max|64.0|any": {- "n": 15,+ "n": 14,"p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 270.0- },- "ltx|i2v|quick|169.0|M1 Pro|16.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0+ "p50_sec": 210.0,+ "p75_sec": 240.0},"ltx|i2v|quick|169.0|M2 Max|32.0|any": {"n": 4,@@ -7270,10 +6010,10 @@"p75_sec": 240.0},"ltx|i2v|quick|169.0|M4 Pro|48.0|any": {- "n": 17,+ "n": 15,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "p50_sec": 240.0,+ "p75_sec": 330.0},"ltx|i2v|quick|169.0|M4|16.0|any": {"n": 6,@@ -7287,15 +6027,9 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|i2v|quick|169.0|M5 Max|48.0|any": {- "n": 7,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|i2v|quick|169.0|M5 Pro|24.0|any": {- "n": 16,- "p25_sec": 112.5,+ "n": 13,+ "p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},@@ -7323,24 +6057,12 @@"p50_sec": 510.0,"p75_sec": 600.0},- "ltx|i2v|quick|193.0|M4 Pro|24.0|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 255.0- },"ltx|i2v|quick|193.0|M4 Pro|48.0|any": {"n": 6,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|193.0|M5 Max|48.0|any": {- "n": 10,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 56.2- },"ltx|i2v|quick|201.0|M4 Pro|48.0|any": {"n": 11,"p25_sec": 600.0,@@ -7359,12 +6081,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|217.0|M5 Max|48.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|quick|225.0|M4 Pro|48.0|any": {"n": 9,"p25_sec": 600.0,@@ -7377,17 +6093,11 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|233.0|M5 Pro|48.0|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|quick|241.0|M1 Max|32.0|any": {- "n": 103,+ "n": 85,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|quick|241.0|M1 Max|64.0|any": {"n": 14,@@ -7396,9 +6106,9 @@"p75_sec": 825.0},"ltx|i2v|quick|241.0|M1 Pro|16.0|any": {- "n": 7,- "p25_sec": 390.0,- "p50_sec": 600.0,+ "n": 5,+ "p25_sec": 600.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|quick|241.0|M1 Ultra|128.0|any": {@@ -7414,9 +6124,9 @@"p75_sec": 4050.0},"ltx|i2v|quick|241.0|M3 Max|36.0|any": {- "n": 9,+ "n": 7,"p25_sec": 180.0,- "p50_sec": 180.0,+ "p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|quick|241.0|M3 Pro|18.0|any": {@@ -7426,7 +6136,7 @@"p75_sec": 600.0},"ltx|i2v|quick|241.0|M4 Max|64.0|any": {- "n": 35,+ "n": 34,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -7438,10 +6148,10 @@"p75_sec": 420.0},"ltx|i2v|quick|241.0|M4 Pro|48.0|any": {- "n": 15,+ "n": 13,"p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 750.0+ "p50_sec": 600.0,+ "p75_sec": 900.0},"ltx|i2v|quick|241.0|M4|16.0|any": {"n": 29,@@ -7449,53 +6159,35 @@"p50_sec": 600.0,"p75_sec": 900.0},- "ltx|i2v|quick|241.0|M4|24.0|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1200.0- },"ltx|i2v|quick|241.0|M5 Max|128.0|any": {- "n": 14,- "p25_sec": 172.5,+ "n": 10,+ "p25_sec": 420.0,"p50_sec": 510.0,"p75_sec": 600.0},"ltx|i2v|quick|241.0|M5 Max|36.0|any": {- "n": 34,- "p25_sec": 90.0,+ "n": 28,+ "p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 180.0},"ltx|i2v|quick|241.0|M5 Max|48.0|any": {- "n": 13,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },- "ltx|i2v|quick|241.0|M5 Max|64.0|any": {- "n": 3,- "p25_sec": 75.0,- "p50_sec": 90.0,- "p75_sec": 135.0- },- "ltx|i2v|quick|241.0|M5 Pro|24.0|any": {- "n": 3,- "p25_sec": 270.0,- "p50_sec": 420.0,- "p75_sec": 510.0+ "n": 5,+ "p25_sec": 90.0,+ "p50_sec": 120.0,+ "p75_sec": 120.0},"ltx|i2v|quick|241.0|M5 Pro|48.0|any": {- "n": 36,- "p25_sec": 120.0,+ "n": 19,+ "p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 210.0},"ltx|i2v|quick|241.0|M5 Pro|64.0|any": {- "n": 26,- "p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 420.0+ "n": 4,+ "p25_sec": 105.0,+ "p50_sec": 120.0,+ "p75_sec": 195.0},"ltx|i2v|quick|241.0|M5|24.0|any": {"n": 7,@@ -7503,12 +6195,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|i2v|quick|25.0|M5 Pro|24.0|any": {- "n": 6,- "p25_sec": 15.0,- "p50_sec": 15.0,- "p75_sec": 138.8- },"ltx|i2v|quick|265.0|M1 Max|32.0|any": {"n": 4,"p25_sec": 240.0,@@ -7540,9 +6226,9 @@"p75_sec": 60.0},"ltx|i2v|quick|481.0|M1 Max|32.0|any": {- "n": 314,+ "n": 99,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|481.0|M1 Max|64.0|any": {@@ -7569,12 +6255,6 @@"p50_sec": 300.0,"p75_sec": 750.0},- "ltx|i2v|quick|481.0|M3 Max|36.0|any": {- "n": 35,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|i2v|quick|481.0|M4 Max|128.0|any": {"n": 41,"p25_sec": 300.0,@@ -7600,45 +6280,33 @@"p75_sec": 330.0},"ltx|i2v|quick|481.0|M4|16.0|any": {- "n": 18,+ "n": 17,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|quick|481.0|M5 Max|128.0|any": {- "n": 10,+ "n": 7,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 270.0- },- "ltx|i2v|quick|481.0|M5 Max|36.0|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|i2v|quick|481.0|M5 Max|64.0|any": {- "n": 69,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 180.0},"ltx|i2v|quick|481.0|M5 Pro|24.0|any": {- "n": 7,+ "n": 5,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 150.0+ "p75_sec": 180.0},"ltx|i2v|quick|481.0|M5 Pro|48.0|any": {- "n": 59,+ "n": 42,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|481.0|M5 Pro|64.0|any": {- "n": 12,- "p25_sec": 210.0,- "p50_sec": 300.0,+ "n": 5,+ "p25_sec": 120.0,+ "p50_sec": 120.0,"p75_sec": 300.0},"ltx|i2v|quick|481.0|M5|16.0|any": {@@ -7653,12 +6321,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|quick|481.0|M6|32.0|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 255.0- },"ltx|i2v|quick|49.0|M2 Max|64.0|any": {"n": 5,"p25_sec": 30.0,@@ -7696,34 +6358,22 @@"p75_sec": 120.0},"ltx|i2v|quick|73.0|M1 Max|32.0|any": {- "n": 44,+ "n": 27,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|73.0|M1 Max|64.0|any": {- "n": 22,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|73.0|M1 Pro|16.0|any": {- "n": 9,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 300.0- },- "ltx|i2v|quick|73.0|M1|16.0|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 375.0- },- "ltx|i2v|quick|73.0|M1|8.0|any": {"n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0+ "p25_sec": 450.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|i2v|quick|73.0|M2 Max|32.0|any": {"n": 3,@@ -7773,12 +6423,6 @@"p50_sec": 60.0,"p75_sec": 75.0},- "ltx|i2v|quick|73.0|M4 Max|48.0|any": {- "n": 13,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|quick|73.0|M4 Max|64.0|any": {"n": 6,"p25_sec": 90.0,@@ -7786,10 +6430,10 @@"p75_sec": 90.0},"ltx|i2v|quick|73.0|M4 Pro|24.0|any": {- "n": 4,- "p25_sec": 90.0,- "p50_sec": 165.0,- "p75_sec": 330.0+ "n": 3,+ "p25_sec": 165.0,+ "p50_sec": 240.0,+ "p75_sec": 420.0},"ltx|i2v|quick|73.0|M4 Pro|48.0|any": {"n": 12,@@ -7798,7 +6442,7 @@"p75_sec": 135.0},"ltx|i2v|quick|73.0|M4|16.0|any": {- "n": 58,+ "n": 54,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 600.0@@ -7810,7 +6454,7 @@"p75_sec": 240.0},"ltx|i2v|quick|73.0|M5 Max|128.0|any": {- "n": 27,+ "n": 26,"p25_sec": 15.0,"p50_sec": 15.0,"p75_sec": 15.0@@ -7822,7 +6466,7 @@"p75_sec": 60.0},"ltx|i2v|quick|73.0|M5 Pro|48.0|any": {- "n": 13,+ "n": 12,"p25_sec": 30.0,"p50_sec": 45.0,"p75_sec": 45.0@@ -7857,12 +6501,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|quick|81.0|M4 Max|48.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|quick|81.0|M5 Pro|24.0|any": {"n": 5,"p25_sec": 45.0,@@ -7870,9 +6508,9 @@"p75_sec": 45.0},"ltx|i2v|quick|81.0|M5|16.0|any": {- "n": 5,+ "n": 4,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 150.0,"p75_sec": 180.0},"ltx|i2v|quick|89.0|M1 Max|64.0|any": {@@ -7882,16 +6520,10 @@"p75_sec": 180.0},"ltx|i2v|quick|89.0|M5 Pro|24.0|any": {- "n": 6,+ "n": 3,"p25_sec": 45.0,"p50_sec": 45.0,- "p75_sec": 45.0- },- "ltx|i2v|quick|97.0|M3 Ultra|96.0|any": {- "n": 37,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 45.0+ "p75_sec": 52.5},"ltx|i2v|quick|97.0|M4 Pro|48.0|any": {"n": 3,@@ -7900,17 +6532,11 @@"p75_sec": 180.0},"ltx|i2v|quick|97.0|M4|16.0|any": {- "n": 12,+ "n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|quick|97.0|M5 Max|48.0|any": {- "n": 37,- "p25_sec": 15.0,- "p50_sec": 30.0,- "p75_sec": 30.0- },"ltx|i2v|quick|97.0|M5 Pro|24.0|any": {"n": 5,"p25_sec": 60.0,@@ -7935,41 +6561,29 @@"p50_sec": 270.0,"p75_sec": 375.0},- "ltx|i2v|standard|113.0|M4 Max|48.0|any": {- "n": 28,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|113.0|M5 Max|64.0|any": {"n": 22,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 82.5},- "ltx|i2v|standard|113.0|M5 Pro|24.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|121.0|M1 Max|32.0|any": {- "n": 366,+ "n": 271,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|standard|121.0|M1 Max|64.0|any": {- "n": 27,+ "n": 22,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|121.0|M1 Pro|16.0|any": {- "n": 16,+ "n": 15,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 465.0+ "p75_sec": 510.0},"ltx|i2v|standard|121.0|M1 Ultra|128.0|any": {"n": 7,@@ -7978,46 +6592,40 @@"p75_sec": 240.0},"ltx|i2v|standard|121.0|M1|16.0|any": {- "n": 24,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0+ "n": 7,+ "p25_sec": 600.0,+ "p50_sec": 600.0,+ "p75_sec": 1650.0},"ltx|i2v|standard|121.0|M2 Max|32.0|any": {- "n": 31,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 120.0},"ltx|i2v|standard|121.0|M2 Max|64.0|any": {- "n": 37,+ "n": 36,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|121.0|M2 Max|96.0|any": {- "n": 217,+ "n": 124,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|121.0|M2 Pro|32.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 270.0- },"ltx|i2v|standard|121.0|M2 Ultra|64.0|any": {- "n": 151,+ "n": 122,"p25_sec": 240.0,- "p50_sec": 420.0,+ "p50_sec": 240.0,"p75_sec": 420.0},"ltx|i2v|standard|121.0|M3 Max|36.0|any": {- "n": 17,+ "n": 14,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 165.0},"ltx|i2v|standard|121.0|M3 Max|48.0|any": {"n": 12,@@ -8032,16 +6640,16 @@"p75_sec": 375.0},"ltx|i2v|standard|121.0|M3 Pro|18.0|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 360.0,- "p75_sec": 1005.0+ "n": 3,+ "p25_sec": 810.0,+ "p50_sec": 1200.0,+ "p75_sec": 1500.0},"ltx|i2v|standard|121.0|M3 Ultra|256.0|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 360.0+ "n": 8,+ "p25_sec": 165.0,+ "p50_sec": 240.0,+ "p75_sec": 420.0},"ltx|i2v|standard|121.0|M3 Ultra|512.0|any": {"n": 65,@@ -8049,18 +6657,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|standard|121.0|M3 Ultra|96.0|any": {- "n": 66,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 120.0- },- "ltx|i2v|standard|121.0|M3|8.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|i2v|standard|121.0|M4 Max|128.0|any": {"n": 36,"p25_sec": 225.0,@@ -8068,31 +6664,31 @@"p75_sec": 600.0},"ltx|i2v|standard|121.0|M4 Max|36.0|any": {- "n": 135,+ "n": 65,"p25_sec": 120.0,- "p50_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|121.0|M4 Max|48.0|any": {- "n": 248,+ "n": 146,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|121.0|M4 Max|64.0|any": {- "n": 20,+ "n": 18,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|standard|121.0|M4 Pro|24.0|any": {- "n": 125,+ "n": 116,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|standard|121.0|M4 Pro|48.0|any": {- "n": 116,+ "n": 113,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -8110,7 +6706,7 @@"p75_sec": 420.0},"ltx|i2v|standard|121.0|M5 Max|128.0|any": {- "n": 100,+ "n": 94,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -8122,31 +6718,31 @@"p75_sec": 60.0},"ltx|i2v|standard|121.0|M5 Max|48.0|any": {- "n": 14,+ "n": 13,"p25_sec": 60.0,- "p50_sec": 75.0,+ "p50_sec": 60.0,"p75_sec": 90.0},"ltx|i2v|standard|121.0|M5 Max|64.0|any": {- "n": 39,+ "n": 35,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|standard|121.0|M5 Pro|24.0|any": {- "n": 41,+ "n": 33,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|i2v|standard|121.0|M5 Pro|48.0|any": {- "n": 71,+ "n": 67,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|standard|121.0|M5 Pro|64.0|any": {- "n": 74,+ "n": 72,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -8187,12 +6783,6 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|standard|137.0|M2 Ultra|192.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|137.0|M4 Max|64.0|any": {"n": 4,"p25_sec": 120.0,@@ -8211,14 +6801,8 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|145.0|M3 Ultra|96.0|any": {- "n": 22,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 180.0- },"ltx|i2v|standard|145.0|M4 Max|36.0|any": {- "n": 28,+ "n": 23,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -8241,12 +6825,6 @@"p50_sec": 120.0,"p75_sec": 180.0},- "ltx|i2v|standard|145.0|M5 Pro|48.0|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|153.0|M5 Max|64.0|any": {"n": 6,"p25_sec": 90.0,@@ -8266,13 +6844,13 @@"p75_sec": 420.0},"ltx|i2v|standard|169.0|M1 Max|64.0|any": {- "n": 21,+ "n": 18,"p25_sec": 600.0,- "p50_sec": 600.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"ltx|i2v|standard|169.0|M1 Pro|16.0|any": {- "n": 16,+ "n": 14,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -8284,7 +6862,7 @@"p75_sec": 180.0},"ltx|i2v|standard|169.0|M2 Max|96.0|any": {- "n": 187,+ "n": 131,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -8307,12 +6885,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|i2v|standard|169.0|M3 Max|36.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|169.0|M3 Pro|18.0|any": {"n": 3,"p25_sec": 510.0,@@ -8338,13 +6910,13 @@"p75_sec": 600.0},"ltx|i2v|standard|169.0|M4 Max|36.0|any": {- "n": 81,+ "n": 79,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|standard|169.0|M4 Max|48.0|any": {- "n": 38,+ "n": 37,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -8362,16 +6934,16 @@"p75_sec": 240.0},"ltx|i2v|standard|169.0|M4 Pro|48.0|any": {- "n": 92,+ "n": 79,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|169.0|M4|16.0|any": {- "n": 33,+ "n": 23,"p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"ltx|i2v|standard|169.0|M4|24.0|any": {"n": 15,@@ -8386,19 +6958,19 @@"p75_sec": 300.0},"ltx|i2v|standard|169.0|M5 Max|48.0|any": {- "n": 8,+ "n": 7,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|standard|169.0|M5 Max|64.0|any": {- "n": 570,- "p25_sec": 90.0,+ "n": 280,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|169.0|M5 Pro|24.0|any": {- "n": 35,+ "n": 25,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -8410,7 +6982,7 @@"p75_sec": 180.0},"ltx|i2v|standard|169.0|M5 Pro|64.0|any": {- "n": 27,+ "n": 26,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -8428,7 +7000,7 @@"p75_sec": 600.0},"ltx|i2v|standard|169.0|M6|24.0|any": {- "n": 6,+ "n": 4,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -8446,7 +7018,7 @@"p75_sec": 750.0},"ltx|i2v|standard|193.0|M2 Ultra|64.0|any": {- "n": 47,+ "n": 46,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -8482,19 +7054,19 @@"p75_sec": 240.0},"ltx|i2v|standard|241.0|M1 Max|32.0|any": {- "n": 182,+ "n": 180,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M1 Max|64.0|any": {- "n": 36,+ "n": 35,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|i2v|standard|241.0|M1 Pro|16.0|any": {- "n": 63,+ "n": 47,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -8512,9 +7084,9 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M1|16.0|any": {- "n": 21,- "p25_sec": 1200.0,- "p50_sec": 1800.0,+ "n": 14,+ "p25_sec": 1950.0,+ "p50_sec": 2400.0,"p75_sec": 2400.0},"ltx|i2v|standard|241.0|M2 Max|32.0|any": {@@ -8524,13 +7096,13 @@"p75_sec": 300.0},"ltx|i2v|standard|241.0|M2 Max|64.0|any": {- "n": 145,+ "n": 144,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|standard|241.0|M2 Max|96.0|any": {- "n": 65,+ "n": 40,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -8554,19 +7126,19 @@"p75_sec": 300.0},"ltx|i2v|standard|241.0|M2 Ultra|64.0|any": {- "n": 133,+ "n": 103,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M2|16.0|any": {- "n": 75,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 11,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1800.0},"ltx|i2v|standard|241.0|M3 Max|36.0|any": {- "n": 15,+ "n": 10,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -8577,12 +7149,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|standard|241.0|M3 Pro|36.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|standard|241.0|M3 Ultra|256.0|any": {"n": 4,"p25_sec": 420.0,@@ -8590,14 +7156,14 @@"p75_sec": 750.0},"ltx|i2v|standard|241.0|M3 Ultra|96.0|any": {- "n": 15,- "p25_sec": 300.0,- "p50_sec": 300.0,+ "n": 5,+ "p25_sec": 420.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|241.0|M4 Max|128.0|any": {- "n": 19,- "p25_sec": 600.0,+ "n": 18,+ "p25_sec": 675.0,"p50_sec": 1200.0,"p75_sec": 1200.0},@@ -8608,7 +7174,7 @@"p75_sec": 240.0},"ltx|i2v|standard|241.0|M4 Max|48.0|any": {- "n": 82,+ "n": 78,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -8620,19 +7186,19 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4 Pro|24.0|any": {- "n": 75,+ "n": 71,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|241.0|M4 Pro|48.0|any": {- "n": 93,+ "n": 68,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4|16.0|any": {- "n": 97,+ "n": 82,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0@@ -8644,13 +7210,13 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4|32.0|any": {- "n": 359,+ "n": 357,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M5 Max|128.0|any": {- "n": 35,+ "n": 34,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -8668,39 +7234,33 @@"p75_sec": 180.0},"ltx|i2v|standard|241.0|M5 Max|64.0|any": {- "n": 199,- "p25_sec": 120.0,- "p50_sec": 240.0,+ "n": 66,+ "p25_sec": 300.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|241.0|M5 Pro|24.0|any": {- "n": 115,+ "n": 83,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 120.0},"ltx|i2v|standard|241.0|M5 Pro|48.0|any": {- "n": 34,+ "n": 31,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|241.0|M5 Pro|64.0|any": {- "n": 41,+ "n": 24,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},- "ltx|i2v|standard|241.0|M5 Ultra|96.0|any": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|standard|241.0|M5|16.0|any": {- "n": 194,+ "n": 184,"p25_sec": 300.0,- "p50_sec": 360.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|standard|241.0|M5|24.0|any": {@@ -8716,10 +7276,10 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M6|24.0|any": {- "n": 15,+ "n": 6,"p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|i2v|standard|249.0|M4 Pro|24.0|any": {"n": 4,@@ -8775,12 +7335,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|i2v|standard|361.0|M3 Pro|18.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|i2v|standard|361.0|M4 Max|36.0|any": {"n": 3,"p25_sec": 120.0,@@ -8793,24 +7347,12 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|standard|361.0|M4|16.0|any": {- "n": 10,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|standard|393.0|M3 Max|48.0|any": {"n": 4,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|41.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|41.0|M5 Max|48.0|any": {"n": 25,"p25_sec": 15.0,@@ -8859,12 +7401,6 @@"p50_sec": 180.0,"p75_sec": 210.0},- "ltx|i2v|standard|49.0|M4 Pro|24.0|any": {- "n": 8,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|49.0|M4 Pro|48.0|any": {"n": 10,"p25_sec": 120.0,@@ -8889,12 +7425,6 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|i2v|standard|65.0|M4 Max|36.0|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|standard|65.0|M5 Max|64.0|any": {"n": 4,"p25_sec": 30.0,@@ -8902,17 +7432,11 @@"p75_sec": 67.5},"ltx|i2v|standard|73.0|M1 Max|32.0|any": {- "n": 42,+ "n": 27,"p25_sec": 180.0,- "p50_sec": 210.0,+ "p50_sec": 180.0,"p75_sec": 240.0},- "ltx|i2v|standard|73.0|M1 Max|64.0|any": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|i2v|standard|73.0|M2 Max|32.0|any": {"n": 3,"p25_sec": 90.0,@@ -8926,7 +7450,7 @@"p75_sec": 240.0},"ltx|i2v|standard|73.0|M2 Max|96.0|any": {- "n": 7,+ "n": 4,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -8937,12 +7461,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|standard|73.0|M2|16.0|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|standard|73.0|M3 Max|36.0|any": {"n": 5,"p25_sec": 120.0,@@ -8955,12 +7473,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|standard|73.0|M3 Ultra|96.0|any": {- "n": 38,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|73.0|M4 Max|128.0|any": {"n": 3,"p25_sec": 210.0,@@ -8968,14 +7480,14 @@"p75_sec": 270.0},"ltx|i2v|standard|73.0|M4 Max|36.0|any": {- "n": 20,+ "n": 11,"p25_sec": 60.0,"p50_sec": 90.0,- "p75_sec": 90.0+ "p75_sec": 105.0},"ltx|i2v|standard|73.0|M4 Max|48.0|any": {- "n": 56,- "p25_sec": 90.0,+ "n": 8,+ "p25_sec": 112.5,"p50_sec": 120.0,"p75_sec": 120.0},@@ -8986,8 +7498,8 @@"p75_sec": 120.0},"ltx|i2v|standard|73.0|M4 Pro|24.0|any": {- "n": 17,- "p25_sec": 90.0,+ "n": 12,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},@@ -9004,10 +7516,10 @@"p75_sec": 180.0},"ltx|i2v|standard|73.0|M4|16.0|any": {- "n": 9,+ "n": 3,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 510.0},"ltx|i2v|standard|73.0|M4|32.0|any": {"n": 4,@@ -9040,10 +7552,10 @@"p75_sec": 60.0},"ltx|i2v|standard|73.0|M5 Pro|64.0|any": {- "n": 5,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 135.0},"ltx|i2v|standard|73.0|M5|16.0|any": {"n": 3,@@ -9057,18 +7569,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|81.0|M4 Max|36.0|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|i2v|standard|81.0|M4 Max|48.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|standard|81.0|M5 Max|48.0|any": {"n": 25,"p25_sec": 45.0,@@ -9099,12 +7599,6 @@"p50_sec": 45.0,"p75_sec": 52.5},- "ltx|i2v|standard|89.0|M5 Pro|24.0|any": {- "n": 3,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|i2v|standard|97.0|M2 Ultra|64.0|any": {"n": 4,"p25_sec": 180.0,@@ -9117,30 +7611,12 @@"p50_sec": 30.0,"p75_sec": 30.0},- "ltx|i2v|standard|97.0|M3 Ultra|96.0|any": {- "n": 9,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 120.0- },"ltx|i2v|standard|97.0|M4 Max|36.0|any": {- "n": 14,+ "n": 10,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|i2v|standard|97.0|M4 Max|48.0|any": {- "n": 36,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|i2v|standard|97.0|M4 Pro|24.0|any": {- "n": 7,- "p25_sec": 150.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|97.0|M4 Pro|48.0|any": {"n": 7,"p25_sec": 240.0,@@ -9178,20 +7654,14 @@"p75_sec": 300.0},"ltx|keyframe|balanced|121.0|M1 Max|64.0|any": {- "n": 24,- "p25_sec": 420.0,+ "n": 12,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|keyframe|balanced|121.0|M1 Ultra|64.0|any": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 660.0- },"ltx|keyframe|balanced|121.0|M2 Max|32.0|any": {- "n": 6,- "p25_sec": 600.0,+ "n": 3,+ "p25_sec": 510.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -9201,12 +7671,6 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|keyframe|balanced|121.0|M3 Max|64.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|keyframe|balanced|121.0|M3 Ultra|256.0|any": {"n": 5,"p25_sec": 300.0,@@ -9214,34 +7678,34 @@"p75_sec": 300.0},"ltx|keyframe|balanced|121.0|M4 Max|128.0|any": {- "n": 5,+ "n": 4,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 510.0,"p75_sec": 900.0},"ltx|keyframe|balanced|121.0|M4 Max|48.0|any": {- "n": 4,- "p25_sec": 390.0,+ "n": 3,+ "p25_sec": 360.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 420.0},"ltx|keyframe|balanced|121.0|M4 Max|64.0|any": {- "n": 12,- "p25_sec": 420.0,+ "n": 10,+ "p25_sec": 465.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|keyframe|balanced|121.0|M4 Pro|48.0|any": {- "n": 24,- "p25_sec": 555.0,+ "n": 22,+ "p25_sec": 465.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|keyframe|balanced|121.0|M5 Max|128.0|any": {- "n": 6,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 375.0+ "n": 3,+ "p25_sec": 330.0,+ "p50_sec": 420.0,+ "p75_sec": 510.0},"ltx|keyframe|balanced|121.0|M5 Max|64.0|any": {"n": 4,@@ -9250,10 +7714,10 @@"p75_sec": 90.0},"ltx|keyframe|balanced|121.0|M5 Pro|48.0|any": {- "n": 5,+ "n": 4,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 300.0+ "p75_sec": 255.0},"ltx|keyframe|balanced|121.0|M5 Pro|64.0|any": {"n": 12,@@ -9286,13 +7750,13 @@"p75_sec": 300.0},"ltx|keyframe|balanced|193.0|M1 Max|64.0|any": {- "n": 349,+ "n": 25,"p25_sec": 900.0,- "p50_sec": 900.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|keyframe|balanced|241.0|M1 Max|64.0|any": {- "n": 22,+ "n": 21,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -9303,12 +7767,6 @@"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|keyframe|balanced|241.0|M2 Max|96.0|any": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"ltx|keyframe|balanced|241.0|M2 Ultra|64.0|any": {"n": 3,"p25_sec": 510.0,@@ -9321,12 +7779,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|keyframe|balanced|241.0|M4 Max|128.0|any": {- "n": 3,- "p25_sec": 1800.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0- },"ltx|keyframe|balanced|241.0|M4 Max|48.0|any": {"n": 3,"p25_sec": 750.0,@@ -9346,19 +7798,7 @@"p75_sec": 600.0},"ltx|keyframe|balanced|241.0|M5 Pro|48.0|any": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 675.0- },- "ltx|keyframe|balanced|361.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|keyframe|balanced|49.0|M1 Max|64.0|any": {- "n": 13,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -9370,9 +7810,9 @@"p75_sec": 600.0},"ltx|keyframe|balanced|73.0|M2 Max|32.0|any": {- "n": 14,- "p25_sec": 330.0,- "p50_sec": 510.0,+ "n": 11,+ "p25_sec": 360.0,+ "p50_sec": 420.0,"p75_sec": 900.0},"ltx|keyframe|balanced|73.0|M4 Pro|48.0|any": {@@ -9399,12 +7839,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|high_720p|241.0|M4 Max|128.0|any": {- "n": 5,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },"ltx|keyframe|high|113.0|M5 Max|128.0|any": {"n": 11,"p25_sec": 300.0,@@ -9412,10 +7846,10 @@"p75_sec": 300.0},"ltx|keyframe|high|121.0|M1 Max|64.0|any": {- "n": 10,- "p25_sec": 465.0,+ "n": 8,+ "p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 675.0},"ltx|keyframe|high|121.0|M3 Max|48.0|any": {"n": 11,@@ -9424,14 +7858,14 @@"p75_sec": 420.0},"ltx|keyframe|high|121.0|M3 Ultra|256.0|any": {- "n": 11,+ "n": 9,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|keyframe|high|121.0|M5 Max|128.0|any": {- "n": 47,- "p25_sec": 240.0,+ "n": 39,+ "p25_sec": 210.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -9447,30 +7881,12 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|keyframe|high|145.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },"ltx|keyframe|high|161.0|M3 Ultra|256.0|any": {"n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|keyframe|high|169.0|M1 Max|64.0|any": {- "n": 17,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|keyframe|high|169.0|M3 Ultra|256.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|keyframe|high|193.0|M1 Max|64.0|any": {"n": 20,"p25_sec": 1200.0,@@ -9495,12 +7911,6 @@"p50_sec": 900.0,"p75_sec": 1050.0},- "ltx|keyframe|high|241.0|M3 Ultra|256.0|any": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"ltx|keyframe|high|241.0|M3 Ultra|96.0|any": {"n": 4,"p25_sec": 420.0,@@ -9531,12 +7941,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|keyframe|high|73.0|M1 Max|64.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|keyframe|high|73.0|M3 Ultra|256.0|any": {"n": 3,"p25_sec": 180.0,@@ -9567,12 +7971,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|quick|121.0|M1 Max|64.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 660.0,- "p75_sec": 975.0- },"ltx|keyframe|quick|121.0|M4 Max|64.0|any": {"n": 7,"p25_sec": 240.0,@@ -9586,7 +7984,7 @@"p75_sec": 600.0},"ltx|keyframe|standard|121.0|M2 Max|96.0|any": {- "n": 17,+ "n": 14,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -9610,7 +8008,7 @@"p75_sec": 195.0},"ltx|keyframe|standard|169.0|M2 Max|96.0|any": {- "n": 25,+ "n": 15,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -9627,12 +8025,6 @@"p50_sec": 1500.0,"p75_sec": 1800.0},- "ltx|keyframe|standard|193.0|M1 Max|64.0|any": {- "n": 41,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"ltx|keyframe|standard|193.0|M2 Ultra|64.0|any": {"n": 9,"p25_sec": 300.0,@@ -9646,7 +8038,7 @@"p75_sec": 2250.0},"ltx|keyframe|standard|241.0|M2 Max|96.0|any": {- "n": 29,+ "n": 10,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -9712,25 +8104,25 @@"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M1 Max|32.0|any": {- "n": 143,+ "n": 110,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M1 Max|64.0|any": {- "n": 273,+ "n": 173,"p25_sec": 240.0,- "p50_sec": 240.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M1 Pro|16.0|any": {- "n": 91,+ "n": 82,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|121.0|M1 Pro|32.0|any": {- "n": 81,+ "n": 10,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -9742,27 +8134,27 @@"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M1 Ultra|64.0|any": {- "n": 31,+ "n": 23,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M1|16.0|any": {- "n": 12,+ "n": 9,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 900.0},"ltx|t2v|balanced|121.0|M1|8.0|any": {- "n": 35,+ "n": 31,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1050.0},"ltx|t2v|balanced|121.0|M2 Max|32.0|any": {- "n": 41,+ "n": 38,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 150.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M2 Max|64.0|any": {@@ -9772,19 +8164,19 @@"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M2 Max|96.0|any": {- "n": 106,- "p25_sec": 120.0,+ "n": 96,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M2 Pro|16.0|any": {- "n": 14,+ "n": 13,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M2 Pro|32.0|any": {- "n": 6,+ "n": 5,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -9795,23 +8187,17 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|balanced|121.0|M2 Ultra|192.0|any": {- "n": 106,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|t2v|balanced|121.0|M2 Ultra|64.0|any": {- "n": 32,+ "n": 26,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 105.0},"ltx|t2v|balanced|121.0|M2|16.0|any": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 825.0+ "n": 3,+ "p25_sec": 660.0,+ "p50_sec": 900.0,+ "p75_sec": 1050.0},"ltx|t2v|balanced|121.0|M2|24.0|any": {"n": 4,@@ -9825,17 +8211,11 @@"p50_sec": 600.0,"p75_sec": 900.0},- "ltx|t2v|balanced|121.0|M3 Max|128.0|any": {- "n": 3,- "p25_sec": 150.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },"ltx|t2v|balanced|121.0|M3 Max|36.0|any": {- "n": 12,+ "n": 9,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 135.0+ "p75_sec": 120.0},"ltx|t2v|balanced|121.0|M3 Max|48.0|any": {"n": 15,@@ -9856,40 +8236,40 @@"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M3 Pro|18.0|any": {- "n": 20,- "p25_sec": 240.0,- "p50_sec": 270.0,+ "n": 16,+ "p25_sec": 225.0,+ "p50_sec": 360.0,"p75_sec": 675.0},"ltx|t2v|balanced|121.0|M3 Pro|36.0|any": {- "n": 12,+ "n": 7,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M3 Ultra|256.0|any": {- "n": 27,+ "n": 22,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M3 Ultra|512.0|any": {- "n": 84,+ "n": 76,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M3 Ultra|96.0|any": {- "n": 255,+ "n": 25,"p25_sec": 90.0,- "p50_sec": 120.0,+ "p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M3|16.0|any": {- "n": 6,- "p25_sec": 465.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "n": 4,+ "p25_sec": 420.0,+ "p50_sec": 510.0,+ "p75_sec": 675.0},"ltx|t2v|balanced|121.0|M3|24.0|any": {"n": 6,@@ -9898,58 +8278,58 @@"p75_sec": 1200.0},"ltx|t2v|balanced|121.0|M4 Max|128.0|any": {- "n": 147,+ "n": 143,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Max|36.0|any": {- "n": 125,+ "n": 111,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M4 Max|48.0|any": {- "n": 21,+ "n": 15,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Max|64.0|any": {- "n": 551,+ "n": 530,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Pro|24.0|any": {- "n": 236,+ "n": 218,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M4 Pro|48.0|any": {- "n": 122,+ "n": 118,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M4 Pro|64.0|any": {- "n": 45,+ "n": 41,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M4|16.0|any": {- "n": 59,+ "n": 37,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|t2v|balanced|121.0|M4|24.0|any": {- "n": 35,+ "n": 28,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 510.0+ "p75_sec": 465.0},"ltx|t2v|balanced|121.0|M4|32.0|any": {"n": 13,@@ -9958,15 +8338,15 @@"p75_sec": 420.0},"ltx|t2v|balanced|121.0|M5 Max|128.0|any": {- "n": 99,+ "n": 93,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Max|36.0|any": {- "n": 21,+ "n": 7,"p25_sec": 45.0,- "p50_sec": 45.0,+ "p50_sec": 60.0,"p75_sec": 60.0},"ltx|t2v|balanced|121.0|M5 Max|48.0|any": {@@ -9976,38 +8356,38 @@"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5 Max|64.0|any": {- "n": 271,+ "n": 129,"p25_sec": 60.0,- "p50_sec": 60.0,+ "p50_sec": 90.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|24.0|any": {- "n": 37,+ "n": 22,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|48.0|any": {- "n": 106,+ "n": 89,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5 Pro|64.0|any": {- "n": 119,+ "n": 109,"p25_sec": 90.0,- "p50_sec": 120.0,+ "p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5|16.0|any": {- "n": 55,+ "n": 45,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 420.0},"ltx|t2v|balanced|121.0|M5|24.0|any": {- "n": 41,- "p25_sec": 180.0,+ "n": 19,+ "p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 300.0},@@ -10018,34 +8398,28 @@"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M6|16.0|any": {- "n": 8,+ "n": 6,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M6|24.0|any": {- "n": 5,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M6|32.0|any": {- "n": 9,+ "n": 5,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|balanced|137.0|M4 Pro|24.0|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|balanced|145.0|M1 Max|64.0|any": {- "n": 7,+ "n": 6,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 210.0+ "p75_sec": 180.0},"ltx|t2v|balanced|145.0|M4 Max|64.0|any": {"n": 3,@@ -10053,12 +8427,6 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|balanced|145.0|M4 Pro|24.0|any": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|t2v|balanced|145.0|M4 Pro|48.0|any": {"n": 7,"p25_sec": 180.0,@@ -10090,16 +8458,10 @@"p75_sec": 240.0},"ltx|t2v|balanced|169.0|M1 Max|64.0|any": {- "n": 35,+ "n": 16,"p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },- "ltx|t2v|balanced|169.0|M1 Ultra|64.0|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0+ "p50_sec": 420.0,+ "p75_sec": 465.0},"ltx|t2v|balanced|169.0|M2 Max|96.0|any": {"n": 13,@@ -10108,7 +8470,7 @@"p75_sec": 300.0},"ltx|t2v|balanced|169.0|M3 Pro|36.0|any": {- "n": 11,+ "n": 10,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -10126,10 +8488,10 @@"p75_sec": 975.0},"ltx|t2v|balanced|169.0|M4 Max|36.0|any": {- "n": 20,- "p25_sec": 165.0,+ "n": 19,+ "p25_sec": 150.0,"p50_sec": 180.0,- "p75_sec": 195.0+ "p75_sec": 180.0},"ltx|t2v|balanced|169.0|M4 Max|64.0|any": {"n": 33,@@ -10138,9 +8500,9 @@"p75_sec": 240.0},"ltx|t2v|balanced|169.0|M4 Pro|24.0|any": {- "n": 10,- "p25_sec": 240.0,- "p50_sec": 360.0,+ "n": 7,+ "p25_sec": 270.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|balanced|169.0|M4 Pro|48.0|any": {@@ -10156,16 +8518,16 @@"p75_sec": 600.0},"ltx|t2v|balanced|169.0|M5 Max|128.0|any": {- "n": 22,+ "n": 11,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|169.0|M5 Max|64.0|any": {- "n": 13,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0+ "n": 3,+ "p25_sec": 120.0,+ "p50_sec": 120.0,+ "p75_sec": 150.0},"ltx|t2v|balanced|169.0|M5 Pro|24.0|any": {"n": 41,@@ -10215,12 +8577,6 @@"p50_sec": 900.0,"p75_sec": 1200.0},- "ltx|t2v|balanced|217.0|M1 Max|64.0|any": {- "n": 51,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|balanced|217.0|M4 Pro|48.0|any": {"n": 6,"p25_sec": 300.0,@@ -10234,22 +8590,22 @@"p75_sec": 240.0},"ltx|t2v|balanced|241.0|M1 Max|32.0|any": {- "n": 32,+ "n": 23,"p25_sec": 300.0,- "p50_sec": 360.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|balanced|241.0|M1 Max|64.0|any": {- "n": 52,+ "n": 48,"p25_sec": 240.0,- "p50_sec": 510.0,+ "p50_sec": 420.0,"p75_sec": 900.0},"ltx|t2v|balanced|241.0|M1 Pro|16.0|any": {- "n": 11,+ "n": 8,"p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "p50_sec": 750.0,+ "p75_sec": 975.0},"ltx|t2v|balanced|241.0|M1 Ultra|128.0|any": {"n": 81,@@ -10258,16 +8614,16 @@"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M1 Ultra|64.0|any": {- "n": 41,+ "n": 36,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M1|16.0|any": {- "n": 6,- "p25_sec": 975.0,- "p50_sec": 2400.0,- "p75_sec": 4950.0+ "n": 5,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,+ "p75_sec": 5400.0},"ltx|t2v|balanced|241.0|M2 Max|32.0|any": {"n": 7,@@ -10276,14 +8632,14 @@"p75_sec": 450.0},"ltx|t2v|balanced|241.0|M2 Max|64.0|any": {- "n": 76,+ "n": 74,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|balanced|241.0|M2 Max|96.0|any": {- "n": 18,- "p25_sec": 180.0,+ "n": 16,+ "p25_sec": 270.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -10293,12 +8649,6 @@"p50_sec": 420.0,"p75_sec": 810.0},- "ltx|t2v|balanced|241.0|M2 Ultra|192.0|any": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|balanced|241.0|M2 Ultra|64.0|any": {"n": 5,"p25_sec": 600.0,@@ -10306,7 +8656,7 @@"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M2|16.0|any": {- "n": 11,+ "n": 8,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -10317,12 +8667,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|balanced|241.0|M3 Max|36.0|any": {- "n": 9,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 2400.0- },"ltx|t2v|balanced|241.0|M3 Max|96.0|any": {"n": 12,"p25_sec": 600.0,@@ -10330,7 +8674,7 @@"p75_sec": 1200.0},"ltx|t2v|balanced|241.0|M3 Pro|36.0|any": {- "n": 10,+ "n": 8,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -10342,46 +8686,40 @@"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M3 Ultra|96.0|any": {- "n": 20,- "p25_sec": 165.0,- "p50_sec": 240.0,- "p75_sec": 540.0+ "n": 12,+ "p25_sec": 225.0,+ "p50_sec": 330.0,+ "p75_sec": 1200.0},"ltx|t2v|balanced|241.0|M3|24.0|any": {- "n": 6,+ "n": 4,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1125.0- },- "ltx|t2v|balanced|241.0|M4 Max|128.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|t2v|balanced|241.0|M4 Max|36.0|any": {- "n": 33,+ "n": 21,"p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|t2v|balanced|241.0|M4 Max|48.0|any": {- "n": 213,+ "n": 211,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|241.0|M4 Max|64.0|any": {- "n": 42,+ "n": 30,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 390.0},"ltx|t2v|balanced|241.0|M4 Pro|24.0|any": {- "n": 108,- "p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 675.0+ "n": 83,+ "p25_sec": 360.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0},"ltx|t2v|balanced|241.0|M4 Pro|48.0|any": {"n": 85,@@ -10390,15 +8728,15 @@"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M4 Pro|64.0|any": {- "n": 26,+ "n": 24,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M4|16.0|any": {- "n": 56,+ "n": 47,"p25_sec": 900.0,- "p50_sec": 1200.0,+ "p50_sec": 900.0,"p75_sec": 1200.0},"ltx|t2v|balanced|241.0|M4|24.0|any": {@@ -10407,23 +8745,17 @@"p50_sec": 1500.0,"p75_sec": 2700.0},- "ltx|t2v|balanced|241.0|M4|32.0|any": {- "n": 10,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"ltx|t2v|balanced|241.0|M5 Max|128.0|any": {- "n": 32,+ "n": 26,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|241.0|M5 Max|36.0|any": {- "n": 11,+ "n": 5,"p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 360.0+ "p50_sec": 300.0,+ "p75_sec": 600.0},"ltx|t2v|balanced|241.0|M5 Max|48.0|any": {"n": 17,@@ -10432,39 +8764,39 @@"p75_sec": 240.0},"ltx|t2v|balanced|241.0|M5 Max|64.0|any": {- "n": 454,+ "n": 27,"p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 180.0+ "p50_sec": 120.0,+ "p75_sec": 240.0},"ltx|t2v|balanced|241.0|M5 Pro|24.0|any": {- "n": 13,- "p25_sec": 120.0,+ "n": 3,+ "p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|241.0|M5 Pro|48.0|any": {- "n": 22,+ "n": 20,"p25_sec": 240.0,- "p50_sec": 270.0,+ "p50_sec": 240.0,"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M5 Pro|64.0|any": {- "n": 67,+ "n": 18,"p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "p50_sec": 300.0,+ "p75_sec": 750.0},"ltx|t2v|balanced|241.0|M5|16.0|any": {- "n": 29,+ "n": 25,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M5|24.0|any": {- "n": 44,+ "n": 34,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M6|16.0|any": {@@ -10480,19 +8812,13 @@"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M6|32.0|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 4,+ "p25_sec": 285.0,"p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|t2v|balanced|241.0|non-apple-silicon|8.0|any": {- "n": 3,- "p25_sec": 1500.0,- "p50_sec": 1800.0,- "p75_sec": 3600.0+ "p75_sec": 450.0},"ltx|t2v|balanced|249.0|M4 Pro|64.0|any": {- "n": 14,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -10503,30 +8829,12 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|balanced|25.0|M4 Max|64.0|any": {- "n": 3,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 30.0- },"ltx|t2v|balanced|25.0|M4 Pro|64.0|any": {"n": 12,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|balanced|289.0|M5 Max|128.0|any": {- "n": 17,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },- "ltx|t2v|balanced|313.0|M5 Max|128.0|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|balanced|33.0|M3 Ultra|256.0|any": {"n": 3,"p25_sec": 30.0,@@ -10546,17 +8854,11 @@"p75_sec": 285.0},"ltx|t2v|balanced|361.0|M4 Max|64.0|any": {- "n": 4,+ "n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|balanced|361.0|M5 Max|128.0|any": {- "n": 15,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"ltx|t2v|balanced|361.0|M5 Max|64.0|any": {"n": 8,"p25_sec": 240.0,@@ -10569,72 +8871,30 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|balanced|385.0|M5 Max|128.0|any": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|t2v|balanced|409.0|M1 Ultra|64.0|any": {"n": 20,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|balanced|41.0|M4 Max|64.0|any": {- "n": 9,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|t2v|balanced|41.0|M5 Max|48.0|any": {"n": 10,"p25_sec": 15.0,"p50_sec": 15.0,"p75_sec": 15.0},- "ltx|t2v|balanced|481.0|M1 Max|64.0|any": {- "n": 4,- "p25_sec": 1800.0,- "p50_sec": 1800.0,- "p75_sec": 1950.0- },"ltx|t2v|balanced|481.0|M2 Max|64.0|any": {"n": 9,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|balanced|481.0|M4 Max|64.0|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"ltx|t2v|balanced|481.0|M4|16.0|any": {"n": 3,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|balanced|481.0|M5 Max|64.0|any": {- "n": 13,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|t2v|balanced|481.0|M6|32.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|t2v|balanced|49.0|M1 Max|64.0|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 105.0- },"ltx|t2v|balanced|49.0|M3 Ultra|512.0|any": {"n": 25,"p25_sec": 45.0,@@ -10653,24 +8913,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|balanced|49.0|M5 Ultra|96.0|any": {- "n": 5,- "p25_sec": 0.0,- "p50_sec": 0.0,- "p75_sec": 15.0- },- "ltx|t2v|balanced|57.0|M4 Max|64.0|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|t2v|balanced|65.0|M1 Max|64.0|any": {- "n": 23,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|t2v|balanced|65.0|M5 Max|128.0|any": {"n": 6,"p25_sec": 30.0,@@ -10678,13 +8920,13 @@"p75_sec": 30.0},"ltx|t2v|balanced|73.0|M1 Max|32.0|any": {- "n": 62,+ "n": 60,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|73.0|M1 Max|64.0|any": {- "n": 34,+ "n": 29,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -10708,7 +8950,7 @@"p75_sec": 120.0},"ltx|t2v|balanced|73.0|M2 Max|96.0|any": {- "n": 21,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -10738,10 +8980,10 @@"p75_sec": 67.5},"ltx|t2v|balanced|73.0|M3 Ultra|96.0|any": {- "n": 8,+ "n": 5,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 67.5+ "p75_sec": 60.0},"ltx|t2v|balanced|73.0|M4 Max|128.0|any": {"n": 119,@@ -10761,30 +9003,18 @@"p50_sec": 90.0,"p75_sec": 120.0},- "ltx|t2v|balanced|73.0|M4 Pro|24.0|any": {- "n": 3,- "p25_sec": 105.0,- "p50_sec": 120.0,- "p75_sec": 210.0- },"ltx|t2v|balanced|73.0|M4 Pro|48.0|any": {- "n": 53,+ "n": 52,"p25_sec": 90.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|73.0|M4 Pro|64.0|any": {- "n": 8,- "p25_sec": 165.0,+ "n": 6,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|balanced|73.0|M4|16.0|any": {- "n": 14,- "p25_sec": 300.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|balanced|73.0|M5 Max|128.0|any": {"n": 24,"p25_sec": 45.0,@@ -10792,8 +9022,8 @@"p75_sec": 48.8},"ltx|t2v|balanced|73.0|M5 Max|64.0|any": {- "n": 152,- "p25_sec": 30.0,+ "n": 4,+ "p25_sec": 41.2,"p50_sec": 45.0,"p75_sec": 45.0},@@ -10822,16 +9052,10 @@"p75_sec": 90.0},"ltx|t2v|balanced|73.0|M5|32.0|any": {- "n": 8,+ "n": 6,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 97.5- },- "ltx|t2v|balanced|81.0|M1 Max|64.0|any": {- "n": 28,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 112.5},"ltx|t2v|balanced|89.0|M5 Pro|24.0|any": {"n": 3,@@ -10846,10 +9070,10 @@"p75_sec": 180.0},"ltx|t2v|balanced|97.0|M1 Max|64.0|any": {- "n": 6,+ "n": 3,"p25_sec": 120.0,- "p50_sec": 150.0,- "p75_sec": 180.0+ "p50_sec": 120.0,+ "p75_sec": 120.0},"ltx|t2v|balanced|97.0|M3 Max|96.0|any": {"n": 3,@@ -10875,12 +9099,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|draft|121.0|M3|8.0|any": {- "n": 7,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|draft|121.0|M4 Max|64.0|any": {"n": 3,"p25_sec": 120.0,@@ -10899,12 +9117,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|high_720p|121.0|M5 Max|128.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },"ltx|t2v|high_720p|241.0|M1 Ultra|128.0|any": {"n": 5,"p25_sec": 1200.0,@@ -10917,18 +9129,6 @@"p50_sec": 1800.0,"p75_sec": 1800.0},- "ltx|t2v|high_720p|241.0|M5 Max|64.0|any": {- "n": 38,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|t2v|high_720p|241.0|M5 Pro|64.0|any": {- "n": 9,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|t2v|high_720p|73.0|M4 Max|128.0|any": {"n": 3,"p25_sec": 270.0,@@ -10954,7 +9154,7 @@"p75_sec": 180.0},"ltx|t2v|high|121.0|M1 Max|64.0|any": {- "n": 60,+ "n": 58,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -10989,22 +9189,16 @@"p50_sec": 270.0,"p75_sec": 675.0},- "ltx|t2v|high|121.0|M3 Ultra|96.0|any": {- "n": 16,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|t2v|high|121.0|M4 Max|128.0|any": {- "n": 81,+ "n": 79,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|t2v|high|121.0|M4 Max|64.0|any": {- "n": 17,+ "n": 16,"p25_sec": 240.0,- "p50_sec": 300.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"ltx|t2v|high|121.0|M4 Pro|48.0|any": {@@ -11014,16 +9208,16 @@"p75_sec": 600.0},"ltx|t2v|high|121.0|M4 Pro|64.0|any": {- "n": 12,+ "n": 6,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 420.0},"ltx|t2v|high|121.0|M5 Max|128.0|any": {- "n": 33,+ "n": 9,"p25_sec": 120.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "p50_sec": 120.0,+ "p75_sec": 180.0},"ltx|t2v|high|121.0|M5 Max|48.0|any": {"n": 6,@@ -11044,16 +9238,10 @@"p75_sec": 180.0},"ltx|t2v|high|121.0|M5 Pro|64.0|any": {- "n": 6,+ "n": 4,"p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 240.0- },- "ltx|t2v|high|121.0|M5|24.0|any": {- "n": 3,- "p25_sec": 1800.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0+ "p50_sec": 180.0,+ "p75_sec": 195.0},"ltx|t2v|high|145.0|M5 Max|128.0|any": {"n": 3,@@ -11116,10 +9304,10 @@"p75_sec": 255.0},"ltx|t2v|high|241.0|M1 Max|64.0|any": {- "n": 44,+ "n": 43,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 975.0+ "p75_sec": 900.0},"ltx|t2v|high|241.0|M1 Ultra|128.0|any": {"n": 7,@@ -11176,10 +9364,10 @@"p75_sec": 1200.0},"ltx|t2v|high|241.0|M5 Max|128.0|any": {- "n": 18,+ "n": 15,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 510.0},"ltx|t2v|high|241.0|M5 Max|48.0|any": {"n": 4,@@ -11188,13 +9376,13 @@"p75_sec": 300.0},"ltx|t2v|high|241.0|M5 Max|64.0|any": {- "n": 27,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0+ "n": 3,+ "p25_sec": 270.0,+ "p50_sec": 300.0,+ "p75_sec": 300.0},"ltx|t2v|high|241.0|M5 Pro|64.0|any": {- "n": 12,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -11223,12 +9411,6 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|t2v|high|481.0|M5 Pro|64.0|any": {- "n": 4,- "p25_sec": 900.0,- "p50_sec": 1050.0,- "p75_sec": 1200.0- },"ltx|t2v|high|65.0|M3 Ultra|96.0|any": {"n": 9,"p25_sec": 180.0,@@ -11295,12 +9477,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|high|73.0|M5 Max|128.0|any": {- "n": 6,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|t2v|high|97.0|M3 Ultra|512.0|any": {"n": 3,"p25_sec": 180.0,@@ -11313,12 +9489,6 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|q4|121.0|M5|24.0|any": {- "n": 66,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"ltx|t2v|quick|113.0|M4 Max|64.0|any": {"n": 3,"p25_sec": 120.0,@@ -11326,9 +9496,9 @@"p75_sec": 150.0},"ltx|t2v|quick|121.0|M1 Max|32.0|any": {- "n": 37,+ "n": 28,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 210.0,"p75_sec": 240.0},"ltx|t2v|quick|121.0|M1 Max|64.0|any": {@@ -11344,7 +9514,7 @@"p75_sec": 420.0},"ltx|t2v|quick|121.0|M1 Pro|32.0|any": {- "n": 12,+ "n": 4,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -11356,10 +9526,10 @@"p75_sec": 90.0},"ltx|t2v|quick|121.0|M1 Ultra|64.0|any": {- "n": 10,+ "n": 8,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 112.5+ "p75_sec": 75.0},"ltx|t2v|quick|121.0|M2 Max|32.0|any": {"n": 12,@@ -11374,7 +9544,7 @@"p75_sec": 90.0},"ltx|t2v|quick|121.0|M2 Max|96.0|any": {- "n": 15,+ "n": 13,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -11386,10 +9556,10 @@"p75_sec": 180.0},"ltx|t2v|quick|121.0|M3 Max|36.0|any": {- "n": 14,+ "n": 11,"p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 240.0+ "p50_sec": 240.0,+ "p75_sec": 270.0},"ltx|t2v|quick|121.0|M3 Max|48.0|any": {"n": 10,@@ -11398,10 +9568,10 @@"p75_sec": 90.0},"ltx|t2v|quick|121.0|M3 Pro|18.0|any": {- "n": 19,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "n": 3,+ "p25_sec": 330.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|t2v|quick|121.0|M3 Ultra|256.0|any": {"n": 29,@@ -11416,7 +9586,7 @@"p75_sec": 97.5},"ltx|t2v|quick|121.0|M3 Ultra|96.0|any": {- "n": 36,+ "n": 32,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0@@ -11427,14 +9597,8 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|quick|121.0|M3|24.0|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|quick|121.0|M4 Max|128.0|any": {- "n": 23,+ "n": 22,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -11445,38 +9609,32 @@"p50_sec": 90.0,"p75_sec": 120.0},- "ltx|t2v|quick|121.0|M4 Max|48.0|any": {- "n": 5,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|t2v|quick|121.0|M4 Max|64.0|any": {- "n": 13,- "p25_sec": 60.0,+ "n": 10,+ "p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 112.5},"ltx|t2v|quick|121.0|M4 Pro|24.0|any": {- "n": 35,+ "n": 22,"p25_sec": 120.0,- "p50_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4 Pro|48.0|any": {- "n": 84,+ "n": 83,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4 Pro|64.0|any": {- "n": 16,+ "n": 14,"p25_sec": 120.0,- "p50_sec": 120.0,+ "p50_sec": 150.0,"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4|16.0|any": {- "n": 50,+ "n": 32,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -11494,7 +9652,7 @@"p75_sec": 420.0},"ltx|t2v|quick|121.0|M5 Max|128.0|any": {- "n": 105,+ "n": 104,"p25_sec": 45.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -11512,22 +9670,22 @@"p75_sec": 60.0},"ltx|t2v|quick|121.0|M5 Max|64.0|any": {- "n": 26,+ "n": 19,"p25_sec": 30.0,"p50_sec": 30.0,- "p75_sec": 45.0+ "p75_sec": 52.5},"ltx|t2v|quick|121.0|M5 Pro|24.0|any": {- "n": 20,+ "n": 10,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|t2v|quick|121.0|M5 Pro|48.0|any": {- "n": 27,+ "n": 16,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 60.0},"ltx|t2v|quick|121.0|M5 Pro|64.0|any": {"n": 13,@@ -11536,22 +9694,22 @@"p75_sec": 60.0},"ltx|t2v|quick|121.0|M5|16.0|any": {- "n": 30,- "p25_sec": 135.0,- "p50_sec": 180.0,+ "n": 23,+ "p25_sec": 180.0,+ "p50_sec": 240.0,"p75_sec": 420.0},"ltx|t2v|quick|121.0|M5|24.0|any": {- "n": 45,+ "n": 38,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|quick|121.0|M6|32.0|any": {- "n": 13,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 120.0+ "n": 4,+ "p25_sec": 120.0,+ "p50_sec": 120.0,+ "p75_sec": 135.0},"ltx|t2v|quick|145.0|M1 Max|64.0|any": {"n": 5,@@ -11560,17 +9718,11 @@"p75_sec": 420.0},"ltx|t2v|quick|145.0|M4 Pro|24.0|any": {- "n": 8,+ "n": 7,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|quick|145.0|M4|16.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },"ltx|t2v|quick|145.0|M5 Max|128.0|any": {"n": 3,"p25_sec": 45.0,@@ -11578,10 +9730,10 @@"p75_sec": 52.5},"ltx|t2v|quick|145.0|M5 Pro|48.0|any": {- "n": 7,+ "n": 3,"p25_sec": 60.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 60.0,+ "p75_sec": 60.0},"ltx|t2v|quick|145.0|M5 Pro|64.0|any": {"n": 3,@@ -11619,30 +9771,6 @@"p50_sec": 180.0,"p75_sec": 240.0},- "ltx|t2v|quick|169.0|M4|32.0|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|t2v|quick|169.0|M5 Pro|24.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|t2v|quick|169.0|M5 Pro|48.0|any": {- "n": 8,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|t2v|quick|193.0|M2 Max|96.0|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },"ltx|t2v|quick|193.0|M4 Pro|48.0|any": {"n": 5,"p25_sec": 240.0,@@ -11662,7 +9790,7 @@"p75_sec": 180.0},"ltx|t2v|quick|241.0|M1 Max|32.0|any": {- "n": 15,+ "n": 13,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -11691,24 +9819,12 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|quick|241.0|M3 Pro|18.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 300.0- },"ltx|t2v|quick|241.0|M3 Ultra|512.0|any": {"n": 24,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 135.0},- "ltx|t2v|quick|241.0|M3 Ultra|96.0|any": {- "n": 6,- "p25_sec": 255.0,- "p50_sec": 450.0,- "p75_sec": 600.0- },"ltx|t2v|quick|241.0|M4 Max|128.0|any": {"n": 3,"p25_sec": 300.0,@@ -11722,7 +9838,7 @@"p75_sec": 180.0},"ltx|t2v|quick|241.0|M4 Pro|24.0|any": {- "n": 32,+ "n": 31,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -11733,14 +9849,8 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|t2v|quick|241.0|M4 Pro|64.0|any": {- "n": 20,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 2400.0- },"ltx|t2v|quick|241.0|M4|16.0|any": {- "n": 48,+ "n": 46,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -11758,16 +9868,16 @@"p75_sec": 60.0},"ltx|t2v|quick|241.0|M5 Max|36.0|any": {- "n": 23,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|quick|241.0|M5 Max|64.0|any": {- "n": 11,+ "n": 8,"p25_sec": 60.0,"p50_sec": 90.0,- "p75_sec": 150.0+ "p75_sec": 195.0},"ltx|t2v|quick|241.0|M5 Pro|48.0|any": {"n": 13,@@ -11782,10 +9892,10 @@"p75_sec": 420.0},"ltx|t2v|quick|241.0|M5|16.0|any": {- "n": 8,+ "n": 7,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 750.0},"ltx|t2v|quick|241.0|M5|24.0|any": {"n": 15,@@ -11805,12 +9915,6 @@"p50_sec": 30.0,"p75_sec": 37.5},- "ltx|t2v|quick|25.0|M4 Pro|24.0|any": {- "n": 5,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 60.0- },"ltx|t2v|quick|25.0|M6|32.0|any": {"n": 5,"p25_sec": 600.0,@@ -11835,14 +9939,8 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|t2v|quick|41.0|M4|16.0|any": {- "n": 7,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },"ltx|t2v|quick|481.0|M1 Max|32.0|any": {- "n": 20,+ "n": 17,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -11866,10 +9964,10 @@"p75_sec": 360.0},"ltx|t2v|quick|481.0|M1|8.0|any": {- "n": 4,+ "n": 3,"p25_sec": 1800.0,"p50_sec": 1800.0,- "p75_sec": 1950.0+ "p75_sec": 2100.0},"ltx|t2v|quick|481.0|M2 Max|64.0|any": {"n": 6,@@ -11877,41 +9975,17 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|quick|481.0|M3 Max|128.0|any": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|t2v|quick|481.0|M3 Max|36.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 675.0- },"ltx|t2v|quick|481.0|M3 Pro|18.0|any": {"n": 3,"p25_sec": 360.0,"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|quick|481.0|M3 Pro|36.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|quick|481.0|M3 Ultra|96.0|any": {- "n": 7,+ "n": 4,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 210.0- },- "ltx|t2v|quick|481.0|M4 Max|36.0|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 390.0+ "p50_sec": 210.0,+ "p75_sec": 240.0},"ltx|t2v|quick|481.0|M4 Pro|24.0|any": {"n": 9,@@ -11932,31 +10006,25 @@"p75_sec": 300.0},"ltx|t2v|quick|481.0|M4|16.0|any": {- "n": 12,- "p25_sec": 825.0,- "p50_sec": 900.0,- "p75_sec": 975.0+ "n": 3,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0},"ltx|t2v|quick|481.0|M5 Max|128.0|any": {- "n": 13,+ "n": 11,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|quick|481.0|M5 Max|64.0|any": {- "n": 30,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|t2v|quick|481.0|M5 Pro|24.0|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "n": 3,+ "p25_sec": 150.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0},"ltx|t2v|quick|481.0|M5 Pro|64.0|any": {- "n": 33,+ "n": 28,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -11997,24 +10065,12 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|t2v|quick|49.0|M4 Pro|24.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },"ltx|t2v|quick|49.0|M4 Pro|48.0|any": {"n": 3,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|quick|49.0|M4|16.0|any": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|quick|49.0|M5 Pro|64.0|any": {"n": 4,"p25_sec": 30.0,@@ -12022,7 +10078,7 @@"p75_sec": 30.0},"ltx|t2v|quick|73.0|M1 Max|32.0|any": {- "n": 81,+ "n": 72,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12034,8 +10090,8 @@"p75_sec": 120.0},"ltx|t2v|quick|73.0|M1 Pro|16.0|any": {- "n": 10,- "p25_sec": 330.0,+ "n": 9,+ "p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -12082,7 +10138,7 @@"p75_sec": 60.0},"ltx|t2v|quick|73.0|M3 Ultra|256.0|any": {- "n": 15,+ "n": 14,"p25_sec": 30.0,"p50_sec": 30.0,"p75_sec": 45.0@@ -12094,7 +10150,7 @@"p75_sec": 90.0},"ltx|t2v|quick|73.0|M3 Ultra|96.0|any": {- "n": 26,+ "n": 15,"p25_sec": 30.0,"p50_sec": 30.0,"p75_sec": 45.0@@ -12111,12 +10167,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|quick|73.0|M4 Max|48.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|t2v|quick|73.0|M4 Max|64.0|any": {"n": 11,"p25_sec": 45.0,@@ -12124,7 +10174,7 @@"p75_sec": 150.0},"ltx|t2v|quick|73.0|M4 Pro|24.0|any": {- "n": 22,+ "n": 15,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12136,9 +10186,9 @@"p75_sec": 120.0},"ltx|t2v|quick|73.0|M4|16.0|any": {- "n": 21,+ "n": 11,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|quick|73.0|M5 Max|128.0|any": {@@ -12178,7 +10228,7 @@"p75_sec": 420.0},"ltx|t2v|quick|73.0|M5|24.0|any": {- "n": 23,+ "n": 22,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12189,12 +10239,6 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|quick|73.0|M6|32.0|any": {- "n": 3,- "p25_sec": 75.0,- "p50_sec": 90.0,- "p75_sec": 195.0- },"ltx|t2v|quick|97.0|M1 Max|64.0|any": {"n": 6,"p25_sec": 97.5,@@ -12202,10 +10246,10 @@"p75_sec": 120.0},"ltx|t2v|quick|97.0|M2 Max|96.0|any": {- "n": 9,+ "n": 3,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 90.0},"ltx|t2v|quick|97.0|M3 Max|48.0|any": {"n": 5,@@ -12232,10 +10276,10 @@"p75_sec": 120.0},"ltx|t2v|quick|97.0|M4|16.0|any": {- "n": 4,+ "n": 3,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|t2v|quick|97.0|M5 Max|128.0|any": {"n": 3,@@ -12262,13 +10306,13 @@"p75_sec": 90.0},"ltx|t2v|standard|121.0|M1 Max|32.0|any": {- "n": 26,+ "n": 22,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|standard|121.0|M1 Max|64.0|any": {- "n": 69,+ "n": 65,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -12279,12 +10323,6 @@"p50_sec": 420.0,"p75_sec": 600.0},- "ltx|t2v|standard|121.0|M1 Pro|32.0|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 330.0- },"ltx|t2v|standard|121.0|M1 Ultra|128.0|any": {"n": 3,"p25_sec": 330.0,@@ -12292,7 +10330,7 @@"p75_sec": 810.0},"ltx|t2v|standard|121.0|M2 Max|32.0|any": {- "n": 10,+ "n": 9,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12304,9 +10342,9 @@"p75_sec": 210.0},"ltx|t2v|standard|121.0|M2 Ultra|64.0|any": {- "n": 9,+ "n": 4,"p25_sec": 180.0,- "p50_sec": 180.0,+ "p50_sec": 210.0,"p75_sec": 240.0},"ltx|t2v|standard|121.0|M3 Max|128.0|any": {@@ -12322,10 +10360,10 @@"p75_sec": 300.0},"ltx|t2v|standard|121.0|M3 Ultra|256.0|any": {- "n": 6,+ "n": 5,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 345.0+ "p75_sec": 420.0},"ltx|t2v|standard|121.0|M3 Ultra|512.0|any": {"n": 57,@@ -12334,9 +10372,9 @@"p75_sec": 420.0},"ltx|t2v|standard|121.0|M3 Ultra|96.0|any": {- "n": 16,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 3,+ "p25_sec": 120.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|standard|121.0|M3|16.0|any": {@@ -12345,12 +10383,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|standard|121.0|M3|24.0|any": {- "n": 10,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|standard|121.0|M4 Max|128.0|any": {"n": 83,"p25_sec": 420.0,@@ -12358,49 +10390,49 @@"p75_sec": 600.0},"ltx|t2v|standard|121.0|M4 Max|36.0|any": {- "n": 434,+ "n": 107,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 150.0},"ltx|t2v|standard|121.0|M4 Max|48.0|any": {- "n": 4,+ "n": 3,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 135.0+ "p75_sec": 150.0},"ltx|t2v|standard|121.0|M4 Max|64.0|any": {- "n": 9,+ "n": 8,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|standard|121.0|M4 Pro|24.0|any": {- "n": 8,+ "n": 7,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|standard|121.0|M4 Pro|48.0|any": {- "n": 51,+ "n": 50,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|standard|121.0|M4|16.0|any": {- "n": 22,- "p25_sec": 465.0,- "p50_sec": 750.0,- "p75_sec": 1200.0+ "n": 6,+ "p25_sec": 300.0,+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|t2v|standard|121.0|M4|24.0|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 4,+ "p25_sec": 285.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 330.0},"ltx|t2v|standard|121.0|M5 Max|128.0|any": {- "n": 35,+ "n": 34,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 120.0@@ -12412,19 +10444,19 @@"p75_sec": 60.0},"ltx|t2v|standard|121.0|M5 Max|48.0|any": {- "n": 20,+ "n": 14,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 90.0+ "p75_sec": 60.0},"ltx|t2v|standard|121.0|M5 Max|64.0|any": {- "n": 42,- "p25_sec": 97.5,+ "n": 37,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|standard|121.0|M5 Pro|24.0|any": {- "n": 15,+ "n": 7,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -12436,16 +10468,16 @@"p75_sec": 180.0},"ltx|t2v|standard|121.0|M5|16.0|any": {- "n": 35,+ "n": 33,"p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|standard|121.0|M5|24.0|any": {- "n": 149,+ "n": 146,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"ltx|t2v|standard|121.0|M5|32.0|any": {"n": 3,@@ -12454,8 +10486,8 @@"p75_sec": 120.0},"ltx|t2v|standard|121.0|M6|24.0|any": {- "n": 24,- "p25_sec": 180.0,+ "n": 15,+ "p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 180.0},@@ -12490,10 +10522,10 @@"p75_sec": 420.0},"ltx|t2v|standard|169.0|M4|16.0|any": {- "n": 8,+ "n": 3,"p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0+ "p50_sec": 420.0,+ "p75_sec": 510.0},"ltx|t2v|standard|169.0|M4|24.0|any": {"n": 7,@@ -12531,24 +10563,12 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|t2v|standard|169.0|M5|32.0|any": {- "n": 14,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|standard|217.0|M4 Max|48.0|any": {"n": 30,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|standard|217.0|M5|32.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },"ltx|t2v|standard|241.0|M1 Max|32.0|any": {"n": 3,"p25_sec": 270.0,@@ -12556,16 +10576,16 @@"p75_sec": 360.0},"ltx|t2v|standard|241.0|M1 Max|64.0|any": {- "n": 60,+ "n": 59,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|standard|241.0|M1 Pro|16.0|any": {- "n": 5,+ "n": 4,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "p50_sec": 510.0,+ "p75_sec": 675.0},"ltx|t2v|standard|241.0|M1 Ultra|128.0|any": {"n": 178,@@ -12573,12 +10593,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|standard|241.0|M1 Ultra|64.0|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|standard|241.0|M1|16.0|any": {"n": 4,"p25_sec": 900.0,@@ -12609,30 +10623,12 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|standard|241.0|M2|16.0|any": {- "n": 3,- "p25_sec": 810.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"ltx|t2v|standard|241.0|M2|8.0|any": {"n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|t2v|standard|241.0|M3 Max|36.0|any": {- "n": 7,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },- "ltx|t2v|standard|241.0|M3 Pro|36.0|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|standard|241.0|M3 Ultra|256.0|any": {"n": 5,"p25_sec": 600.0,@@ -12652,21 +10648,21 @@"p75_sec": 1200.0},"ltx|t2v|standard|241.0|M4 Max|36.0|any": {- "n": 102,- "p25_sec": 135.0,+ "n": 101,+ "p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|t2v|standard|241.0|M4 Max|48.0|any": {- "n": 54,+ "n": 53,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|standard|241.0|M4 Max|64.0|any": {- "n": 8,+ "n": 5,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|standard|241.0|M4 Pro|24.0|any": {@@ -12682,7 +10678,7 @@"p75_sec": 600.0},"ltx|t2v|standard|241.0|M4|16.0|any": {- "n": 50,+ "n": 37,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0@@ -12700,9 +10696,9 @@"p75_sec": 600.0},"ltx|t2v|standard|241.0|M5 Max|36.0|any": {- "n": 14,+ "n": 13,"p25_sec": 60.0,- "p50_sec": 75.0,+ "p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|standard|241.0|M5 Max|48.0|any": {@@ -12712,68 +10708,62 @@"p75_sec": 420.0},"ltx|t2v|standard|241.0|M5 Max|64.0|any": {- "n": 793,+ "n": 7,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 300.0+ "p75_sec": 330.0},"ltx|t2v|standard|241.0|M5 Pro|24.0|any": {- "n": 26,+ "n": 22,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|standard|241.0|M5 Pro|48.0|any": {- "n": 15,+ "n": 12,"p25_sec": 240.0,- "p50_sec": 300.0,- "p75_sec": 420.0+ "p50_sec": 270.0,+ "p75_sec": 300.0},"ltx|t2v|standard|241.0|M5 Pro|64.0|any": {- "n": 6,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|t2v|standard|241.0|M5 Ultra|96.0|any": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 465.0},"ltx|t2v|standard|241.0|M5|16.0|any": {- "n": 6,- "p25_sec": 465.0,+ "n": 5,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|standard|241.0|M5|24.0|any": {- "n": 50,+ "n": 49,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|standard|241.0|M5|32.0|any": {- "n": 11,- "p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },- "ltx|t2v|standard|241.0|M6|24.0|any": {- "n": 76,- "p25_sec": 300.0,+ "n": 6,+ "p25_sec": 255.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|t2v|standard|241.0|M6|32.0|any": {- "n": 12,+ "ltx|t2v|standard|241.0|M6|24.0|any": {+ "n": 65,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|t2v|standard|25.0|M1 Ultra|128.0|any": {- "n": 10,- "p25_sec": 45.0,+ "ltx|t2v|standard|241.0|M6|32.0|any": {+ "n": 3,+ "p25_sec": 240.0,+ "p50_sec": 240.0,+ "p75_sec": 270.0+ },+ "ltx|t2v|standard|25.0|M1 Ultra|128.0|any": {+ "n": 10,+ "p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0},@@ -12783,12 +10773,6 @@"p50_sec": 15.0,"p75_sec": 15.0},- "ltx|t2v|standard|25.0|M5 Pro|24.0|any": {- "n": 4,- "p25_sec": 15.0,- "p50_sec": 15.0,- "p75_sec": 15.0- },"ltx|t2v|standard|313.0|M4|16.0|any": {"n": 4,"p25_sec": 420.0,@@ -12807,12 +10791,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|t2v|standard|481.0|M4|16.0|any": {- "n": 3,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 1050.0- },"ltx|t2v|standard|481.0|M5 Max|48.0|any": {"n": 3,"p25_sec": 420.0,@@ -12897,12 +10875,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|standard|73.0|M4|16.0|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|standard|73.0|M4|32.0|any": {"n": 21,"p25_sec": 180.0,@@ -12933,12 +10905,6 @@"p50_sec": 120.0,"p75_sec": 150.0},- "ltx|t2v|standard|97.0|M4 Max|36.0|any": {- "n": 5,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|t2v|standard|97.0|M4 Max|48.0|any": {"n": 3,"p25_sec": 270.0,@@ -12970,14 +10936,8 @@},"chip": {"cells": {- "h3|a2v|draft_3s|121.0|M4 Max|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|a2v|draft_5s|120.0|M5 Max|best": {- "n": 12,+ "n": 8,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -12989,113 +10949,23 @@"p75_sec": 180.0},"h3|a2v|high_10s|134.0|M5 Max|best": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|a2v|high_10s|163.0|M5 Max|best": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1500.0- },- "h3|a2v|high_10s|168.0|M5 Max|best": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1500.0,- "p75_sec": 1800.0- },- "h3|a2v|high_10s|178.0|M5 Max|best": {"n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1350.0},- "h3|a2v|high_3s|72.0|M5 Max|best": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|a2v|high_5s|108.0|M5 Max|best": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"h3|a2v|high_5s|159.0|M5 Max|best": {"n": 4,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0},- "h3|a2v|high_5s|192.0|M5 Pro|fast": {- "n": 24,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|216.0|M5 Pro|fast": {- "n": 22,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|240.0|M5 Pro|fast": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|73.0|M5 Max|best": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|high_5s|74.0|M5 Max|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|standard_5s|120.0|M3 Ultra|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|extend|draft_5s|244.0|M3 Ultra|fast": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|extend|draft_5s|484.0|M5 Pro|best": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|extend|high_15s|722.0|M5 Pro|best": {- "n": 3,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },"h3|extend|standard_10s|495.0|M5 Max|fast": {"n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},- "h3|extend|standard_3s|160.0|M5 Pro|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|draft_10s_dense|243.0|M4 Max|fast": {"n": 10,"p25_sec": 600.0,@@ -13169,7 +11039,7 @@"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M4 Max|fast": {- "n": 50,+ "n": 40,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -13181,26 +11051,26 @@"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M5 Max|best": {- "n": 21,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "n": 3,+ "p25_sec": 210.0,+ "p50_sec": 240.0,+ "p75_sec": 270.0},"h3|i2v|draft_10s|243.0|M5 Max|fast": {- "n": 14,+ "n": 12,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 165.0+ "p75_sec": 120.0},"h3|i2v|draft_10s|243.0|M5 Pro|best": {- "n": 27,- "p25_sec": 510.0,+ "n": 25,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|M5 Pro|fast": {- "n": 31,- "p25_sec": 270.0,+ "n": 30,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -13235,25 +11105,25 @@"p75_sec": 2400.0},"h3|i2v|draft_15s|362.0|M4 Pro|fast": {- "n": 5,+ "n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1800.0+ "p75_sec": 1350.0},"h3|i2v|draft_15s|362.0|M5 Max|best": {- "n": 8,- "p25_sec": 390.0,- "p50_sec": 420.0,+ "n": 4,+ "p25_sec": 555.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_15s|362.0|M5 Max|fast": {- "n": 15,+ "n": 12,"p25_sec": 240.0,- "p50_sec": 300.0,+ "p50_sec": 240.0,"p75_sec": 1200.0},"h3|i2v|draft_15s|362.0|M5 Pro|fast": {- "n": 27,+ "n": 26,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -13265,16 +11135,10 @@"p75_sec": 420.0},"h3|i2v|draft_3s|73.0|M1 Max|fast": {- "n": 10,+ "n": 7,"p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 285.0- },- "h3|i2v|draft_3s|73.0|M1 Ultra|fast": {- "n": 55,- "p25_sec": 105.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 180.0,+ "p75_sec": 210.0},"h3|i2v|draft_3s|73.0|M3 Max|best": {"n": 6,@@ -13283,7 +11147,7 @@"p75_sec": 390.0},"h3|i2v|draft_3s|73.0|M3 Max|fast": {- "n": 17,+ "n": 16,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -13295,10 +11159,10 @@"p75_sec": 180.0},"h3|i2v|draft_3s|73.0|M3 Ultra|fast": {- "n": 10,+ "n": 9,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 82.5+ "p75_sec": 60.0},"h3|i2v|draft_3s|73.0|M4 Max|best": {"n": 19,@@ -13307,43 +11171,43 @@"p75_sec": 300.0},"h3|i2v|draft_3s|73.0|M4 Max|fast": {- "n": 28,+ "n": 27,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"h3|i2v|draft_3s|73.0|M4 Pro|best": {- "n": 7,- "p25_sec": 360.0,+ "n": 5,+ "p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 510.0+ "p75_sec": 600.0},"h3|i2v|draft_3s|73.0|M4 Pro|fast": {- "n": 14,+ "n": 12,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 225.0+ "p75_sec": 240.0},"h3|i2v|draft_3s|73.0|M5 Max|best": {- "n": 24,+ "n": 20,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 97.5},"h3|i2v|draft_3s|73.0|M5 Max|fast": {- "n": 8,+ "n": 7,"p25_sec": 45.0,- "p50_sec": 52.5,+ "p50_sec": 60.0,"p75_sec": 60.0},"h3|i2v|draft_3s|73.0|M5 Pro|best": {- "n": 17,+ "n": 5,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"h3|i2v|draft_3s|73.0|M5 Pro|fast": {- "n": 21,+ "n": 16,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -13367,23 +11231,17 @@"p75_sec": 900.0},"h3|i2v|draft_5s|124.0|M1 Ultra|fast": {- "n": 24,+ "n": 14,"p25_sec": 180.0,- "p50_sec": 180.0,+ "p50_sec": 270.0,"p75_sec": 300.0},"h3|i2v|draft_5s|124.0|M2 Max|fast": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 270.0,+ "n": 3,+ "p25_sec": 270.0,+ "p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|draft_5s|124.0|M2 Ultra|fast": {- "n": 7,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"h3|i2v|draft_5s|124.0|M3 Max|best": {"n": 8,"p25_sec": 600.0,@@ -13391,9 +11249,9 @@"p75_sec": 675.0},"h3|i2v|draft_5s|124.0|M3 Max|fast": {- "n": 7,+ "n": 6,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M3 Ultra|best": {@@ -13403,29 +11261,17 @@"p75_sec": 600.0},"h3|i2v|draft_5s|124.0|M3 Ultra|fast": {- "n": 40,+ "n": 39,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 180.0},- "h3|i2v|draft_5s|124.0|M4 Max|best": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|draft_5s|124.0|M4 Max|fast": {- "n": 32,- "p25_sec": 165.0,- "p50_sec": 240.0,+ "n": 25,+ "p25_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 300.0},- "h3|i2v|draft_5s|124.0|M4 Pro|best": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"h3|i2v|draft_5s|124.0|M4 Pro|fast": {"n": 6,"p25_sec": 300.0,@@ -13433,22 +11279,22 @@"p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M5 Max|best": {- "n": 18,+ "n": 11,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 150.0},"h3|i2v|draft_5s|124.0|M5 Max|fast": {- "n": 12,+ "n": 11,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"h3|i2v|draft_5s|124.0|M5 Pro|best": {- "n": 98,+ "n": 91,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 420.0},"h3|i2v|draft_5s|124.0|M5 Pro|fast": {"n": 38,@@ -13457,47 +11303,23 @@"p75_sec": 240.0},"h3|i2v|fast_hd_10s|243.0|M4 Max|fast": {- "n": 4,+ "n": 3,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 420.0},"h3|i2v|fast_hd_10s|243.0|M4 Pro|fast": {- "n": 91,+ "n": 27,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "h3|i2v|fast_hd_10s|243.0|M5 Max|fast": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "h3|i2v|fast_hd_15s|362.0|M4 Pro|fast": {- "n": 3,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1350.0- },"h3|i2v|fast_hd_3s|73.0|M4 Max|fast": {"n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 135.0},- "h3|i2v|fast_hd_5s|124.0|M4 Max|fast": {- "n": 7,- "p25_sec": 240.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|i2v|fast_hd_5s|124.0|M4 Pro|fast": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|i2v|high_10s_dense|243.0|M1 Ultra|best": {"n": 12,"p25_sec": 5400.0,@@ -13535,7 +11357,7 @@"p75_sec": 4500.0},"h3|i2v|high_10s|243.0|M1 Ultra|fast": {- "n": 11,+ "n": 8,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -13571,37 +11393,31 @@"p75_sec": 2400.0},"h3|i2v|high_10s|243.0|M4 Max|fast": {- "n": 164,+ "n": 146,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|high_10s|243.0|M5 Max|best": {- "n": 23,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1500.0+ "n": 10,+ "p25_sec": 900.0,+ "p50_sec": 1050.0,+ "p75_sec": 2100.0},"h3|i2v|high_10s|243.0|M5 Max|fast": {- "n": 43,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|i2v|high_10s|243.0|M5 Max|v13": {- "n": 22,+ "n": 28,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 675.0},"h3|i2v|high_10s|243.0|M5 Pro|best": {- "n": 36,+ "n": 35,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|high_10s|243.0|M5 Pro|fast": {- "n": 93,+ "n": 74,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -13625,7 +11441,7 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M4 Max|fast": {- "n": 1013,+ "n": 817,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -13643,17 +11459,11 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M5 Max|fast": {- "n": 23,- "p25_sec": 600.0,+ "n": 16,+ "p25_sec": 900.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|high_15s|362.0|M5 Max|v13": {- "n": 9,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|high_15s|362.0|M5 Pro|best": {"n": 5,"p25_sec": 1800.0,@@ -13661,10 +11471,10 @@"p75_sec": 2400.0},"h3|i2v|high_15s|362.0|M5 Pro|fast": {- "n": 18,+ "n": 17,"p25_sec": 900.0,- "p50_sec": 1050.0,- "p75_sec": 3150.0+ "p50_sec": 1200.0,+ "p75_sec": 3600.0},"h3|i2v|high_3s|73.0|M1 Ultra|best": {"n": 11,@@ -13679,13 +11489,13 @@"p75_sec": 420.0},"h3|i2v|high_3s|73.0|M4 Max|best": {- "n": 272,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "n": 8,+ "p25_sec": 555.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0},"h3|i2v|high_3s|73.0|M4 Max|fast": {- "n": 138,+ "n": 58,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -13697,8 +11507,8 @@"p75_sec": 600.0},"h3|i2v|high_3s|73.0|M5 Max|best": {- "n": 51,- "p25_sec": 300.0,+ "n": 34,+ "p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -13709,7 +11519,7 @@"p75_sec": 180.0},"h3|i2v|high_3s|73.0|M5 Pro|best": {- "n": 213,+ "n": 209,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -13751,7 +11561,7 @@"p75_sec": 1200.0},"h3|i2v|high_5s|124.0|M2 Ultra|fast": {- "n": 24,+ "n": 23,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -13769,25 +11579,25 @@"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M3 Ultra|best": {- "n": 73,+ "n": 68,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M3 Ultra|fast": {- "n": 85,+ "n": 75,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 360.0},"h3|i2v|high_5s|124.0|M4 Max|best": {- "n": 12,+ "n": 9,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1800.0},"h3|i2v|high_5s|124.0|M4 Max|fast": {- "n": 497,+ "n": 390,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -13799,41 +11609,29 @@"p75_sec": 900.0},"h3|i2v|high_5s|124.0|M5 Max|best": {- "n": 61,+ "n": 28,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"h3|i2v|high_5s|124.0|M5 Max|fast": {- "n": 216,+ "n": 148,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},- "h3|i2v|high_5s|124.0|M5 Max|v13": {- "n": 5,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"h3|i2v|high_5s|124.0|M5 Pro|best": {- "n": 285,+ "n": 283,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|high_5s|124.0|M5 Pro|fast": {- "n": 693,+ "n": 657,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "h3|i2v|high_5s|124.0|M5|fast": {- "n": 33,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|native_10s|243.0|M1 Ultra|best": {"n": 13,"p25_sec": 5400.0,@@ -13949,7 +11747,7 @@"p75_sec": 825.0},"h3|i2v|native_5s|124.0|M5 Pro|best": {- "n": 22,+ "n": 11,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -13967,7 +11765,7 @@"p75_sec": 1800.0},"h3|i2v|standard_10s_dense|243.0|M4 Max|best": {- "n": 26,+ "n": 12,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0@@ -14015,7 +11813,7 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M1 Ultra|fast": {- "n": 12,+ "n": 11,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -14039,10 +11837,10 @@"p75_sec": 420.0},"h3|i2v|standard_10s|243.0|M3 Ultra|best": {- "n": 6,+ "n": 3,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M3 Ultra|fast": {"n": 10,@@ -14051,44 +11849,44 @@"p75_sec": 600.0},"h3|i2v|standard_10s|243.0|M4 Max|best": {- "n": 55,+ "n": 51,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M4 Max|fast": {- "n": 199,+ "n": 171,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|standard_10s|243.0|M4 Pro|best": {- "n": 7,+ "n": 6,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|i2v|standard_10s|243.0|M4 Pro|fast": {- "n": 39,- "p25_sec": 900.0,- "p50_sec": 900.0,+ "n": 11,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|M5 Max|best": {- "n": 50,- "p25_sec": 300.0,- "p50_sec": 300.0,+ "n": 22,+ "p25_sec": 420.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"h3|i2v|standard_10s|243.0|M5 Max|fast": {- "n": 28,+ "n": 27,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"h3|i2v|standard_10s|243.0|M5 Pro|best": {- "n": 9,- "p25_sec": 900.0,+ "n": 8,+ "p25_sec": 825.0,"p50_sec": 900.0,"p75_sec": 900.0},@@ -14099,7 +11897,7 @@"p75_sec": 300.0},"h3|i2v|standard_15s|362.0|M1 Max|best": {- "n": 13,+ "n": 11,"p25_sec": 3600.0,"p50_sec": 3600.0,"p75_sec": 5400.0@@ -14141,19 +11939,19 @@"p75_sec": 4500.0},"h3|i2v|standard_15s|362.0|M5 Max|best": {- "n": 12,+ "n": 8,"p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "p50_sec": 900.0,+ "p75_sec": 975.0},"h3|i2v|standard_15s|362.0|M5 Max|fast": {- "n": 32,+ "n": 29,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"h3|i2v|standard_15s|362.0|M5 Pro|best": {- "n": 13,+ "n": 12,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -14177,10 +11975,10 @@"p75_sec": 555.0},"h3|i2v|standard_3s|73.0|M3 Max|best": {- "n": 4,- "p25_sec": 390.0,- "p50_sec": 510.0,- "p75_sec": 675.0+ "n": 3,+ "p25_sec": 450.0,+ "p50_sec": 600.0,+ "p75_sec": 750.0},"h3|i2v|standard_3s|73.0|M3 Max|fast": {"n": 10,@@ -14189,8 +11987,8 @@"p75_sec": 300.0},"h3|i2v|standard_3s|73.0|M4 Max|best": {- "n": 4,- "p25_sec": 390.0,+ "n": 3,+ "p25_sec": 360.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -14213,13 +12011,13 @@"p75_sec": 60.0},"h3|i2v|standard_3s|73.0|M5 Pro|best": {- "n": 16,+ "n": 11,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"h3|i2v|standard_3s|73.0|M5 Pro|fast": {- "n": 15,+ "n": 14,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -14231,10 +12029,10 @@"p75_sec": 1200.0},"h3|i2v|standard_5s|124.0|M1 Max|fast": {- "n": 24,+ "n": 23,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 510.0},"h3|i2v|standard_5s|124.0|M1 Ultra|best": {"n": 4,@@ -14249,8 +12047,8 @@"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|M2 Max|fast": {- "n": 4,- "p25_sec": 390.0,+ "n": 3,+ "p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -14267,10 +12065,10 @@"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|M3 Max|best": {- "n": 6,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 825.0+ "p75_sec": 900.0},"h3|i2v|standard_5s|124.0|M3 Max|fast": {"n": 33,@@ -14279,8 +12077,8 @@"p75_sec": 420.0},"h3|i2v|standard_5s|124.0|M3 Ultra|best": {- "n": 32,- "p25_sec": 390.0,+ "n": 29,+ "p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 900.0},@@ -14291,19 +12089,19 @@"p75_sec": 360.0},"h3|i2v|standard_5s|124.0|M4 Max|best": {- "n": 76,+ "n": 24,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"h3|i2v|standard_5s|124.0|M4 Max|fast": {- "n": 287,+ "n": 280,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},"h3|i2v|standard_5s|124.0|M4 Pro|best": {- "n": 13,+ "n": 3,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -14315,112 +12113,52 @@"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|M5 Max|best": {- "n": 131,+ "n": 128,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"h3|i2v|standard_5s|124.0|M5 Max|fast": {- "n": 11,+ "n": 7,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 105.0+ "p75_sec": 90.0},"h3|i2v|standard_5s|124.0|M5 Pro|best": {- "n": 23,+ "n": 12,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"h3|i2v|standard_5s|124.0|M5 Pro|fast": {- "n": 33,+ "n": 29,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},- "h3|keyframe|draft_10s|243.0|M5 Pro|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|keyframe|draft_3s|73.0|M4 Pro|fast": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "h3|keyframe|draft_5s|124.0|M5 Max|best": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|keyframe|draft_5s|124.0|M5 Pro|fast": {"n": 12,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "h3|keyframe|fast_hd_10s|243.0|M3 Ultra|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|fast_hd_10s|243.0|M5 Pro|fast": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|high_10s|243.0|M3 Max|fast": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|keyframe|high_15s|362.0|M4 Max|fast": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"h3|keyframe|high_3s|73.0|M5 Max|fast": {"n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "h3|keyframe|high_5s|124.0|M4 Max|fast": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|keyframe|high_5s|124.0|M5 Max|best": {- "n": 6,- "p25_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 900.0},"h3|keyframe|high_5s|124.0|M5 Max|fast": {- "n": 22,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|standard_10s|243.0|M4 Max|fast": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|keyframe|standard_3s|73.0|M5 Pro|best": {"n": 4,"p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0+ "p50_sec": 270.0,+ "p75_sec": 300.0},"h3|keyframe|standard_5s|124.0|M3 Ultra|best": {"n": 5,@@ -14428,24 +12166,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "h3|keyframe|standard_5s|124.0|M4 Max|fast": {- "n": 22,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },- "h3|keyframe|standard_5s|124.0|M5 Max|fast": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|keyframe|standard_5s|124.0|M5 Pro|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|keyframe|standard_5s|124.0|M5 Pro|fast": {"n": 4,"p25_sec": 225.0,@@ -14489,8 +12209,8 @@"p75_sec": 420.0},"h3|t2v|draft_10s|243.0|M2 Max|fast": {- "n": 11,- "p25_sec": 510.0,+ "n": 8,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -14519,7 +12239,7 @@"p75_sec": 300.0},"h3|t2v|draft_10s|243.0|M4 Pro|best": {- "n": 39,+ "n": 38,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -14531,21 +12251,21 @@"p75_sec": 600.0},"h3|t2v|draft_10s|243.0|M5 Max|best": {- "n": 6,+ "n": 5,"p25_sec": 240.0,- "p50_sec": 270.0,+ "p50_sec": 240.0,"p75_sec": 300.0},"h3|t2v|draft_10s|243.0|M5 Max|fast": {- "n": 27,- "p25_sec": 150.0,+ "n": 20,+ "p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"h3|t2v|draft_10s|243.0|M5 Pro|fast": {- "n": 5,+ "n": 4,"p25_sec": 120.0,- "p50_sec": 240.0,+ "p50_sec": 180.0,"p75_sec": 240.0},"h3|t2v|draft_15s|362.0|M1 Max|fast": {@@ -14561,10 +12281,10 @@"p75_sec": 600.0},"h3|t2v|draft_15s|362.0|M3 Ultra|fast": {- "n": 4,- "p25_sec": 825.0,- "p50_sec": 1050.0,- "p75_sec": 1500.0+ "n": 3,+ "p25_sec": 750.0,+ "p50_sec": 900.0,+ "p75_sec": 1050.0},"h3|t2v|draft_15s|362.0|M4 Max|fast": {"n": 4,@@ -14573,37 +12293,37 @@"p75_sec": 675.0},"h3|t2v|draft_15s|362.0|M4 Pro|best": {- "n": 10,+ "n": 7,"p25_sec": 2400.0,"p50_sec": 2400.0,- "p75_sec": 3600.0+ "p75_sec": 2400.0},"h3|t2v|draft_15s|362.0|M4 Pro|fast": {- "n": 18,+ "n": 17,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|t2v|draft_15s|362.0|M5 Max|best": {- "n": 7,+ "n": 6,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 510.0+ "p75_sec": 555.0},"h3|t2v|draft_15s|362.0|M5 Max|fast": {- "n": 14,- "p25_sec": 255.0,+ "n": 12,+ "p25_sec": 240.0,"p50_sec": 750.0,"p75_sec": 1200.0},"h3|t2v|draft_15s|362.0|M5 Pro|fast": {- "n": 22,+ "n": 21,"p25_sec": 180.0,"p50_sec": 420.0,"p75_sec": 600.0},"h3|t2v|draft_3s|73.0|M1 Max|best": {- "n": 13,+ "n": 12,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -14639,8 +12359,8 @@"p75_sec": 135.0},"h3|t2v|draft_3s|73.0|M2 Ultra|best": {- "n": 12,- "p25_sec": 180.0,+ "n": 11,+ "p25_sec": 210.0,"p50_sec": 240.0,"p75_sec": 600.0},@@ -14651,7 +12371,7 @@"p75_sec": 120.0},"h3|t2v|draft_3s|73.0|M3 Max|best": {- "n": 17,+ "n": 15,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -14663,13 +12383,13 @@"p75_sec": 165.0},"h3|t2v|draft_3s|73.0|M3 Ultra|best": {- "n": 40,+ "n": 34,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 135.0+ "p75_sec": 120.0},"h3|t2v|draft_3s|73.0|M3 Ultra|fast": {- "n": 32,+ "n": 30,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 60.0@@ -14681,44 +12401,44 @@"p75_sec": 300.0},"h3|t2v|draft_3s|73.0|M4 Max|fast": {- "n": 37,+ "n": 36,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 195.0},"h3|t2v|draft_3s|73.0|M4 Pro|best": {- "n": 10,+ "n": 8,"p25_sec": 300.0,- "p50_sec": 360.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"h3|t2v|draft_3s|73.0|M4 Pro|fast": {- "n": 83,+ "n": 79,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"h3|t2v|draft_3s|73.0|M5 Max|best": {- "n": 564,+ "n": 560,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"h3|t2v|draft_3s|73.0|M5 Max|fast": {- "n": 57,+ "n": 53,"p25_sec": 30.0,"p50_sec": 45.0,"p75_sec": 60.0},"h3|t2v|draft_3s|73.0|M5 Pro|best": {- "n": 18,+ "n": 16,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 240.0+ "p75_sec": 255.0},"h3|t2v|draft_3s|73.0|M5 Pro|fast": {- "n": 23,- "p25_sec": 52.5,+ "n": 21,+ "p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},@@ -14747,9 +12467,9 @@"p75_sec": 300.0},"h3|t2v|draft_5s|124.0|M2 Max|fast": {- "n": 20,+ "n": 14,"p25_sec": 240.0,- "p50_sec": 300.0,+ "p50_sec": 240.0,"p75_sec": 300.0},"h3|t2v|draft_5s|124.0|M2 Ultra|best": {@@ -14771,15 +12491,15 @@"p75_sec": 300.0},"h3|t2v|draft_5s|124.0|M3 Ultra|best": {- "n": 53,+ "n": 43,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"h3|t2v|draft_5s|124.0|M3 Ultra|fast": {- "n": 52,- "p25_sec": 90.0,- "p50_sec": 120.0,+ "n": 38,+ "p25_sec": 60.0,+ "p50_sec": 90.0,"p75_sec": 120.0},"h3|t2v|draft_5s|124.0|M4 Max|best": {@@ -14789,8 +12509,8 @@"p75_sec": 420.0},"h3|t2v|draft_5s|124.0|M4 Max|fast": {- "n": 41,- "p25_sec": 240.0,+ "n": 38,+ "p25_sec": 195.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -14801,7 +12521,7 @@"p75_sec": 600.0},"h3|t2v|draft_5s|124.0|M4 Pro|fast": {- "n": 36,+ "n": 34,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -14813,13 +12533,13 @@"p75_sec": 180.0},"h3|t2v|draft_5s|124.0|M5 Max|fast": {- "n": 100,+ "n": 72,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 120.0},"h3|t2v|draft_5s|124.0|M5 Pro|best": {- "n": 13,+ "n": 11,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -14830,54 +12550,12 @@"p50_sec": 75.0,"p75_sec": 90.0},- "h3|t2v|fast_hd_10s|243.0|M4 Pro|fast": {- "n": 9,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|t2v|fast_hd_10s|243.0|M5 Max|fast": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "h3|t2v|fast_hd_15s|362.0|M4 Pro|fast": {- "n": 25,- "p25_sec": 1200.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0- },- "h3|t2v|fast_hd_15s|362.0|M5 Max|fast": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },- "h3|t2v|fast_hd_15s|362.0|M5 Pro|fast": {- "n": 15,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"h3|t2v|fast_hd_3s|73.0|M5 Max|fast": {"n": 7,"p25_sec": 37.5,"p50_sec": 45.0,"p75_sec": 45.0},- "h3|t2v|fast_hd_5s|124.0|M4 Pro|fast": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|t2v|fast_hd_5s|124.0|M5 Max|fast": {- "n": 8,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"h3|t2v|high_10s_dense|243.0|M1 Ultra|best": {"n": 4,"p25_sec": 5400.0,@@ -14957,7 +12635,7 @@"p75_sec": 1200.0},"h3|t2v|high_10s|243.0|M5 Max|fast": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -14981,32 +12659,32 @@"p75_sec": 4050.0},"h3|t2v|high_15s|362.0|M4 Pro|best": {- "n": 6,+ "n": 4,"p25_sec": 5400.0,"p50_sec": 5400.0,"p75_sec": 5400.0},"h3|t2v|high_15s|362.0|M4 Pro|fast": {- "n": 10,+ "n": 9,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|high_15s|362.0|M5 Max|fast": {- "n": 18,+ "n": 12,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 825.0+ "p75_sec": 975.0},"h3|t2v|high_15s|362.0|M5 Pro|best": {- "n": 11,+ "n": 7,"p25_sec": 1800.0,- "p50_sec": 3600.0,+ "p50_sec": 1800.0,"p75_sec": 3600.0},"h3|t2v|high_15s|362.0|M5 Pro|fast": {- "n": 13,- "p25_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,"p50_sec": 900.0,"p75_sec": 900.0},@@ -15016,14 +12694,8 @@"p50_sec": 600.0,"p75_sec": 675.0},- "h3|t2v|high_3s|73.0|M3 Ultra|fast": {- "n": 3,- "p25_sec": 150.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"h3|t2v|high_3s|73.0|M4 Max|fast": {- "n": 32,+ "n": 27,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -15053,10 +12725,10 @@"p75_sec": 5400.0},"h3|t2v|high_5s|124.0|M1 Max|fast": {- "n": 7,+ "n": 6,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 1125.0},"h3|t2v|high_5s|124.0|M1 Ultra|best": {"n": 9,@@ -15071,7 +12743,7 @@"p75_sec": 3600.0},"h3|t2v|high_5s|124.0|M2 Max|fast": {- "n": 15,+ "n": 14,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -15089,16 +12761,16 @@"p75_sec": 1050.0},"h3|t2v|high_5s|124.0|M3 Ultra|best": {- "n": 4,- "p25_sec": 2250.0,+ "n": 3,+ "p25_sec": 2100.0,"p50_sec": 2400.0,- "p75_sec": 3150.0+ "p75_sec": 3900.0},"h3|t2v|high_5s|124.0|M3 Ultra|fast": {- "n": 8,+ "n": 7,"p25_sec": 300.0,- "p50_sec": 600.0,- "p75_sec": 975.0+ "p50_sec": 900.0,+ "p75_sec": 1050.0},"h3|t2v|high_5s|124.0|M4 Max|best": {"n": 8,@@ -15107,8 +12779,8 @@"p75_sec": 1800.0},"h3|t2v|high_5s|124.0|M4 Max|fast": {- "n": 50,- "p25_sec": 600.0,+ "n": 43,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},@@ -15119,21 +12791,21 @@"p75_sec": 600.0},"h3|t2v|high_5s|124.0|M5 Max|fast": {- "n": 27,+ "n": 23,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0},"h3|t2v|high_5s|124.0|M5 Pro|best": {- "n": 15,- "p25_sec": 1050.0,+ "n": 13,+ "p25_sec": 900.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|t2v|high_5s|124.0|M5 Pro|fast": {- "n": 13,- "p25_sec": 300.0,- "p50_sec": 300.0,+ "n": 12,+ "p25_sec": 285.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"h3|t2v|native_10s_dense|243.0|M4 Max|best": {@@ -15154,12 +12826,6 @@"p50_sec": 2400.0,"p75_sec": 2400.0},- "h3|t2v|native_15s|362.0|M3 Ultra|best": {- "n": 4,- "p25_sec": 5400.0,- "p50_sec": 5400.0,- "p75_sec": 5400.0- },"h3|t2v|native_15s|362.0|M4 Max|fast": {"n": 3,"p25_sec": 3600.0,@@ -15293,19 +12959,19 @@"p75_sec": 900.0},"h3|t2v|standard_10s|243.0|M4 Pro|best": {- "n": 25,+ "n": 24,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|standard_10s|243.0|M4 Pro|fast": {- "n": 11,- "p25_sec": 900.0,- "p50_sec": 900.0,+ "n": 7,+ "p25_sec": 1050.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"h3|t2v|standard_10s|243.0|M5 Max|best": {- "n": 12,+ "n": 11,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -15317,7 +12983,7 @@"p75_sec": 180.0},"h3|t2v|standard_10s|243.0|M5 Pro|fast": {- "n": 26,+ "n": 25,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -15334,12 +13000,6 @@"p50_sec": 3900.0,"p75_sec": 5400.0},- "h3|t2v|standard_15s|362.0|M3 Ultra|best": {- "n": 3,- "p25_sec": 1050.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0- },"h3|t2v|standard_15s|362.0|M4 Max|fast": {"n": 3,"p25_sec": 600.0,@@ -15347,16 +13007,16 @@"p75_sec": 900.0},"h3|t2v|standard_15s|362.0|M4 Pro|best": {- "n": 12,+ "n": 11,"p25_sec": 2400.0,"p50_sec": 3600.0,"p75_sec": 3600.0},"h3|t2v|standard_15s|362.0|M4 Pro|fast": {- "n": 10,+ "n": 7,"p25_sec": 1800.0,- "p50_sec": 2400.0,- "p75_sec": 4950.0+ "p50_sec": 1800.0,+ "p75_sec": 2400.0},"h3|t2v|standard_15s|362.0|M5 Max|best": {"n": 10,@@ -15365,16 +13025,16 @@"p75_sec": 900.0},"h3|t2v|standard_15s|362.0|M5 Max|fast": {- "n": 64,+ "n": 51,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"h3|t2v|standard_15s|362.0|M5 Pro|best": {- "n": 18,- "p25_sec": 900.0,- "p50_sec": 1050.0,- "p75_sec": 1200.0+ "n": 9,+ "p25_sec": 600.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0},"h3|t2v|standard_15s|362.0|M5 Pro|fast": {"n": 26,@@ -15401,10 +13061,10 @@"p75_sec": 465.0},"h3|t2v|standard_3s|73.0|M3 Max|best": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 900.0+ "n": 4,+ "p25_sec": 780.0,+ "p50_sec": 900.0,+ "p75_sec": 975.0},"h3|t2v|standard_3s|73.0|M3 Ultra|best": {"n": 4,@@ -15425,8 +13085,8 @@"p75_sec": 300.0},"h3|t2v|standard_3s|73.0|M4 Max|fast": {- "n": 17,- "p25_sec": 120.0,+ "n": 12,+ "p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},@@ -15503,10 +13163,10 @@"p75_sec": 420.0},"h3|t2v|standard_5s|124.0|M3 Max|best": {- "n": 21,+ "n": 20,"p25_sec": 1200.0,"p50_sec": 1800.0,- "p75_sec": 1800.0+ "p75_sec": 1950.0},"h3|t2v|standard_5s|124.0|M3 Max|fast": {"n": 4,@@ -15514,17 +13174,11 @@"p50_sec": 300.0,"p75_sec": 330.0},- "h3|t2v|standard_5s|124.0|M3 Max|turbo": {- "n": 6,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 555.0- },"h3|t2v|standard_5s|124.0|M3 Ultra|best": {- "n": 16,+ "n": 14,"p25_sec": 300.0,"p50_sec": 360.0,- "p75_sec": 465.0+ "p75_sec": 555.0},"h3|t2v|standard_5s|124.0|M3 Ultra|fast": {"n": 30,@@ -15545,10 +13199,10 @@"p75_sec": 420.0},"h3|t2v|standard_5s|124.0|M4 Pro|best": {- "n": 11,+ "n": 8,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1050.0+ "p75_sec": 1200.0},"h3|t2v|standard_5s|124.0|M4 Pro|fast": {"n": 8,@@ -15557,25 +13211,25 @@"p75_sec": 600.0},"h3|t2v|standard_5s|124.0|M5 Max|best": {- "n": 35,+ "n": 34,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},"h3|t2v|standard_5s|124.0|M5 Max|fast": {- "n": 19,+ "n": 13,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"h3|t2v|standard_5s|124.0|M5 Pro|best": {- "n": 9,+ "n": 7,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"h3|t2v|standard_5s|124.0|M5 Pro|fast": {- "n": 17,+ "n": 16,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -15592,17 +13246,11 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|balanced|105.0|M1 Max|any": {- "n": 15,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|balanced|105.0|M4 Pro|any": {- "n": 6,- "p25_sec": 420.0,+ "n": 4,+ "p25_sec": 390.0,"p50_sec": 420.0,- "p75_sec": 1005.0+ "p75_sec": 420.0},"ltx|a2v|balanced|105.0|M4|any": {"n": 3,@@ -15616,36 +13264,12 @@"p50_sec": 90.0,"p75_sec": 97.5},- "ltx|a2v|balanced|113.0|M4 Pro|any": {- "n": 8,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1350.0- },- "ltx|a2v|balanced|113.0|M4|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|a2v|balanced|113.0|M5 Max|any": {"n": 4,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|a2v|balanced|121.0|M1 Max|any": {- "n": 5,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|a2v|balanced|121.0|M3 Max|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|121.0|M4 Max|any": {"n": 11,"p25_sec": 300.0,@@ -15653,13 +13277,13 @@"p75_sec": 600.0},"ltx|a2v|balanced|121.0|M4 Pro|any": {- "n": 26,+ "n": 20,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 1050.0+ "p75_sec": 465.0},"ltx|a2v|balanced|121.0|M4|any": {- "n": 66,+ "n": 61,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -15670,29 +13294,17 @@"p50_sec": 90.0,"p75_sec": 105.0},- "ltx|a2v|balanced|121.0|M5 Pro|any": {- "n": 8,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 285.0- },- "ltx|a2v|balanced|129.0|M1 Max|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|a2v|balanced|129.0|M4 Pro|any": {- "n": 14,- "p25_sec": 600.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0+ "n": 6,+ "p25_sec": 420.0,+ "p50_sec": 510.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|129.0|M4|any": {- "n": 7,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 465.0},"ltx|a2v|balanced|129.0|M5 Max|any": {"n": 8,@@ -15701,16 +13313,16 @@"p75_sec": 120.0},"ltx|a2v|balanced|137.0|M4 Pro|any": {- "n": 16,+ "n": 8,"p25_sec": 420.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0+ "p50_sec": 420.0,+ "p75_sec": 465.0},"ltx|a2v|balanced|137.0|M4|any": {- "n": 8,+ "n": 4,"p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0+ "p50_sec": 510.0,+ "p75_sec": 675.0},"ltx|a2v|balanced|137.0|M5 Max|any": {"n": 12,@@ -15719,14 +13331,14 @@"p75_sec": 120.0},"ltx|a2v|balanced|145.0|M4 Pro|any": {- "n": 24,+ "n": 13,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 1800.0+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|145.0|M4|any": {- "n": 8,- "p25_sec": 420.0,+ "n": 6,+ "p25_sec": 465.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -15743,13 +13355,7 @@"p75_sec": 600.0},"ltx|a2v|balanced|153.0|M4 Pro|any": {- "n": 18,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1800.0- },- "ltx|a2v|balanced|153.0|M4|any": {- "n": 5,+ "n": 10,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -15761,31 +13367,25 @@"p75_sec": 120.0},"ltx|a2v|balanced|161.0|M4 Pro|any": {- "n": 14,+ "n": 7,"p25_sec": 600.0,- "p50_sec": 1200.0,- "p75_sec": 1800.0+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|161.0|M4|any": {- "n": 5,+ "n": 3,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|169.0|M1 Pro|any": {- "n": 10,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|a2v|balanced|169.0|M4 Pro|any": {- "n": 10,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 1800.0+ "p75_sec": 600.0},"ltx|a2v|balanced|169.0|M4|any": {- "n": 20,+ "n": 16,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -15797,14 +13397,8 @@"p75_sec": 120.0},"ltx|a2v|balanced|177.0|M4 Pro|any": {- "n": 20,- "p25_sec": 600.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|177.0|M4|any": {- "n": 3,- "p25_sec": 600.0,+ "n": 9,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -15815,15 +13409,15 @@"p75_sec": 135.0},"ltx|a2v|balanced|185.0|M4 Pro|any": {- "n": 8,- "p25_sec": 600.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0+ "n": 3,+ "p25_sec": 510.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|193.0|M4 Pro|any": {- "n": 10,+ "n": 8,"p25_sec": 600.0,- "p50_sec": 750.0,+ "p50_sec": 600.0,"p75_sec": 900.0},"ltx|a2v|balanced|193.0|M4|any": {@@ -15833,31 +13427,19 @@"p75_sec": 600.0},"ltx|a2v|balanced|201.0|M4 Pro|any": {- "n": 15,- "p25_sec": 600.0,- "p50_sec": 900.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|201.0|M4|any": {- "n": 3,+ "n": 10,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|a2v|balanced|209.0|M4 Pro|any": {- "n": 7,+ "n": 3,"p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|209.0|M4|any": {- "n": 5,- "p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|217.0|M4 Pro|any": {- "n": 50,+ "n": 46,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -15868,48 +13450,24 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|225.0|M4 Pro|any": {- "n": 5,- "p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|233.0|M4 Pro|any": {- "n": 5,- "p25_sec": 2400.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },"ltx|a2v|balanced|241.0|M4 Pro|any": {- "n": 33,+ "n": 30,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|M4|any": {- "n": 5,+ "n": 4,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|balanced|241.0|M5 Max|any": {- "n": 34,+ "n": 30,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|balanced|289.0|M5 Max|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|a2v|balanced|49.0|M4 Pro|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 390.0,- "p75_sec": 600.0- },"ltx|a2v|balanced|49.0|M4|any": {"n": 9,"p25_sec": 300.0,@@ -15917,10 +13475,10 @@"p75_sec": 300.0},"ltx|a2v|balanced|57.0|M4 Pro|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 3,+ "p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 600.0+ "p75_sec": 300.0},"ltx|a2v|balanced|57.0|M4|any": {"n": 4,@@ -15934,24 +13492,6 @@"p50_sec": 45.0,"p75_sec": 52.5},- "ltx|a2v|balanced|65.0|M1 Max|any": {- "n": 10,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|a2v|balanced|65.0|M4 Max|any": {- "n": 4,- "p25_sec": 555.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|a2v|balanced|65.0|M4 Pro|any": {- "n": 4,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|a2v|balanced|65.0|M4|any": {"n": 3,"p25_sec": 300.0,@@ -15964,20 +13504,14 @@"p50_sec": 45.0,"p75_sec": 52.5},- "ltx|a2v|balanced|73.0|M1 Max|any": {- "n": 6,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|73.0|M4 Pro|any": {- "n": 6,- "p25_sec": 450.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 3,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 750.0},"ltx|a2v|balanced|73.0|M4|any": {- "n": 46,+ "n": 45,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -15989,44 +13523,26 @@"p75_sec": 240.0},"ltx|a2v|balanced|73.0|M5 Pro|any": {- "n": 9,- "p25_sec": 90.0,+ "n": 8,+ "p25_sec": 112.5,"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|a2v|balanced|81.0|M1 Max|any": {- "n": 10,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|balanced|81.0|M4 Pro|any": {- "n": 9,- "p25_sec": 420.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 4,+ "p25_sec": 300.0,+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|81.0|M4|any": {- "n": 13,+ "n": 8,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|balanced|89.0|M1 Max|any": {- "n": 6,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },- "ltx|a2v|balanced|89.0|M4 Pro|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 750.0,- "p75_sec": 1200.0- },"ltx|a2v|balanced|89.0|M4|any": {- "n": 10,- "p25_sec": 300.0,+ "n": 8,+ "p25_sec": 390.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -16036,22 +13552,16 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|a2v|balanced|97.0|M1 Max|any": {- "n": 8,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|balanced|97.0|M4 Pro|any": {- "n": 21,+ "n": 15,"p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 1200.0+ "p50_sec": 300.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|97.0|M4|any": {- "n": 11,+ "n": 8,"p25_sec": 420.0,- "p50_sec": 420.0,+ "p50_sec": 510.0,"p75_sec": 600.0},"ltx|a2v|balanced|97.0|M5 Max|any": {@@ -16073,16 +13583,10 @@"p75_sec": 60.0},"ltx|a2v|high|113.0|M5 Max|any": {- "n": 8,- "p25_sec": 240.0,- "p50_sec": 270.0,- "p75_sec": 300.0- },- "ltx|a2v|high|121.0|M1 Max|any": {- "n": 7,- "p25_sec": 150.0,+ "n": 6,+ "p25_sec": 255.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|a2v|high|121.0|M1 Pro|any": {"n": 3,@@ -16102,18 +13606,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|high|121.0|M2 Pro|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },- "ltx|a2v|high|121.0|M3 Ultra|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 120.0- },"ltx|a2v|high|121.0|M4 Max|any": {"n": 16,"p25_sec": 420.0,@@ -16121,7 +13613,7 @@"p75_sec": 900.0},"ltx|a2v|high|121.0|M4 Pro|any": {- "n": 10,+ "n": 9,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 600.0@@ -16138,12 +13630,6 @@"p50_sec": 510.0,"p75_sec": 600.0},- "ltx|a2v|high|121.0|M6|any": {- "n": 9,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|high|129.0|M5 Max|any": {"n": 4,"p25_sec": 120.0,@@ -16174,17 +13660,11 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|high|145.0|M5 Max|any": {- "n": 4,- "p25_sec": 247.5,- "p50_sec": 360.0,- "p75_sec": 420.0- },"ltx|a2v|high|145.0|M5 Pro|any": {- "n": 11,- "p25_sec": 195.0,- "p50_sec": 300.0,- "p75_sec": 510.0+ "n": 6,+ "p25_sec": 90.0,+ "p50_sec": 345.0,+ "p75_sec": 600.0},"ltx|a2v|high|153.0|M5 Pro|any": {"n": 4,@@ -16193,9 +13673,9 @@"p75_sec": 90.0},"ltx|a2v|high|169.0|M1 Max|any": {- "n": 6,- "p25_sec": 750.0,- "p50_sec": 1500.0,+ "n": 5,+ "p25_sec": 1200.0,+ "p50_sec": 1800.0,"p75_sec": 1800.0},"ltx|a2v|high|169.0|M1 Pro|any": {@@ -16235,10 +13715,10 @@"p75_sec": 1200.0},"ltx|a2v|high|169.0|M5 Max|any": {- "n": 9,+ "n": 6,"p25_sec": 120.0,- "p50_sec": 300.0,- "p75_sec": 600.0+ "p50_sec": 120.0,+ "p75_sec": 255.0},"ltx|a2v|high|169.0|M5 Pro|any": {"n": 13,@@ -16253,7 +13733,7 @@"p75_sec": 900.0},"ltx|a2v|high|185.0|M5 Max|any": {- "n": 5,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -16271,7 +13751,7 @@"p75_sec": 1650.0},"ltx|a2v|high|193.0|M5 Pro|any": {- "n": 84,+ "n": 64,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -16282,12 +13762,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|a2v|high|209.0|M5 Max|any": {- "n": 4,- "p25_sec": 555.0,- "p50_sec": 600.0,- "p75_sec": 675.0- },"ltx|a2v|high|217.0|M1 Pro|any": {"n": 31,"p25_sec": 510.0,@@ -16300,14 +13774,8 @@"p50_sec": 600.0,"p75_sec": 900.0},- "ltx|a2v|high|217.0|M5 Max|any": {- "n": 7,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|a2v|high|217.0|M5 Pro|any": {- "n": 14,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -16318,17 +13786,11 @@"p50_sec": 750.0,"p75_sec": 900.0},- "ltx|a2v|high|241.0|M1 Max|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 1410.0- },"ltx|a2v|high|241.0|M1 Pro|any": {- "n": 31,- "p25_sec": 600.0,+ "n": 8,+ "p25_sec": 555.0,"p50_sec": 600.0,- "p75_sec": 750.0+ "p75_sec": 600.0},"ltx|a2v|high|241.0|M1 Ultra|any": {"n": 22,@@ -16342,17 +13804,11 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|241.0|M2|any": {- "n": 3,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1050.0- },"ltx|a2v|high|241.0|M4 Max|any": {- "n": 37,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "n": 14,+ "p25_sec": 300.0,+ "p50_sec": 810.0,+ "p75_sec": 1200.0},"ltx|a2v|high|241.0|M4 Pro|any": {"n": 31,@@ -16367,46 +13823,34 @@"p75_sec": 1200.0},"ltx|a2v|high|241.0|M5 Max|any": {- "n": 9,- "p25_sec": 420.0,- "p50_sec": 600.0,+ "n": 5,+ "p25_sec": 180.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|a2v|high|241.0|M5 Pro|any": {- "n": 17,- "p25_sec": 300.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "n": 5,+ "p25_sec": 60.0,+ "p50_sec": 300.0,+ "p75_sec": 300.0},"ltx|a2v|high|241.0|M5|any": {- "n": 11,+ "n": 9,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|249.0|M5 Max|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 900.0- },"ltx|a2v|high|265.0|M1 Ultra|any": {"n": 4,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 675.0},- "ltx|a2v|high|289.0|M5 Max|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"ltx|a2v|high|289.0|M5 Pro|any": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 3,+ "p25_sec": 330.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|a2v|high|361.0|M4 Pro|any": {"n": 3,@@ -16439,7 +13883,7 @@"p75_sec": 2400.0},"ltx|a2v|high|433.0|M4 Pro|any": {- "n": 84,+ "n": 79,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1800.0@@ -16505,58 +13949,40 @@"p75_sec": 5400.0},"ltx|a2v|high|73.0|M1 Max|any": {- "n": 7,+ "n": 6,"p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1500.0- },- "ltx|a2v|high|73.0|M1 Pro|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 240.0- },- "ltx|a2v|high|73.0|M2 Pro|any": {- "n": 7,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 1650.0},"ltx|a2v|high|73.0|M2|any": {- "n": 9,- "p25_sec": 420.0,+ "n": 7,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|73.0|M3 Max|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|a2v|high|73.0|M3 Ultra|any": {- "n": 10,- "p25_sec": 97.5,- "p50_sec": 120.0,- "p75_sec": 300.0+ "n": 4,+ "p25_sec": 300.0,+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|a2v|high|73.0|M4 Max|any": {- "n": 5,- "p25_sec": 300.0,+ "n": 3,+ "p25_sec": 450.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|a2v|high|73.0|M4 Pro|any": {- "n": 10,- "p25_sec": 180.0,- "p50_sec": 390.0,+ "n": 7,+ "p25_sec": 390.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|high|73.0|M4|any": {- "n": 6,- "p25_sec": 255.0,+ "n": 5,+ "p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 390.0+ "p75_sec": 300.0},"ltx|a2v|high|73.0|M5 Max|any": {"n": 8,@@ -16570,12 +13996,6 @@"p50_sec": 105.0,"p75_sec": 120.0},- "ltx|a2v|high|81.0|M3 Ultra|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 600.0- },"ltx|a2v|high|81.0|M4 Max|any": {"n": 6,"p25_sec": 120.0,@@ -16595,9 +14015,9 @@"p75_sec": 2400.0},"ltx|a2v|high|97.0|M1 Max|any": {- "n": 5,- "p25_sec": 600.0,- "p50_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,+ "p50_sec": 1350.0,"p75_sec": 1800.0},"ltx|a2v|high|97.0|M4 Pro|any": {@@ -16618,45 +14038,21 @@"p50_sec": 2400.0,"p75_sec": 2400.0},- "ltx|a2v|quick|241.0|M4 Max|any": {- "n": 7,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|a2v|quick|241.0|M4 Pro|any": {"n": 7,"p25_sec": 750.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|a2v|quick|241.0|M4|any": {- "n": 12,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },- "ltx|a2v|quick|241.0|M5 Max|any": {- "n": 3,- "p25_sec": 750.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|a2v|quick|241.0|M5 Pro|any": {- "n": 31,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|105.0|M4 Max|any": {- "n": 12,+ "n": 7,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|a2v|standard|105.0|M4 Pro|any": {- "n": 7,- "p25_sec": 510.0,+ "n": 6,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -16666,30 +14062,12 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|a2v|standard|113.0|M4 Max|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|121.0|M4 Max|any": {- "n": 21,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|121.0|M5 Max|any": {"n": 17,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|standard|129.0|M4 Max|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|129.0|M4 Pro|any": {"n": 4,"p25_sec": 600.0,@@ -16702,17 +14080,11 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|a2v|standard|137.0|M4 Max|any": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|137.0|M4 Pro|any": {- "n": 4,- "p25_sec": 495.0,+ "n": 3,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 1200.0},"ltx|a2v|standard|137.0|M5 Max|any": {"n": 7,@@ -16738,12 +14110,6 @@"p50_sec": 600.0,"p75_sec": 675.0},- "ltx|a2v|standard|161.0|M4 Max|any": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|161.0|M4 Pro|any": {"n": 8,"p25_sec": 600.0,@@ -16762,24 +14128,12 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|a2v|standard|177.0|M4 Max|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|a2v|standard|177.0|M4 Pro|any": {"n": 6,"p25_sec": 975.0,"p50_sec": 1800.0,"p75_sec": 2400.0},- "ltx|a2v|standard|185.0|M4 Max|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 210.0- },"ltx|a2v|standard|193.0|M4 Pro|any": {"n": 11,"p25_sec": 900.0,@@ -16787,9 +14141,9 @@"p75_sec": 2400.0},"ltx|a2v|standard|241.0|M4 Max|any": {- "n": 16,- "p25_sec": 600.0,- "p50_sec": 600.0,+ "n": 6,+ "p25_sec": 900.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|a2v|standard|241.0|M4 Pro|any": {@@ -16804,41 +14158,11 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|standard|241.0|M5 Pro|any": {- "n": 8,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|a2v|standard|41.0|M4 Pro|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|a2v|standard|49.0|M4 Pro|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|57.0|M4 Max|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|a2v|standard|73.0|M4 Max|any": {- "n": 12,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|a2v|standard|73.0|M4 Pro|any": {- "n": 9,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 420.0+ "n": 4,+ "p25_sec": 420.0,+ "p50_sec": 510.0,+ "p75_sec": 600.0},"ltx|a2v|standard|73.0|M5 Max|any": {"n": 32,@@ -16846,27 +14170,9 @@"p50_sec": 105.0,"p75_sec": 180.0},- "ltx|a2v|standard|81.0|M4 Max|any": {- "n": 11,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|89.0|M4 Max|any": {- "n": 4,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|97.0|M4 Max|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|a2v|standard|97.0|M4 Pro|any": {- "n": 28,- "p25_sec": 555.0,+ "n": 24,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -16877,10 +14183,10 @@"p75_sec": 300.0},"ltx|extend|balanced|121.0|M1 Max|any": {- "n": 6,+ "n": 5,"p25_sec": 1200.0,- "p50_sec": 1800.0,- "p75_sec": 4650.0+ "p50_sec": 1200.0,+ "p75_sec": 2400.0},"ltx|extend|balanced|121.0|M2 Max|any": {"n": 3,@@ -16889,8 +14195,8 @@"p75_sec": 2100.0},"ltx|extend|balanced|121.0|M3 Ultra|any": {- "n": 13,- "p25_sec": 600.0,+ "n": 9,+ "p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 1200.0},@@ -16907,9 +14213,9 @@"p75_sec": 1200.0},"ltx|extend|balanced|121.0|M5 Pro|any": {- "n": 10,- "p25_sec": 420.0,- "p50_sec": 600.0,+ "n": 4,+ "p25_sec": 1050.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|extend|balanced|241.0|M1 Max|any": {@@ -16925,10 +14231,10 @@"p75_sec": 5400.0},"ltx|extend|balanced|241.0|M5 Max|any": {- "n": 12,- "p25_sec": 825.0,+ "n": 3,+ "p25_sec": 1050.0,"p50_sec": 1200.0,- "p75_sec": 1350.0+ "p75_sec": 1500.0},"ltx|extend|high|121.0|M5 Max|any": {"n": 3,@@ -16978,12 +14284,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|i2v|balanced|113.0|M1 Max|any": {- "n": 8,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|i2v|balanced|113.0|M2 Max|any": {"n": 3,"p25_sec": 420.0,@@ -17003,37 +14303,37 @@"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M1 Max|any": {- "n": 481,+ "n": 361,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M1 Pro|any": {- "n": 386,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "n": 64,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 330.0},"ltx|i2v|balanced|121.0|M1 Ultra|any": {- "n": 20,+ "n": 18,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 270.0},"ltx|i2v|balanced|121.0|M1|any": {- "n": 51,+ "n": 35,"p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "p50_sec": 900.0,+ "p75_sec": 1050.0},"ltx|i2v|balanced|121.0|M2 Max|any": {- "n": 357,+ "n": 327,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|121.0|M2 Pro|any": {- "n": 22,+ "n": 16,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -17045,25 +14345,25 @@"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M2|any": {- "n": 19,+ "n": 16,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|balanced|121.0|M3 Max|any": {- "n": 446,+ "n": 442,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M3 Pro|any": {- "n": 56,+ "n": 53,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"ltx|i2v|balanced|121.0|M3 Ultra|any": {- "n": 228,+ "n": 199,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -17075,46 +14375,46 @@"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M4 Max|any": {- "n": 1161,- "p25_sec": 90.0,+ "n": 738,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M4 Pro|any": {- "n": 388,+ "n": 360,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|121.0|M4|any": {- "n": 301,+ "n": 235,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|121.0|M5 Max|any": {- "n": 280,+ "n": 210,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|i2v|balanced|121.0|M5 Pro|any": {- "n": 515,+ "n": 435,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|M5|any": {- "n": 151,+ "n": 91,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 240.0+ "p75_sec": 270.0},"ltx|i2v|balanced|121.0|M6|any": {- "n": 40,+ "n": 12,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 180.0},"ltx|i2v|balanced|129.0|M5 Max|any": {"n": 6,@@ -17147,10 +14447,10 @@"p75_sec": 180.0},"ltx|i2v|balanced|145.0|M1 Max|any": {- "n": 12,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "n": 3,+ "p25_sec": 330.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|i2v|balanced|145.0|M3 Max|any": {"n": 131,@@ -17170,14 +14470,8 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|balanced|145.0|M4|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|i2v|balanced|145.0|M5 Pro|any": {- "n": 102,+ "n": 99,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -17201,25 +14495,19 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M1 Max|any": {- "n": 56,+ "n": 42,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M1 Pro|any": {- "n": 116,- "p25_sec": 420.0,- "p50_sec": 600.0,+ "n": 18,+ "p25_sec": 330.0,+ "p50_sec": 420.0,"p75_sec": 600.0},- "ltx|i2v|balanced|169.0|M1|any": {- "n": 7,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1200.0- },"ltx|i2v|balanced|169.0|M2 Max|any": {- "n": 24,+ "n": 23,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -17231,7 +14519,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|169.0|M2 Ultra|any": {- "n": 120,+ "n": 119,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -17243,13 +14531,13 @@"p75_sec": 1200.0},"ltx|i2v|balanced|169.0|M3 Max|any": {- "n": 90,+ "n": 86,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M3 Pro|any": {- "n": 6,+ "n": 5,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -17261,40 +14549,40 @@"p75_sec": 900.0},"ltx|i2v|balanced|169.0|M4 Max|any": {- "n": 216,+ "n": 213,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|169.0|M4 Pro|any": {- "n": 132,- "p25_sec": 300.0,+ "n": 93,+ "p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|169.0|M4|any": {- "n": 120,+ "n": 118,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|169.0|M5 Max|any": {- "n": 102,+ "n": 61,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|balanced|169.0|M5 Pro|any": {- "n": 121,+ "n": 110,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|169.0|M5|any": {- "n": 5,- "p25_sec": 240.0,+ "n": 4,+ "p25_sec": 270.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 330.0},"ltx|i2v|balanced|177.0|M4 Pro|any": {"n": 11,@@ -17339,7 +14627,7 @@"p75_sec": 120.0},"ltx|i2v|balanced|193.0|M4 Max|any": {- "n": 610,+ "n": 20,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -17356,12 +14644,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|balanced|193.0|M5 Pro|any": {- "n": 7,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },"ltx|i2v|balanced|201.0|M4 Pro|any": {"n": 16,"p25_sec": 600.0,@@ -17387,64 +14669,64 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M1 Max|any": {- "n": 183,+ "n": 170,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M1 Pro|any": {- "n": 90,+ "n": 81,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M1 Ultra|any": {- "n": 65,+ "n": 64,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|241.0|M1|any": {- "n": 30,+ "n": 3,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M2 Max|any": {- "n": 127,+ "n": 118,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M2 Pro|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 1005.0+ "p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M2 Ultra|any": {- "n": 43,- "p25_sec": 240.0,+ "n": 27,+ "p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|balanced|241.0|M2|any": {- "n": 28,+ "n": 20,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 2400.0},"ltx|i2v|balanced|241.0|M3 Max|any": {- "n": 55,+ "n": 54,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M3 Pro|any": {- "n": 20,+ "n": 18,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 465.0+ "p75_sec": 555.0},"ltx|i2v|balanced|241.0|M3 Ultra|any": {"n": 83,@@ -17459,71 +14741,53 @@"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M4 Max|any": {- "n": 191,+ "n": 174,"p25_sec": 180.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|241.0|M4 Pro|any": {- "n": 859,+ "n": 780,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|balanced|241.0|M4|any": {- "n": 248,+ "n": 174,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 1200.0},"ltx|i2v|balanced|241.0|M5 Max|any": {- "n": 1050,- "p25_sec": 120.0,+ "n": 654,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|balanced|241.0|M5 Pro|any": {- "n": 717,+ "n": 540,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|balanced|241.0|M5 Ultra|any": {- "n": 7,- "p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|balanced|241.0|M5|any": {- "n": 81,+ "n": 71,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 900.0+ "p75_sec": 750.0},"ltx|i2v|balanced|241.0|M6|any": {- "n": 9,+ "n": 3,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|249.0|M4 Pro|any": {- "n": 59,+ "n": 19,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|25.0|M1 Max|any": {- "n": 9,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|i2v|balanced|25.0|M4|any": {- "n": 4,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|balanced|25.0|M5|any": {"n": 3,"p25_sec": 45.0,@@ -17567,7 +14831,7 @@"p75_sec": 600.0},"ltx|i2v|balanced|361.0|M2 Max|any": {- "n": 9,+ "n": 8,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -17585,20 +14849,20 @@"p75_sec": 420.0},"ltx|i2v|balanced|361.0|M4 Pro|any": {- "n": 31,+ "n": 15,"p25_sec": 420.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|i2v|balanced|361.0|M5 Max|any": {- "n": 91,+ "n": 83,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|361.0|M5 Pro|any": {- "n": 5,- "p25_sec": 420.0,+ "n": 4,+ "p25_sec": 375.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -17608,44 +14872,26 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|balanced|41.0|M1 Max|any": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 165.0- },"ltx|i2v|balanced|433.0|M2 Ultra|any": {"n": 18,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|457.0|M5 Pro|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1500.0- },"ltx|i2v|balanced|481.0|M1 Max|any": {- "n": 8,+ "n": 7,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 675.0+ "p75_sec": 300.0},"ltx|i2v|balanced|481.0|M4 Max|any": {- "n": 498,+ "n": 50,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|i2v|balanced|481.0|M5 Max|any": {- "n": 5,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"ltx|i2v|balanced|481.0|M5 Pro|any": {- "n": 97,+ "n": 86,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -17657,9 +14903,9 @@"p75_sec": 330.0},"ltx|i2v|balanced|49.0|M1 Max|any": {- "n": 27,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 5,+ "p25_sec": 120.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|balanced|49.0|M1 Pro|any": {@@ -17693,28 +14939,22 @@"p75_sec": 142.5},"ltx|i2v|balanced|49.0|M5 Pro|any": {- "n": 5,+ "n": 4,"p25_sec": 45.0,"p50_sec": 45.0,- "p75_sec": 60.0- },- "ltx|i2v|balanced|49.0|M5 Ultra|any": {- "n": 3,- "p25_sec": 7.5,- "p50_sec": 15.0,- "p75_sec": 15.0+ "p75_sec": 48.8},"ltx|i2v|balanced|57.0|M1 Max|any": {- "n": 10,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 165.0+ "n": 3,+ "p25_sec": 150.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0},"ltx|i2v|balanced|65.0|M1 Max|any": {- "n": 23,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "n": 4,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0},"ltx|i2v|balanced|65.0|M2 Max|any": {"n": 9,@@ -17741,7 +14981,7 @@"p75_sec": 1800.0},"ltx|i2v|balanced|73.0|M1 Max|any": {- "n": 34,+ "n": 24,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -17752,29 +14992,17 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|73.0|M1|any": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|balanced|73.0|M2 Max|any": {- "n": 27,+ "n": 24,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|balanced|73.0|M2 Ultra|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 90.0- },"ltx|i2v|balanced|73.0|M2|any": {- "n": 4,- "p25_sec": 112.5,+ "n": 3,+ "p25_sec": 105.0,"p50_sec": 120.0,- "p75_sec": 165.0+ "p75_sec": 120.0},"ltx|i2v|balanced|73.0|M3 Max|any": {"n": 23,@@ -17789,7 +15017,7 @@"p75_sec": 300.0},"ltx|i2v|balanced|73.0|M3 Ultra|any": {- "n": 12,+ "n": 10,"p25_sec": 45.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -17801,46 +15029,46 @@"p75_sec": 750.0},"ltx|i2v|balanced|73.0|M4 Max|any": {- "n": 423,+ "n": 419,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|balanced|73.0|M4 Pro|any": {- "n": 42,+ "n": 40,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|balanced|73.0|M4|any": {- "n": 37,+ "n": 11,"p25_sec": 240.0,- "p50_sec": 300.0,- "p75_sec": 420.0+ "p50_sec": 240.0,+ "p75_sec": 300.0},"ltx|i2v|balanced|73.0|M5 Max|any": {- "n": 24,+ "n": 16,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0},"ltx|i2v|balanced|73.0|M5 Pro|any": {- "n": 59,+ "n": 52,"p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 90.0+ "p50_sec": 75.0,+ "p75_sec": 120.0},"ltx|i2v|balanced|73.0|M5|any": {- "n": 22,+ "n": 3,"p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 90.0,+ "p75_sec": 90.0},"ltx|i2v|balanced|81.0|M1 Max|any": {- "n": 31,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 180.0+ "n": 6,+ "p25_sec": 240.0,+ "p50_sec": 240.0,+ "p75_sec": 285.0},"ltx|i2v|balanced|81.0|M4 Max|any": {"n": 26,@@ -17872,14 +15100,8 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|i2v|balanced|97.0|M1 Max|any": {- "n": 22,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|balanced|97.0|M2 Max|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -17891,7 +15113,7 @@"p75_sec": 270.0},"ltx|i2v|balanced|97.0|M4 Max|any": {- "n": 44,+ "n": 39,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -17914,24 +15136,12 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|i2v|draft|121.0|M2 Max|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 390.0- },"ltx|i2v|draft|121.0|M5 Pro|any": {"n": 3,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|high_720p|121.0|M2 Max|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },"ltx|i2v|high_720p|121.0|M3 Ultra|any": {"n": 5,"p25_sec": 300.0,@@ -17939,23 +15149,17 @@"p75_sec": 300.0},"ltx|i2v|high_720p|121.0|M4 Max|any": {- "n": 20,- "p25_sec": 600.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 10,+ "p25_sec": 465.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|i2v|high_720p|121.0|M5 Max|any": {- "n": 29,+ "n": 3,"p25_sec": 300.0,- "p50_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|high_720p|169.0|M2 Max|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|high_720p|193.0|M1 Max|any": {"n": 3,"p25_sec": 1800.0,@@ -17969,41 +15173,11 @@"p75_sec": 2400.0},"ltx|i2v|high_720p|241.0|M2 Max|any": {- "n": 22,+ "n": 18,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|i2v|high_720p|241.0|M4 Max|any": {- "n": 8,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 1275.0- },- "ltx|i2v|high_720p|241.0|M5 Max|any": {- "n": 23,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "ltx|i2v|high_720p|73.0|M2 Max|any": {- "n": 14,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "ltx|i2v|high_720p|73.0|M4 Max|any": {- "n": 22,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|i2v|high_720p|97.0|M4 Max|any": {- "n": 37,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0- },"ltx|i2v|high|113.0|M5 Max|any": {"n": 35,"p25_sec": 180.0,@@ -18029,34 +15203,34 @@"p75_sec": 240.0},"ltx|i2v|high|121.0|M3 Max|any": {- "n": 22,+ "n": 21,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|high|121.0|M3 Ultra|any": {- "n": 33,+ "n": 16,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "p50_sec": 210.0,+ "p75_sec": 255.0},"ltx|i2v|high|121.0|M4 Max|any": {- "n": 106,+ "n": 98,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|high|121.0|M4 Pro|any": {- "n": 62,+ "n": 57,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|high|121.0|M5 Max|any": {- "n": 87,+ "n": 31,"p25_sec": 120.0,- "p50_sec": 240.0,- "p75_sec": 420.0+ "p50_sec": 120.0,+ "p75_sec": 210.0},"ltx|i2v|high|121.0|M5 Pro|any": {"n": 193,@@ -18064,12 +15238,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|high|145.0|M4 Max|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|i2v|high|145.0|M5 Pro|any": {"n": 76,"p25_sec": 240.0,@@ -18101,13 +15269,13 @@"p75_sec": 900.0},"ltx|i2v|high|169.0|M5 Max|any": {- "n": 11,+ "n": 10,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 330.0+ "p75_sec": 375.0},"ltx|i2v|high|241.0|M1 Max|any": {- "n": 38,+ "n": 35,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -18125,7 +15293,7 @@"p75_sec": 900.0},"ltx|i2v|high|241.0|M2 Ultra|any": {- "n": 100,+ "n": 98,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -18149,21 +15317,21 @@"p75_sec": 900.0},"ltx|i2v|high|241.0|M4 Pro|any": {- "n": 22,+ "n": 17,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|i2v|high|241.0|M5 Max|any": {- "n": 133,- "p25_sec": 240.0,+ "n": 43,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|high|241.0|M5 Pro|any": {- "n": 48,+ "n": 10,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|high|289.0|M2 Ultra|any": {@@ -18185,7 +15353,7 @@"p75_sec": 1200.0},"ltx|i2v|high|361.0|M5 Max|any": {- "n": 22,+ "n": 20,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -18221,16 +15389,16 @@"p75_sec": 120.0},"ltx|i2v|high|73.0|M2 Ultra|any": {- "n": 7,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|high|73.0|M4 Max|any": {- "n": 25,+ "n": 18,"p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "p50_sec": 180.0,+ "p75_sec": 240.0},"ltx|i2v|high|73.0|M4 Pro|any": {"n": 7,@@ -18239,10 +15407,10 @@"p75_sec": 420.0},"ltx|i2v|high|73.0|M5 Max|any": {- "n": 30,+ "n": 21,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 60.0},"ltx|i2v|high|73.0|M5 Pro|any": {"n": 78,@@ -18250,12 +15418,6 @@"p50_sec": 120.0,"p75_sec": 180.0},- "ltx|i2v|high|97.0|M4 Max|any": {- "n": 7,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },"ltx|i2v|high|97.0|M4 Pro|any": {"n": 3,"p25_sec": 510.0,@@ -18263,7 +15425,7 @@"p75_sec": 600.0},"ltx|i2v|high|97.0|M5 Max|any": {- "n": 11,+ "n": 9,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0@@ -18274,12 +15436,6 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|i2v|quick|105.0|M4|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|quick|105.0|M5|any": {"n": 3,"p25_sec": 150.0,@@ -18292,45 +15448,27 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|i2v|quick|113.0|M4 Max|any": {- "n": 28,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|quick|113.0|M4 Pro|any": {"n": 3,"p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 240.0},- "ltx|i2v|quick|113.0|M4|any": {- "n": 15,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|i2v|quick|113.0|M5 Max|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|quick|113.0|M5 Pro|any": {- "n": 13,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|i2v|quick|121.0|M1 Max|any": {- "n": 71,- "p25_sec": 180.0,+ "n": 59,+ "p25_sec": 150.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|quick|121.0|M1 Pro|any": {- "n": 41,- "p25_sec": 240.0,+ "n": 24,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -18340,14 +15478,8 @@"p50_sec": 75.0,"p75_sec": 112.5},- "ltx|i2v|quick|121.0|M1|any": {- "n": 6,- "p25_sec": 465.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|quick|121.0|M2 Max|any": {- "n": 55,+ "n": 52,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -18359,9 +15491,9 @@"p75_sec": 900.0},"ltx|i2v|quick|121.0|M3 Max|any": {- "n": 16,+ "n": 12,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M3 Pro|any": {@@ -18371,45 +15503,45 @@"p75_sec": 420.0},"ltx|i2v|quick|121.0|M3 Ultra|any": {- "n": 24,- "p25_sec": 45.0,- "p50_sec": 90.0,- "p75_sec": 135.0+ "n": 16,+ "p25_sec": 56.2,+ "p50_sec": 120.0,+ "p75_sec": 240.0},"ltx|i2v|quick|121.0|M4 Max|any": {- "n": 29,+ "n": 28,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M4 Pro|any": {- "n": 64,+ "n": 59,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|121.0|M4|any": {- "n": 72,+ "n": 58,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|quick|121.0|M5 Max|any": {- "n": 50,+ "n": 22,"p25_sec": 30.0,- "p50_sec": 30.0,+ "p50_sec": 52.5,"p75_sec": 60.0},"ltx|i2v|quick|121.0|M5 Pro|any": {- "n": 117,- "p25_sec": 60.0,+ "n": 101,+ "p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|quick|121.0|M5|any": {- "n": 37,- "p25_sec": 180.0,- "p50_sec": 240.0,+ "n": 29,+ "p25_sec": 240.0,+ "p50_sec": 300.0,"p75_sec": 600.0},"ltx|i2v|quick|129.0|M1 Max|any": {@@ -18425,7 +15557,7 @@"p75_sec": 60.0},"ltx|i2v|quick|129.0|M5 Pro|any": {- "n": 5,+ "n": 3,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -18454,26 +15586,14 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|quick|145.0|M4|any": {- "n": 11,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0- },- "ltx|i2v|quick|145.0|M5 Max|any": {- "n": 8,- "p25_sec": 30.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|i2v|quick|145.0|M5 Pro|any": {- "n": 6,+ "n": 4,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 82.5+ "p75_sec": 67.5},"ltx|i2v|quick|153.0|M5|any": {- "n": 9,+ "n": 6,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -18485,22 +15605,16 @@"p75_sec": 420.0},"ltx|i2v|quick|161.0|M5|any": {- "n": 4,- "p25_sec": 285.0,+ "n": 3,+ "p25_sec": 270.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|quick|169.0|M1 Max|any": {- "n": 16,+ "n": 15,"p25_sec": 180.0,- "p50_sec": 210.0,- "p75_sec": 255.0- },- "ltx|i2v|quick|169.0|M1 Pro|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 330.0+ "p50_sec": 180.0,+ "p75_sec": 240.0},"ltx|i2v|quick|169.0|M2 Max|any": {"n": 5,@@ -18509,13 +15623,13 @@"p75_sec": 180.0},"ltx|i2v|quick|169.0|M4 Max|any": {- "n": 6,- "p25_sec": 97.5,+ "n": 5,+ "p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|169.0|M4 Pro|any": {- "n": 25,+ "n": 23,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -18527,14 +15641,14 @@"p75_sec": 900.0},"ltx|i2v|quick|169.0|M5 Max|any": {- "n": 20,+ "n": 13,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0},"ltx|i2v|quick|169.0|M5 Pro|any": {- "n": 21,- "p25_sec": 90.0,+ "n": 16,+ "p25_sec": 112.5,"p50_sec": 120.0,"p75_sec": 120.0},@@ -18557,17 +15671,11 @@"p75_sec": 600.0},"ltx|i2v|quick|193.0|M4 Pro|any": {- "n": 10,- "p25_sec": 255.0,+ "n": 6,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|193.0|M5 Max|any": {- "n": 10,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 56.2- },"ltx|i2v|quick|201.0|M4 Pro|any": {"n": 11,"p25_sec": 600.0,@@ -18586,12 +15694,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|217.0|M5 Max|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|quick|225.0|M4 Pro|any": {"n": 9,"p25_sec": 600.0,@@ -18604,22 +15706,16 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|quick|233.0|M5 Pro|any": {- "n": 11,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|quick|241.0|M1 Max|any": {- "n": 117,+ "n": 99,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|quick|241.0|M1 Pro|any": {- "n": 8,- "p25_sec": 495.0,- "p50_sec": 600.0,+ "n": 6,+ "p25_sec": 600.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"ltx|i2v|quick|241.0|M1 Ultra|any": {@@ -18635,16 +15731,16 @@"p75_sec": 3600.0},"ltx|i2v|quick|241.0|M2 Max|any": {- "n": 5,- "p25_sec": 180.0,+ "n": 4,+ "p25_sec": 270.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|quick|241.0|M3 Max|any": {- "n": 11,+ "n": 8,"p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 270.0+ "p75_sec": 255.0},"ltx|i2v|quick|241.0|M3 Pro|any": {"n": 8,@@ -18653,34 +15749,34 @@"p75_sec": 600.0},"ltx|i2v|quick|241.0|M4 Max|any": {- "n": 37,+ "n": 35,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|241.0|M4 Pro|any": {- "n": 76,+ "n": 74,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|241.0|M4|any": {- "n": 33,+ "n": 31,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 1050.0},"ltx|i2v|quick|241.0|M5 Max|any": {- "n": 64,- "p25_sec": 60.0,+ "n": 44,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|quick|241.0|M5 Pro|any": {- "n": 65,- "p25_sec": 120.0,+ "n": 25,+ "p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|quick|241.0|M5|any": {"n": 8,@@ -18688,12 +15784,6 @@"p50_sec": 750.0,"p75_sec": 900.0},- "ltx|i2v|quick|25.0|M5 Pro|any": {- "n": 8,- "p25_sec": 15.0,- "p50_sec": 15.0,- "p75_sec": 67.5- },"ltx|i2v|quick|265.0|M1 Max|any": {"n": 4,"p25_sec": 240.0,@@ -18713,21 +15803,21 @@"p75_sec": 180.0},"ltx|i2v|quick|361.0|M5 Max|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 97.5+ "n": 3,+ "p25_sec": 75.0,+ "p50_sec": 90.0,+ "p75_sec": 105.0},"ltx|i2v|quick|41.0|M1 Max|any": {- "n": 9,+ "n": 8,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|i2v|quick|481.0|M1 Max|any": {- "n": 320,+ "n": 105,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|481.0|M1|any": {@@ -18749,10 +15839,10 @@"p75_sec": 525.0},"ltx|i2v|quick|481.0|M3 Max|any": {- "n": 36,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0+ "n": 3,+ "p25_sec": 300.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|i2v|quick|481.0|M4 Max|any": {"n": 46,@@ -18767,19 +15857,19 @@"p75_sec": 420.0},"ltx|i2v|quick|481.0|M4|any": {- "n": 18,+ "n": 17,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|i2v|quick|481.0|M5 Max|any": {- "n": 82,- "p25_sec": 120.0,- "p50_sec": 120.0,+ "n": 7,+ "p25_sec": 180.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|481.0|M5 Pro|any": {- "n": 78,+ "n": 52,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -18790,12 +15880,6 @@"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|quick|481.0|M6|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 255.0- },"ltx|i2v|quick|49.0|M2 Max|any": {"n": 5,"p25_sec": 30.0,@@ -18809,9 +15893,9 @@"p75_sec": 22.5},"ltx|i2v|quick|49.0|M4 Max|any": {- "n": 4,- "p25_sec": 82.5,- "p50_sec": 105.0,+ "n": 3,+ "p25_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|quick|49.0|M4|any": {@@ -18833,22 +15917,22 @@"p75_sec": 120.0},"ltx|i2v|quick|73.0|M1 Max|any": {- "n": 66,+ "n": 47,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|quick|73.0|M1 Pro|any": {- "n": 11,+ "n": 5,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0+ "p50_sec": 300.0,+ "p75_sec": 600.0},"ltx|i2v|quick|73.0|M1|any": {- "n": 7,- "p25_sec": 300.0,+ "n": 4,+ "p25_sec": 390.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 465.0},"ltx|i2v|quick|73.0|M2 Max|any": {"n": 10,@@ -18863,7 +15947,7 @@"p75_sec": 240.0},"ltx|i2v|quick|73.0|M3 Max|any": {- "n": 22,+ "n": 21,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0@@ -18881,31 +15965,31 @@"p75_sec": 1050.0},"ltx|i2v|quick|73.0|M4 Max|any": {- "n": 25,+ "n": 14,"p25_sec": 60.0,- "p50_sec": 60.0,+ "p50_sec": 75.0,"p75_sec": 90.0},"ltx|i2v|quick|73.0|M4 Pro|any": {- "n": 16,+ "n": 15,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|quick|73.0|M4|any": {- "n": 73,+ "n": 69,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 600.0},"ltx|i2v|quick|73.0|M5 Max|any": {- "n": 30,+ "n": 29,"p25_sec": 15.0,"p50_sec": 15.0,- "p75_sec": 26.2+ "p75_sec": 15.0},"ltx|i2v|quick|73.0|M5 Pro|any": {- "n": 28,+ "n": 27,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 60.0@@ -18922,12 +16006,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|quick|81.0|M4 Max|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|quick|81.0|M5 Pro|any": {"n": 5,"p25_sec": 45.0,@@ -18935,9 +16013,9 @@"p75_sec": 45.0},"ltx|i2v|quick|81.0|M5|any": {- "n": 5,+ "n": 4,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 150.0,"p75_sec": 180.0},"ltx|i2v|quick|89.0|M1 Max|any": {@@ -18947,22 +16025,10 @@"p75_sec": 180.0},"ltx|i2v|quick|89.0|M5 Pro|any": {- "n": 6,+ "n": 3,"p25_sec": 45.0,"p50_sec": 45.0,- "p75_sec": 45.0- },- "ltx|i2v|quick|97.0|M3 Ultra|any": {- "n": 37,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 45.0- },- "ltx|i2v|quick|97.0|M4 Max|any": {- "n": 3,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 52.5},"ltx|i2v|quick|97.0|M4 Pro|any": {"n": 3,@@ -18971,17 +16037,11 @@"p75_sec": 180.0},"ltx|i2v|quick|97.0|M4|any": {- "n": 14,+ "n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|quick|97.0|M5 Max|any": {- "n": 38,- "p25_sec": 15.0,- "p50_sec": 30.0,- "p75_sec": 30.0- },"ltx|i2v|quick|97.0|M5 Pro|any": {"n": 26,"p25_sec": 15.0,@@ -19000,35 +16060,23 @@"p50_sec": 270.0,"p75_sec": 375.0},- "ltx|i2v|standard|113.0|M4 Max|any": {- "n": 30,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|113.0|M5 Max|any": {"n": 22,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 82.5},- "ltx|i2v|standard|113.0|M5 Pro|any": {- "n": 6,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|121.0|M1 Max|any": {- "n": 393,+ "n": 293,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|standard|121.0|M1 Pro|any": {- "n": 17,+ "n": 16,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 465.0},"ltx|i2v|standard|121.0|M1 Ultra|any": {"n": 8,@@ -19037,27 +16085,21 @@"p75_sec": 240.0},"ltx|i2v|standard|121.0|M1|any": {- "n": 26,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 600.0+ "n": 9,+ "p25_sec": 600.0,+ "p50_sec": 600.0,+ "p75_sec": 900.0},"ltx|i2v|standard|121.0|M2 Max|any": {- "n": 285,+ "n": 180,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|121.0|M2 Pro|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 270.0- },"ltx|i2v|standard|121.0|M2 Ultra|any": {- "n": 152,+ "n": 123,"p25_sec": 240.0,- "p50_sec": 420.0,+ "p50_sec": 240.0,"p75_sec": 420.0},"ltx|i2v|standard|121.0|M2|any": {@@ -19067,57 +16109,57 @@"p75_sec": 1050.0},"ltx|i2v|standard|121.0|M3 Max|any": {- "n": 35,+ "n": 31,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|121.0|M3 Pro|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 360.0,- "p75_sec": 1005.0+ "n": 3,+ "p25_sec": 810.0,+ "p50_sec": 1200.0,+ "p75_sec": 1500.0},"ltx|i2v|standard|121.0|M3 Ultra|any": {- "n": 142,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 420.0+ "n": 75,+ "p25_sec": 180.0,+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|i2v|standard|121.0|M3|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|121.0|M4 Max|any": {- "n": 439,+ "n": 265,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 180.0+ "p75_sec": 240.0},"ltx|i2v|standard|121.0|M4 Pro|any": {- "n": 242,+ "n": 230,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|standard|121.0|M4|any": {- "n": 49,+ "n": 48,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|121.0|M5 Max|any": {- "n": 259,+ "n": 248,"p25_sec": 60.0,- "p50_sec": 90.0,+ "p50_sec": 75.0,"p75_sec": 120.0},"ltx|i2v|standard|121.0|M5 Pro|any": {- "n": 186,+ "n": 172,"p25_sec": 120.0,- "p50_sec": 150.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|121.0|M5|any": {@@ -19138,24 +16180,12 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|i2v|standard|129.0|M5 Pro|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },"ltx|i2v|standard|137.0|M1 Max|any": {"n": 60,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|i2v|standard|137.0|M2 Ultra|any": {- "n": 3,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|137.0|M4 Max|any": {"n": 4,"p25_sec": 120.0,@@ -19174,20 +16204,14 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|145.0|M3 Ultra|any": {- "n": 22,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 180.0- },"ltx|i2v|standard|145.0|M4 Max|any": {- "n": 28,+ "n": 23,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|standard|145.0|M4 Pro|any": {- "n": 5,+ "n": 4,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -19198,12 +16222,6 @@"p50_sec": 120.0,"p75_sec": 180.0},- "ltx|i2v|standard|145.0|M5 Pro|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },"ltx|i2v|standard|153.0|M5 Max|any": {"n": 8,"p25_sec": 90.0,@@ -19217,13 +16235,13 @@"p75_sec": 90.0},"ltx|i2v|standard|169.0|M1 Max|any": {- "n": 142,+ "n": 139,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|standard|169.0|M1 Pro|any": {- "n": 16,+ "n": 14,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -19235,7 +16253,7 @@"p75_sec": 420.0},"ltx|i2v|standard|169.0|M2 Max|any": {- "n": 194,+ "n": 138,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -19253,10 +16271,10 @@"p75_sec": 900.0},"ltx|i2v|standard|169.0|M3 Max|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 300.0+ "n": 3,+ "p25_sec": 240.0,+ "p50_sec": 300.0,+ "p75_sec": 360.0},"ltx|i2v|standard|169.0|M3 Pro|any": {"n": 3,@@ -19265,10 +16283,10 @@"p75_sec": 600.0},"ltx|i2v|standard|169.0|M3 Ultra|any": {- "n": 14,+ "n": 13,"p25_sec": 600.0,"p50_sec": 900.0,- "p75_sec": 1125.0+ "p75_sec": 1200.0},"ltx|i2v|standard|169.0|M3|any": {"n": 4,@@ -19277,34 +16295,34 @@"p75_sec": 675.0},"ltx|i2v|standard|169.0|M4 Max|any": {- "n": 131,+ "n": 128,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 240.0},"ltx|i2v|standard|169.0|M4 Pro|any": {- "n": 151,+ "n": 138,"p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|169.0|M4|any": {- "n": 48,+ "n": 38,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|i2v|standard|169.0|M5 Max|any": {- "n": 582,- "p25_sec": 90.0,+ "n": 291,+ "p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|169.0|M5 Pro|any": {- "n": 100,+ "n": 89,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 195.0+ "p75_sec": 240.0},"ltx|i2v|standard|169.0|M5|any": {"n": 7,@@ -19313,16 +16331,16 @@"p75_sec": 600.0},"ltx|i2v|standard|169.0|M6|any": {- "n": 6,+ "n": 4,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|i2v|standard|177.0|M4 Max|any": {- "n": 5,+ "n": 3,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 180.0},"ltx|i2v|standard|185.0|M3|any": {"n": 3,@@ -19331,7 +16349,7 @@"p75_sec": 750.0},"ltx|i2v|standard|193.0|M2 Ultra|any": {- "n": 47,+ "n": 46,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -19361,13 +16379,13 @@"p75_sec": 240.0},"ltx|i2v|standard|241.0|M1 Max|any": {- "n": 218,+ "n": 215,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|i2v|standard|241.0|M1 Pro|any": {- "n": 63,+ "n": 47,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -19379,13 +16397,13 @@"p75_sec": 600.0},"ltx|i2v|standard|241.0|M1|any": {- "n": 23,- "p25_sec": 1200.0,- "p50_sec": 1800.0,+ "n": 14,+ "p25_sec": 1950.0,+ "p50_sec": 2400.0,"p75_sec": 2400.0},"ltx|i2v|standard|241.0|M2 Max|any": {- "n": 256,+ "n": 230,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -19397,34 +16415,34 @@"p75_sec": 420.0},"ltx|i2v|standard|241.0|M2 Ultra|any": {- "n": 156,+ "n": 126,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M2|any": {- "n": 75,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0+ "n": 11,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1800.0},"ltx|i2v|standard|241.0|M3 Max|any": {- "n": 20,+ "n": 14,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|standard|241.0|M3 Pro|any": {- "n": 23,+ "n": 19,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M3 Ultra|any": {- "n": 21,- "p25_sec": 300.0,+ "n": 11,+ "p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 900.0},"ltx|i2v|standard|241.0|M3|any": {"n": 3,@@ -19433,52 +16451,46 @@"p75_sec": 1200.0},"ltx|i2v|standard|241.0|M4 Max|any": {- "n": 169,+ "n": 164,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4 Pro|any": {- "n": 170,+ "n": 141,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M4|any": {- "n": 463,+ "n": 446,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|standard|241.0|M5 Max|any": {- "n": 270,- "p25_sec": 120.0,- "p50_sec": 240.0,+ "n": 136,+ "p25_sec": 180.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|241.0|M5 Pro|any": {- "n": 190,+ "n": 138,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0},- "ltx|i2v|standard|241.0|M5 Ultra|any": {- "n": 6,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|i2v|standard|241.0|M5|any": {- "n": 207,+ "n": 197,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|standard|241.0|M6|any": {- "n": 15,+ "n": 6,"p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "p50_sec": 360.0,+ "p75_sec": 420.0},"ltx|i2v|standard|249.0|M4 Pro|any": {"n": 4,@@ -19534,12 +16546,6 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|i2v|standard|361.0|M3 Pro|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|i2v|standard|361.0|M4 Max|any": {"n": 3,"p25_sec": 120.0,@@ -19552,24 +16558,12 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|i2v|standard|361.0|M4|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|i2v|standard|393.0|M3 Max|any": {"n": 4,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|41.0|M4 Max|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|41.0|M5 Max|any": {"n": 25,"p25_sec": 15.0,@@ -19619,8 +16613,8 @@"p75_sec": 210.0},"ltx|i2v|standard|49.0|M4 Pro|any": {- "n": 18,- "p25_sec": 60.0,+ "n": 10,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},@@ -19630,12 +16624,6 @@"p50_sec": 45.0,"p75_sec": 60.0},- "ltx|i2v|standard|65.0|M4 Max|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|i2v|standard|65.0|M5 Max|any": {"n": 6,"p25_sec": 30.0,@@ -19643,13 +16631,13 @@"p75_sec": 56.2},"ltx|i2v|standard|73.0|M1 Max|any": {- "n": 45,+ "n": 29,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 180.0,"p75_sec": 240.0},"ltx|i2v|standard|73.0|M2 Max|any": {- "n": 20,+ "n": 17,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -19660,14 +16648,8 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|i2v|standard|73.0|M2|any": {- "n": 4,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|i2v|standard|73.0|M3 Max|any": {- "n": 7,+ "n": 6,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -19678,29 +16660,23 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|standard|73.0|M3 Ultra|any": {- "n": 40,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|i2v|standard|73.0|M4 Max|any": {- "n": 82,+ "n": 25,"p25_sec": 90.0,- "p50_sec": 105.0,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|i2v|standard|73.0|M4 Pro|any": {- "n": 89,+ "n": 84,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|standard|73.0|M4|any": {- "n": 14,+ "n": 8,"p25_sec": 240.0,- "p50_sec": 300.0,- "p75_sec": 555.0+ "p50_sec": 240.0,+ "p75_sec": 330.0},"ltx|i2v|standard|73.0|M5 Max|any": {"n": 266,@@ -19709,10 +16685,10 @@"p75_sec": 120.0},"ltx|i2v|standard|73.0|M5 Pro|any": {- "n": 20,+ "n": 19,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 97.5+ "p75_sec": 75.0},"ltx|i2v|standard|73.0|M5|any": {"n": 3,@@ -19726,12 +16702,6 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|i2v|standard|81.0|M4 Max|any": {- "n": 11,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 120.0- },"ltx|i2v|standard|81.0|M5 Max|any": {"n": 33,"p25_sec": 45.0,@@ -19744,24 +16714,12 @@"p50_sec": 300.0,"p75_sec": 525.0},- "ltx|i2v|standard|89.0|M4 Max|any": {- "n": 3,- "p25_sec": 105.0,- "p50_sec": 120.0,- "p75_sec": 150.0- },"ltx|i2v|standard|89.0|M5 Max|any": {"n": 27,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 60.0},- "ltx|i2v|standard|89.0|M5 Pro|any": {- "n": 3,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|i2v|standard|97.0|M2 Ultra|any": {"n": 4,"p25_sec": 180.0,@@ -19769,20 +16727,20 @@"p75_sec": 180.0},"ltx|i2v|standard|97.0|M3 Ultra|any": {- "n": 14,- "p25_sec": 33.8,- "p50_sec": 75.0,- "p75_sec": 90.0+ "n": 5,+ "p25_sec": 30.0,+ "p50_sec": 30.0,+ "p75_sec": 30.0},"ltx|i2v|standard|97.0|M4 Max|any": {- "n": 50,+ "n": 10,"p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "p50_sec": 90.0,+ "p75_sec": 90.0},"ltx|i2v|standard|97.0|M4 Pro|any": {- "n": 14,- "p25_sec": 180.0,+ "n": 7,+ "p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},@@ -19805,28 +16763,16 @@"p75_sec": 300.0},"ltx|keyframe|balanced|121.0|M1 Max|any": {- "n": 24,- "p25_sec": 420.0,+ "n": 12,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|keyframe|balanced|121.0|M1 Ultra|any": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 660.0- },"ltx|keyframe|balanced|121.0|M2 Max|any": {- "n": 13,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|keyframe|balanced|121.0|M3 Max|any": {- "n": 5,- "p25_sec": 420.0,+ "n": 10,+ "p25_sec": 330.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 600.0},"ltx|keyframe|balanced|121.0|M3 Ultra|any": {"n": 5,@@ -19835,25 +16781,25 @@"p75_sec": 300.0},"ltx|keyframe|balanced|121.0|M4 Max|any": {- "n": 21,+ "n": 17,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|keyframe|balanced|121.0|M4 Pro|any": {- "n": 25,- "p25_sec": 600.0,+ "n": 22,+ "p25_sec": 465.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|keyframe|balanced|121.0|M5 Max|any": {- "n": 12,+ "n": 9,"p25_sec": 90.0,- "p50_sec": 180.0,+ "p50_sec": 120.0,"p75_sec": 240.0},"ltx|keyframe|balanced|121.0|M5 Pro|any": {- "n": 17,+ "n": 16,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -19870,12 +16816,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|balanced|169.0|M4 Max|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 1110.0- },"ltx|keyframe|balanced|169.0|M4 Pro|any": {"n": 13,"p25_sec": 600.0,@@ -19889,19 +16829,19 @@"p75_sec": 300.0},"ltx|keyframe|balanced|193.0|M1 Max|any": {- "n": 349,+ "n": 25,"p25_sec": 900.0,- "p50_sec": 900.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|keyframe|balanced|241.0|M1 Max|any": {- "n": 22,+ "n": 21,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},"ltx|keyframe|balanced|241.0|M2 Max|any": {- "n": 23,+ "n": 21,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -19919,10 +16859,10 @@"p75_sec": 600.0},"ltx|keyframe|balanced|241.0|M4 Max|any": {- "n": 8,- "p25_sec": 825.0,- "p50_sec": 1050.0,- "p75_sec": 1800.0+ "n": 5,+ "p25_sec": 600.0,+ "p50_sec": 900.0,+ "p75_sec": 900.0},"ltx|keyframe|balanced|241.0|M4 Pro|any": {"n": 7,@@ -19937,19 +16877,7 @@"p75_sec": 600.0},"ltx|keyframe|balanced|241.0|M5 Pro|any": {- "n": 10,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },- "ltx|keyframe|balanced|361.0|M5 Max|any": {- "n": 3,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|keyframe|balanced|49.0|M1 Max|any": {- "n": 13,+ "n": 6,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -19961,8 +16889,8 @@"p75_sec": 600.0},"ltx|keyframe|balanced|73.0|M2 Max|any": {- "n": 15,- "p25_sec": 360.0,+ "n": 12,+ "p25_sec": 390.0,"p50_sec": 420.0,"p75_sec": 900.0},@@ -19990,12 +16918,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|high_720p|241.0|M4 Max|any": {- "n": 5,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },"ltx|keyframe|high|113.0|M5 Max|any": {"n": 11,"p25_sec": 300.0,@@ -20003,10 +16925,10 @@"p75_sec": 300.0},"ltx|keyframe|high|121.0|M1 Max|any": {- "n": 10,- "p25_sec": 465.0,+ "n": 8,+ "p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 675.0},"ltx|keyframe|high|121.0|M3 Max|any": {"n": 13,@@ -20015,7 +16937,7 @@"p75_sec": 600.0},"ltx|keyframe|high|121.0|M3 Ultra|any": {- "n": 11,+ "n": 9,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -20027,8 +16949,8 @@"p75_sec": 675.0},"ltx|keyframe|high|121.0|M5 Max|any": {- "n": 47,- "p25_sec": 240.0,+ "n": 39,+ "p25_sec": 210.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -20044,30 +16966,12 @@"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|keyframe|high|145.0|M5 Max|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },"ltx|keyframe|high|161.0|M3 Ultra|any": {"n": 11,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|keyframe|high|169.0|M1 Max|any": {- "n": 17,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|keyframe|high|169.0|M3 Ultra|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|keyframe|high|169.0|M4 Max|any": {"n": 3,"p25_sec": 750.0,@@ -20099,9 +17003,9 @@"p75_sec": 1050.0},"ltx|keyframe|high|241.0|M3 Ultra|any": {- "n": 7,+ "n": 5,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|keyframe|high|241.0|M4 Pro|any": {@@ -20134,12 +17038,6 @@"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|keyframe|high|73.0|M1 Max|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|keyframe|high|73.0|M3 Ultra|any": {"n": 3,"p25_sec": 180.0,@@ -20170,26 +17068,20 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|quick|121.0|M1 Max|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 660.0,- "p75_sec": 975.0- },"ltx|keyframe|quick|121.0|M4 Max|any": {- "n": 9,+ "n": 8,"p25_sec": 240.0,- "p50_sec": 420.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"ltx|keyframe|quick|241.0|M4 Max|any": {- "n": 5,+ "n": 3,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"ltx|keyframe|standard|121.0|M2 Max|any": {- "n": 17,+ "n": 14,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -20213,7 +17105,7 @@"p75_sec": 240.0},"ltx|keyframe|standard|169.0|M2 Max|any": {- "n": 25,+ "n": 15,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0@@ -20230,12 +17122,6 @@"p50_sec": 1500.0,"p75_sec": 1800.0},- "ltx|keyframe|standard|193.0|M1 Max|any": {- "n": 41,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"ltx|keyframe|standard|193.0|M2 Ultra|any": {"n": 9,"p25_sec": 300.0,@@ -20249,7 +17135,7 @@"p75_sec": 2250.0},"ltx|keyframe|standard|241.0|M2 Max|any": {- "n": 30,+ "n": 11,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0@@ -20321,130 +17207,124 @@"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M1 Max|any": {- "n": 416,+ "n": 283,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M1 Pro|any": {- "n": 172,+ "n": 92,"p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 420.0+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|t2v|balanced|121.0|M1 Ultra|any": {- "n": 65,+ "n": 57,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M1|any": {- "n": 47,+ "n": 40,"p25_sec": 600.0,- "p50_sec": 900.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"ltx|t2v|balanced|121.0|M2 Max|any": {- "n": 212,+ "n": 199,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M2 Pro|any": {- "n": 20,+ "n": 18,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M2 Ultra|any": {- "n": 146,- "p25_sec": 120.0,- "p50_sec": 120.0,+ "n": 34,+ "p25_sec": 60.0,+ "p50_sec": 60.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M2|any": {- "n": 17,+ "n": 14,"p25_sec": 420.0,- "p50_sec": 600.0,+ "p50_sec": 750.0,"p75_sec": 900.0},"ltx|t2v|balanced|121.0|M3 Max|any": {- "n": 49,+ "n": 44,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|t2v|balanced|121.0|M3 Pro|any": {- "n": 32,+ "n": 23,"p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 465.0+ "p75_sec": 600.0},"ltx|t2v|balanced|121.0|M3 Ultra|any": {- "n": 366,+ "n": 123,"p25_sec": 90.0,- "p50_sec": 120.0,+ "p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M3|any": {- "n": 14,- "p25_sec": 600.0,- "p50_sec": 750.0,+ "n": 11,+ "p25_sec": 510.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|balanced|121.0|M4 Max|any": {- "n": 844,+ "n": 799,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|121.0|M4 Pro|any": {- "n": 403,+ "n": 377,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M4|any": {- "n": 107,+ "n": 78,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|121.0|M5 Max|any": {- "n": 428,+ "n": 266,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|balanced|121.0|M5 Pro|any": {- "n": 262,+ "n": 220,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|M5|any": {- "n": 109,+ "n": 77,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|balanced|121.0|M6|any": {- "n": 22,+ "n": 15,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|balanced|137.0|M4 Pro|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|balanced|145.0|M1 Max|any": {- "n": 7,+ "n": 6,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 210.0+ "p75_sec": 180.0},"ltx|t2v|balanced|145.0|M4 Max|any": {"n": 3,@@ -20453,10 +17333,10 @@"p75_sec": 90.0},"ltx|t2v|balanced|145.0|M4 Pro|any": {- "n": 13,+ "n": 7,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 180.0+ "p75_sec": 210.0},"ltx|t2v|balanced|145.0|M5 Pro|any": {"n": 79,@@ -20471,17 +17351,11 @@"p75_sec": 90.0},"ltx|t2v|balanced|169.0|M1 Max|any": {- "n": 48,- "p25_sec": 285.0,+ "n": 29,+ "p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 420.0},- "ltx|t2v|balanced|169.0|M1 Ultra|any": {- "n": 3,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 330.0- },"ltx|t2v|balanced|169.0|M2 Max|any": {"n": 16,"p25_sec": 240.0,@@ -20489,7 +17363,7 @@"p75_sec": 300.0},"ltx|t2v|balanced|169.0|M3 Pro|any": {- "n": 11,+ "n": 10,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -20507,14 +17381,14 @@"p75_sec": 825.0},"ltx|t2v|balanced|169.0|M4 Max|any": {- "n": 54,+ "n": 53,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"ltx|t2v|balanced|169.0|M4 Pro|any": {- "n": 35,- "p25_sec": 240.0,+ "n": 32,+ "p25_sec": 225.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -20525,9 +17399,9 @@"p75_sec": 600.0},"ltx|t2v|balanced|169.0|M5 Max|any": {- "n": 35,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 14,+ "p25_sec": 97.5,+ "p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|169.0|M5 Pro|any": {@@ -20560,12 +17434,6 @@"p50_sec": 900.0,"p75_sec": 1200.0},- "ltx|t2v|balanced|217.0|M1 Max|any": {- "n": 51,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|balanced|217.0|M4 Pro|any": {"n": 6,"p25_sec": 300.0,@@ -20579,31 +17447,31 @@"p75_sec": 240.0},"ltx|t2v|balanced|241.0|M1 Max|any": {- "n": 84,- "p25_sec": 300.0,+ "n": 71,+ "p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M1 Pro|any": {- "n": 12,+ "n": 9,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|t2v|balanced|241.0|M1 Ultra|any": {- "n": 122,+ "n": 117,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M1|any": {- "n": 8,- "p25_sec": 1125.0,- "p50_sec": 3000.0,- "p75_sec": 4050.0+ "n": 7,+ "p25_sec": 1050.0,+ "p50_sec": 2400.0,+ "p75_sec": 4500.0},"ltx|t2v|balanced|241.0|M2 Max|any": {- "n": 101,+ "n": 97,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -20615,91 +17483,85 @@"p75_sec": 810.0},"ltx|t2v|balanced|241.0|M2 Ultra|any": {- "n": 9,- "p25_sec": 240.0,- "p50_sec": 420.0,+ "n": 7,+ "p25_sec": 360.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M2|any": {- "n": 11,+ "n": 8,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0},"ltx|t2v|balanced|241.0|M3 Max|any": {- "n": 29,- "p25_sec": 600.0,+ "n": 21,+ "p25_sec": 420.0,"p50_sec": 600.0,- "p75_sec": 1200.0+ "p75_sec": 900.0},"ltx|t2v|balanced|241.0|M3 Pro|any": {- "n": 11,+ "n": 8,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|balanced|241.0|M3 Ultra|any": {- "n": 54,- "p25_sec": 300.0,- "p50_sec": 510.0,+ "n": 46,+ "p25_sec": 420.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M3|any": {- "n": 7,+ "n": 5,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 1050.0+ "p75_sec": 900.0},"ltx|t2v|balanced|241.0|M4 Max|any": {- "n": 292,+ "n": 264,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 180.0},"ltx|t2v|balanced|241.0|M4 Pro|any": {- "n": 219,- "p25_sec": 420.0,+ "n": 192,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M4|any": {- "n": 70,+ "n": 52,"p25_sec": 900.0,- "p50_sec": 1200.0,+ "p50_sec": 900.0,"p75_sec": 1200.0},"ltx|t2v|balanced|241.0|M5 Max|any": {- "n": 514,+ "n": 75,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 180.0+ "p75_sec": 240.0},"ltx|t2v|balanced|241.0|M5 Pro|any": {- "n": 102,+ "n": 41,"p25_sec": 240.0,- "p50_sec": 240.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|balanced|241.0|M5|any": {- "n": 75,+ "n": 61,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|balanced|241.0|M6|any": {- "n": 50,+ "n": 49,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},- "ltx|t2v|balanced|241.0|non-apple-silicon|any": {- "n": 3,- "p25_sec": 1500.0,- "p50_sec": 1800.0,- "p75_sec": 3600.0- },"ltx|t2v|balanced|249.0|M4 Pro|any": {- "n": 16,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -20710,30 +17572,12 @@"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|balanced|25.0|M4 Max|any": {- "n": 3,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 30.0- },"ltx|t2v|balanced|25.0|M4 Pro|any": {"n": 12,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|balanced|289.0|M5 Max|any": {- "n": 18,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },- "ltx|t2v|balanced|313.0|M5 Max|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|balanced|33.0|M3 Ultra|any": {"n": 3,"p25_sec": 30.0,@@ -20747,112 +17591,58 @@"p75_sec": 975.0},"ltx|t2v|balanced|361.0|M4 Max|any": {- "n": 12,- "p25_sec": 165.0,+ "n": 11,+ "p25_sec": 150.0,"p50_sec": 300.0,- "p75_sec": 420.0- },- "ltx|t2v|balanced|361.0|M4 Pro|any": {- "n": 3,- "p25_sec": 330.0,- "p50_sec": 420.0,- "p75_sec": 660.0+ "p75_sec": 360.0},"ltx|t2v|balanced|361.0|M5 Max|any": {- "n": 24,+ "n": 9,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"ltx|t2v|balanced|361.0|M5 Pro|any": {- "n": 11,+ "n": 10,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|balanced|385.0|M5 Max|any": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|t2v|balanced|409.0|M1 Ultra|any": {"n": 20,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|balanced|41.0|M4 Max|any": {- "n": 9,- "p25_sec": 45.0,- "p50_sec": 45.0,- "p75_sec": 45.0- },"ltx|t2v|balanced|41.0|M5 Max|any": {"n": 10,"p25_sec": 15.0,"p50_sec": 15.0,"p75_sec": 15.0},- "ltx|t2v|balanced|481.0|M1 Max|any": {- "n": 5,- "p25_sec": 1800.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0- },"ltx|t2v|balanced|481.0|M2 Max|any": {"n": 9,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|balanced|481.0|M4 Max|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"ltx|t2v|balanced|481.0|M4|any": {"n": 3,"p25_sec": 900.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|balanced|481.0|M5 Max|any": {- "n": 16,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 330.0- },- "ltx|t2v|balanced|481.0|M5 Pro|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },- "ltx|t2v|balanced|481.0|M6|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|t2v|balanced|49.0|M1 Max|any": {- "n": 4,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 120.0- },- "ltx|t2v|balanced|49.0|M2 Max|any": {"n": 3,- "p25_sec": 75.0,- "p50_sec": 90.0,- "p75_sec": 90.0+ "p25_sec": 105.0,+ "p50_sec": 120.0,+ "p75_sec": 120.0},"ltx|t2v|balanced|49.0|M3 Ultra|any": {- "n": 26,+ "n": 25,"p25_sec": 45.0,"p50_sec": 60.0,- "p75_sec": 112.5+ "p75_sec": 120.0},"ltx|t2v|balanced|49.0|M4 Max|any": {"n": 12,@@ -20861,8 +17651,8 @@"p75_sec": 60.0},"ltx|t2v|balanced|49.0|M4 Pro|any": {- "n": 5,- "p25_sec": 90.0,+ "n": 3,+ "p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},@@ -20878,24 +17668,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|balanced|49.0|M5 Ultra|any": {- "n": 6,- "p25_sec": 0.0,- "p50_sec": 7.5,- "p75_sec": 15.0- },- "ltx|t2v|balanced|57.0|M4 Max|any": {- "n": 3,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|t2v|balanced|65.0|M1 Max|any": {- "n": 23,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"ltx|t2v|balanced|65.0|M5 Max|any": {"n": 6,"p25_sec": 30.0,@@ -20903,7 +17675,7 @@"p75_sec": 30.0},"ltx|t2v|balanced|73.0|M1 Max|any": {- "n": 96,+ "n": 89,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0@@ -20915,7 +17687,7 @@"p75_sec": 135.0},"ltx|t2v|balanced|73.0|M2 Max|any": {- "n": 57,+ "n": 56,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -20927,7 +17699,7 @@"p75_sec": 120.0},"ltx|t2v|balanced|73.0|M3 Ultra|any": {- "n": 17,+ "n": 14,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -20939,20 +17711,20 @@"p75_sec": 90.0},"ltx|t2v|balanced|73.0|M4 Pro|any": {- "n": 64,- "p25_sec": 112.5,+ "n": 60,+ "p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|balanced|73.0|M4|any": {- "n": 17,- "p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 600.0+ "n": 4,+ "p25_sec": 180.0,+ "p50_sec": 210.0,+ "p75_sec": 255.0},"ltx|t2v|balanced|73.0|M5 Max|any": {- "n": 178,- "p25_sec": 30.0,+ "n": 29,+ "p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0},@@ -20963,15 +17735,9 @@"p75_sec": 60.0},"ltx|t2v|balanced|73.0|M5|any": {- "n": 14,+ "n": 12,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 112.5- },- "ltx|t2v|balanced|81.0|M1 Max|any": {- "n": 28,- "p25_sec": 120.0,- "p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|89.0|M5 Pro|any": {@@ -20981,10 +17747,10 @@"p75_sec": 45.0},"ltx|t2v|balanced|97.0|M1 Max|any": {- "n": 9,+ "n": 6,"p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 180.0+ "p50_sec": 120.0,+ "p75_sec": 165.0},"ltx|t2v|balanced|97.0|M3 Max|any": {"n": 3,@@ -21010,12 +17776,6 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|t2v|draft|121.0|M3|any": {- "n": 7,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|draft|121.0|M4 Max|any": {"n": 3,"p25_sec": 120.0,@@ -21034,36 +17794,18 @@"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|high_720p|121.0|M5 Max|any": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 360.0,- "p75_sec": 420.0- },"ltx|t2v|high_720p|241.0|M1 Ultra|any": {- "n": 6,+ "n": 5,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|high_720p|241.0|M4 Max|any": {- "n": 14,+ "n": 13,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0},- "ltx|t2v|high_720p|241.0|M5 Max|any": {- "n": 38,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|t2v|high_720p|241.0|M5 Pro|any": {- "n": 10,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"ltx|t2v|high_720p|73.0|M4 Max|any": {"n": 3,"p25_sec": 270.0,@@ -21089,7 +17831,7 @@"p75_sec": 180.0},"ltx|t2v|high|121.0|M1 Max|any": {- "n": 60,+ "n": 58,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -21113,40 +17855,34 @@"p75_sec": 195.0},"ltx|t2v|high|121.0|M3 Ultra|any": {- "n": 29,- "p25_sec": 240.0,- "p50_sec": 300.0,- "p75_sec": 300.0+ "n": 14,+ "p25_sec": 180.0,+ "p50_sec": 240.0,+ "p75_sec": 600.0},"ltx|t2v|high|121.0|M4 Max|any": {- "n": 99,+ "n": 96,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|t2v|high|121.0|M4 Pro|any": {- "n": 26,+ "n": 20,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|high|121.0|M5 Max|any": {- "n": 73,+ "n": 49,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 240.0+ "p75_sec": 120.0},"ltx|t2v|high|121.0|M5 Pro|any": {- "n": 13,+ "n": 11,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 240.0- },- "ltx|t2v|high|121.0|M5|any": {- "n": 3,- "p25_sec": 1800.0,- "p50_sec": 1800.0,- "p75_sec": 1800.0+ "p75_sec": 180.0},"ltx|t2v|high|145.0|M5 Max|any": {"n": 3,@@ -21203,10 +17939,10 @@"p75_sec": 240.0},"ltx|t2v|high|241.0|M1 Max|any": {- "n": 44,+ "n": 43,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 975.0+ "p75_sec": 900.0},"ltx|t2v|high|241.0|M1 Ultra|any": {"n": 22,@@ -21227,10 +17963,10 @@"p75_sec": 1800.0},"ltx|t2v|high|241.0|M3 Ultra|any": {- "n": 7,- "p25_sec": 270.0,+ "n": 6,+ "p25_sec": 255.0,"p50_sec": 300.0,- "p75_sec": 360.0+ "p75_sec": 300.0},"ltx|t2v|high|241.0|M4 Max|any": {"n": 58,@@ -21239,19 +17975,19 @@"p75_sec": 1200.0},"ltx|t2v|high|241.0|M4 Pro|any": {- "n": 12,+ "n": 11,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|high|241.0|M5 Max|any": {- "n": 49,+ "n": 22,"p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "p50_sec": 300.0,+ "p75_sec": 390.0},"ltx|t2v|high|241.0|M5 Pro|any": {- "n": 13,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0@@ -21280,12 +18016,6 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|t2v|high|481.0|M5 Pro|any": {- "n": 4,- "p25_sec": 900.0,- "p50_sec": 1050.0,- "p75_sec": 1200.0- },"ltx|t2v|high|65.0|M3 Ultra|any": {"n": 9,"p25_sec": 180.0,@@ -21340,12 +18070,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|high|73.0|M5 Max|any": {- "n": 6,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },"ltx|t2v|high|97.0|M3 Ultra|any": {"n": 3,"p25_sec": 180.0,@@ -21358,12 +18082,6 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|q4|121.0|M5|any": {- "n": 66,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"ltx|t2v|quick|113.0|M4 Max|any": {"n": 3,"p25_sec": 120.0,@@ -21371,25 +18089,25 @@"p75_sec": 150.0},"ltx|t2v|quick|121.0|M1 Max|any": {- "n": 131,+ "n": 122,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 210.0+ "p75_sec": 180.0},"ltx|t2v|quick|121.0|M1 Pro|any": {- "n": 25,+ "n": 17,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|quick|121.0|M1 Ultra|any": {- "n": 21,+ "n": 19,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|t2v|quick|121.0|M2 Max|any": {- "n": 72,+ "n": 70,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0@@ -21401,70 +18119,70 @@"p75_sec": 180.0},"ltx|t2v|quick|121.0|M3 Max|any": {- "n": 26,+ "n": 23,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 165.0+ "p75_sec": 210.0},"ltx|t2v|quick|121.0|M3 Pro|any": {- "n": 19,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "n": 3,+ "p25_sec": 330.0,+ "p50_sec": 420.0,+ "p75_sec": 420.0},"ltx|t2v|quick|121.0|M3 Ultra|any": {- "n": 101,+ "n": 97,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 60.0},"ltx|t2v|quick|121.0|M3|any": {- "n": 25,- "p25_sec": 600.0,- "p50_sec": 600.0,+ "n": 13,+ "p25_sec": 900.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|t2v|quick|121.0|M4 Max|any": {- "n": 56,+ "n": 48,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4 Pro|any": {- "n": 135,+ "n": 119,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|quick|121.0|M4|any": {- "n": 68,+ "n": 50,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|quick|121.0|M5 Max|any": {- "n": 175,+ "n": 167,"p25_sec": 45.0,"p50_sec": 60.0,"p75_sec": 120.0},"ltx|t2v|quick|121.0|M5 Pro|any": {- "n": 60,+ "n": 39,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0},"ltx|t2v|quick|121.0|M5|any": {- "n": 76,+ "n": 62,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"ltx|t2v|quick|121.0|M6|any": {- "n": 16,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 120.0+ "n": 6,+ "p25_sec": 120.0,+ "p50_sec": 120.0,+ "p75_sec": 165.0},"ltx|t2v|quick|145.0|M1 Max|any": {"n": 5,@@ -21473,28 +18191,28 @@"p75_sec": 420.0},"ltx|t2v|quick|145.0|M4 Pro|any": {- "n": 9,+ "n": 8,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|quick|145.0|M4|any": {- "n": 4,+ "n": 3,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 330.0+ "p75_sec": 300.0},"ltx|t2v|quick|145.0|M5 Max|any": {- "n": 6,+ "n": 5,"p25_sec": 45.0,- "p50_sec": 52.5,+ "p50_sec": 60.0,"p75_sec": 60.0},"ltx|t2v|quick|145.0|M5 Pro|any": {- "n": 12,+ "n": 6,"p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 120.0+ "p50_sec": 60.0,+ "p75_sec": 60.0},"ltx|t2v|quick|153.0|M4|any": {"n": 12,@@ -21526,24 +18244,6 @@"p50_sec": 180.0,"p75_sec": 240.0},- "ltx|t2v|quick|169.0|M4|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "ltx|t2v|quick|169.0|M5 Pro|any": {- "n": 13,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|t2v|quick|193.0|M2 Max|any": {- "n": 5,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },"ltx|t2v|quick|193.0|M4 Pro|any": {"n": 5,"p25_sec": 240.0,@@ -21563,14 +18263,14 @@"p75_sec": 180.0},"ltx|t2v|quick|241.0|M1 Max|any": {- "n": 48,- "p25_sec": 285.0,+ "n": 46,+ "p25_sec": 255.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|quick|241.0|M1 Pro|any": {- "n": 7,- "p25_sec": 510.0,+ "n": 6,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -21581,7 +18281,7 @@"p75_sec": 120.0},"ltx|t2v|quick|241.0|M2 Max|any": {- "n": 33,+ "n": 32,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -21592,17 +18292,11 @@"p50_sec": 180.0,"p75_sec": 195.0},- "ltx|t2v|quick|241.0|M3 Pro|any": {- "n": 4,- "p25_sec": 180.0,- "p50_sec": 300.0,- "p75_sec": 420.0- },"ltx|t2v|quick|241.0|M3 Ultra|any": {- "n": 32,+ "n": 28,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 330.0+ "p75_sec": 195.0},"ltx|t2v|quick|241.0|M4 Max|any": {"n": 12,@@ -21611,34 +18305,34 @@"p75_sec": 255.0},"ltx|t2v|quick|241.0|M4 Pro|any": {- "n": 83,+ "n": 63,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|quick|241.0|M4|any": {- "n": 54,- "p25_sec": 465.0,+ "n": 52,+ "p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|quick|241.0|M5 Max|any": {- "n": 48,+ "n": 42,"p25_sec": 60.0,- "p50_sec": 90.0,+ "p50_sec": 105.0,"p75_sec": 120.0},"ltx|t2v|quick|241.0|M5 Pro|any": {- "n": 25,+ "n": 24,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 300.0},"ltx|t2v|quick|241.0|M5|any": {- "n": 25,+ "n": 24,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 600.0+ "p75_sec": 465.0},"ltx|t2v|quick|25.0|M1 Max|any": {"n": 6,@@ -21658,20 +18352,8 @@"p50_sec": 30.0,"p75_sec": 37.5},- "ltx|t2v|quick|25.0|M4 Pro|any": {- "n": 7,- "p25_sec": 45.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|t2v|quick|25.0|M5 Max|any": {- "n": 3,- "p25_sec": 15.0,- "p50_sec": 15.0,- "p75_sec": 22.5- },"ltx|t2v|quick|25.0|M6|any": {- "n": 6,+ "n": 5,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -21694,14 +18376,8 @@"p50_sec": 45.0,"p75_sec": 45.0},- "ltx|t2v|quick|41.0|M4|any": {- "n": 7,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },"ltx|t2v|quick|481.0|M1 Max|any": {- "n": 26,+ "n": 23,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -21719,10 +18395,10 @@"p75_sec": 360.0},"ltx|t2v|quick|481.0|M1|any": {- "n": 4,+ "n": 3,"p25_sec": 1800.0,"p50_sec": 1800.0,- "p75_sec": 1950.0+ "p75_sec": 2100.0},"ltx|t2v|quick|481.0|M2 Max|any": {"n": 7,@@ -21731,27 +18407,27 @@"p75_sec": 420.0},"ltx|t2v|quick|481.0|M3 Max|any": {- "n": 7,- "p25_sec": 420.0,+ "n": 3,+ "p25_sec": 510.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|quick|481.0|M3 Pro|any": {- "n": 7,- "p25_sec": 420.0,+ "n": 3,+ "p25_sec": 360.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|quick|481.0|M3 Ultra|any": {- "n": 8,+ "n": 5,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 195.0+ "p75_sec": 240.0},"ltx|t2v|quick|481.0|M4 Max|any": {- "n": 6,+ "n": 5,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|quick|481.0|M4 Pro|any": {@@ -21761,20 +18437,20 @@"p75_sec": 300.0},"ltx|t2v|quick|481.0|M4|any": {- "n": 12,- "p25_sec": 825.0,- "p50_sec": 900.0,- "p75_sec": 975.0+ "n": 3,+ "p25_sec": 900.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0},"ltx|t2v|quick|481.0|M5 Max|any": {- "n": 43,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "n": 14,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 225.0},"ltx|t2v|quick|481.0|M5 Pro|any": {- "n": 44,- "p25_sec": 120.0,+ "n": 30,+ "p25_sec": 150.0,"p50_sec": 300.0,"p75_sec": 300.0},@@ -21809,39 +18485,33 @@"p75_sec": 48.8},"ltx|t2v|quick|49.0|M4 Pro|any": {- "n": 8,- "p25_sec": 60.0,+ "n": 5,+ "p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},- "ltx|t2v|quick|49.0|M4|any": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|quick|49.0|M5 Max|any": {- "n": 5,+ "n": 4,"p25_sec": 15.0,- "p50_sec": 15.0,+ "p50_sec": 22.5,"p75_sec": 30.0},"ltx|t2v|quick|49.0|M5 Pro|any": {- "n": 5,+ "n": 4,"p25_sec": 30.0,"p50_sec": 30.0,"p75_sec": 30.0},"ltx|t2v|quick|73.0|M1 Max|any": {- "n": 101,+ "n": 92,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|quick|73.0|M1 Pro|any": {- "n": 14,- "p25_sec": 195.0,- "p50_sec": 360.0,+ "n": 13,+ "p25_sec": 240.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|t2v|quick|73.0|M1 Ultra|any": {@@ -21850,12 +18520,6 @@"p50_sec": 60.0,"p75_sec": 60.0},- "ltx|t2v|quick|73.0|M1|any": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|quick|73.0|M2 Max|any": {"n": 25,"p25_sec": 60.0,@@ -21875,28 +18539,28 @@"p75_sec": 90.0},"ltx|t2v|quick|73.0|M3 Ultra|any": {- "n": 58,+ "n": 46,"p25_sec": 30.0,"p50_sec": 30.0,"p75_sec": 45.0},"ltx|t2v|quick|73.0|M4 Max|any": {- "n": 23,+ "n": 20,"p25_sec": 45.0,"p50_sec": 60.0,"p75_sec": 90.0},"ltx|t2v|quick|73.0|M4 Pro|any": {- "n": 68,+ "n": 61,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|quick|73.0|M4|any": {- "n": 24,+ "n": 14,"p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 465.0+ "p75_sec": 555.0},"ltx|t2v|quick|73.0|M5 Max|any": {"n": 21,@@ -21911,16 +18575,10 @@"p75_sec": 45.0},"ltx|t2v|quick|73.0|M5|any": {- "n": 41,+ "n": 40,"p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 120.0- },- "ltx|t2v|quick|73.0|M6|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 75.0,- "p75_sec": 142.5+ "p75_sec": 135.0},"ltx|t2v|quick|97.0|M1 Max|any": {"n": 7,@@ -21929,10 +18587,10 @@"p75_sec": 120.0},"ltx|t2v|quick|97.0|M2 Max|any": {- "n": 11,+ "n": 5,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 90.0},"ltx|t2v|quick|97.0|M3 Max|any": {"n": 7,@@ -21959,10 +18617,10 @@"p75_sec": 120.0},"ltx|t2v|quick|97.0|M4|any": {- "n": 4,+ "n": 3,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|t2v|quick|97.0|M5 Max|any": {"n": 3,@@ -21983,15 +18641,15 @@"p75_sec": 90.0},"ltx|t2v|standard|121.0|M1 Max|any": {- "n": 95,- "p25_sec": 240.0,+ "n": 87,+ "p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|standard|121.0|M1 Pro|any": {- "n": 25,+ "n": 22,"p25_sec": 240.0,- "p50_sec": 300.0,+ "p50_sec": 360.0,"p75_sec": 600.0},"ltx|t2v|standard|121.0|M1 Ultra|any": {@@ -22001,10 +18659,10 @@"p75_sec": 615.0},"ltx|t2v|standard|121.0|M2 Max|any": {- "n": 13,+ "n": 12,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 135.0},"ltx|t2v|standard|121.0|M2 Pro|any": {"n": 3,@@ -22013,67 +18671,67 @@"p75_sec": 210.0},"ltx|t2v|standard|121.0|M2 Ultra|any": {- "n": 9,+ "n": 4,"p25_sec": 180.0,- "p50_sec": 180.0,+ "p50_sec": 210.0,"p75_sec": 240.0},"ltx|t2v|standard|121.0|M3 Max|any": {- "n": 14,- "p25_sec": 195.0,+ "n": 13,+ "p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|standard|121.0|M3 Ultra|any": {- "n": 79,- "p25_sec": 90.0,+ "n": 65,+ "p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 420.0},"ltx|t2v|standard|121.0|M3|any": {- "n": 16,- "p25_sec": 600.0,- "p50_sec": 600.0,+ "n": 7,+ "p25_sec": 750.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|t2v|standard|121.0|M4 Max|any": {- "n": 530,+ "n": 201,"p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "p50_sec": 180.0,+ "p75_sec": 420.0},"ltx|t2v|standard|121.0|M4 Pro|any": {- "n": 61,+ "n": 59,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|t2v|standard|121.0|M4|any": {- "n": 29,+ "n": 12,"p25_sec": 300.0,- "p50_sec": 600.0,- "p75_sec": 1200.0+ "p50_sec": 300.0,+ "p75_sec": 420.0},"ltx|t2v|standard|121.0|M5 Max|any": {- "n": 115,+ "n": 103,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|standard|121.0|M5 Pro|any": {- "n": 32,+ "n": 24,"p25_sec": 60.0,- "p50_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|standard|121.0|M5|any": {- "n": 187,+ "n": 182,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 360.0+ "p75_sec": 390.0},"ltx|t2v|standard|121.0|M6|any": {- "n": 30,+ "n": 21,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0@@ -22085,8 +18743,8 @@"p75_sec": 210.0},"ltx|t2v|standard|145.0|M5 Max|any": {- "n": 4,- "p25_sec": 195.0,+ "n": 3,+ "p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0},@@ -22115,10 +18773,10 @@"p75_sec": 420.0},"ltx|t2v|standard|169.0|M4|any": {- "n": 15,+ "n": 10,"p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 420.0},"ltx|t2v|standard|169.0|M5 Max|any": {"n": 104,@@ -22132,44 +18790,26 @@"p50_sec": 180.0,"p75_sec": 300.0},- "ltx|t2v|standard|169.0|M5|any": {- "n": 15,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|t2v|standard|193.0|M5|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 660.0- },"ltx|t2v|standard|217.0|M4 Max|any": {"n": 30,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|t2v|standard|217.0|M5|any": {- "n": 5,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 600.0- },"ltx|t2v|standard|241.0|M1 Max|any": {- "n": 63,+ "n": 62,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|standard|241.0|M1 Pro|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,- "p50_sec": 510.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|t2v|standard|241.0|M1 Ultra|any": {- "n": 190,+ "n": 180,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -22192,30 +18832,18 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|t2v|standard|241.0|M2 Ultra|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },"ltx|t2v|standard|241.0|M2|any": {- "n": 7,+ "n": 5,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|t2v|standard|241.0|M3 Max|any": {- "n": 10,- "p25_sec": 420.0,- "p50_sec": 510.0,+ "n": 3,+ "p25_sec": 750.0,+ "p50_sec": 900.0,"p75_sec": 900.0},- "ltx|t2v|standard|241.0|M3 Pro|any": {- "n": 4,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"ltx|t2v|standard|241.0|M3 Ultra|any": {"n": 10,"p25_sec": 330.0,@@ -22223,7 +18851,7 @@"p75_sec": 600.0},"ltx|t2v|standard|241.0|M4 Max|any": {- "n": 176,+ "n": 171,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -22235,37 +18863,31 @@"p75_sec": 600.0},"ltx|t2v|standard|241.0|M4|any": {- "n": 57,+ "n": 44,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0},"ltx|t2v|standard|241.0|M5 Max|any": {- "n": 825,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 300.0+ "n": 38,+ "p25_sec": 90.0,+ "p50_sec": 270.0,+ "p75_sec": 420.0},"ltx|t2v|standard|241.0|M5 Pro|any": {- "n": 47,- "p25_sec": 120.0,- "p50_sec": 180.0,- "p75_sec": 300.0- },- "ltx|t2v|standard|241.0|M5 Ultra|any": {- "n": 3,+ "n": 38,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 285.0},"ltx|t2v|standard|241.0|M5|any": {- "n": 67,+ "n": 60,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|standard|241.0|M6|any": {- "n": 89,+ "n": 69,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0@@ -22282,12 +18904,6 @@"p50_sec": 15.0,"p75_sec": 15.0},- "ltx|t2v|standard|25.0|M5 Pro|any": {- "n": 4,- "p25_sec": 15.0,- "p50_sec": 15.0,- "p75_sec": 15.0- },"ltx|t2v|standard|313.0|M4|any": {"n": 4,"p25_sec": 420.0,@@ -22306,12 +18922,6 @@"p50_sec": 240.0,"p75_sec": 240.0},- "ltx|t2v|standard|481.0|M4|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 975.0- },"ltx|t2v|standard|481.0|M5 Max|any": {"n": 3,"p25_sec": 420.0,@@ -22331,10 +18941,10 @@"p75_sec": 60.0},"ltx|t2v|standard|49.0|M5 Max|any": {- "n": 4,+ "n": 3,"p25_sec": 15.0,"p50_sec": 15.0,- "p75_sec": 18.8+ "p75_sec": 22.5},"ltx|t2v|standard|57.0|M3 Ultra|any": {"n": 35,@@ -22373,10 +18983,10 @@"p75_sec": 165.0},"ltx|t2v|standard|73.0|M4|any": {- "n": 27,+ "n": 23,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 210.0+ "p75_sec": 180.0},"ltx|t2v|standard|73.0|M5 Max|any": {"n": 4,@@ -22403,10 +19013,10 @@"p75_sec": 150.0},"ltx|t2v|standard|97.0|M4 Max|any": {- "n": 8,- "p25_sec": 90.0,- "p50_sec": 105.0,- "p75_sec": 255.0+ "n": 4,+ "p25_sec": 210.0,+ "p50_sec": 270.0,+ "p75_sec": 300.0},"ltx|t2v|standard|97.0|M4 Pro|any": {"n": 6,@@ -22432,14 +19042,8 @@},"model": {"cells": {- "h3|a2v|draft_3s|121.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|a2v|draft_5s|120.0|best": {- "n": 12,+ "n": 8,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0@@ -22451,119 +19055,23 @@"p75_sec": 180.0},"h3|a2v|high_10s|134.0|best": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|a2v|high_10s|163.0|best": {- "n": 3,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1500.0- },- "h3|a2v|high_10s|168.0|best": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1500.0,- "p75_sec": 1800.0- },- "h3|a2v|high_10s|178.0|best": {"n": 4,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1350.0},- "h3|a2v|high_3s|72.0|best": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|a2v|high_5s|108.0|best": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0- },"h3|a2v|high_5s|159.0|best": {"n": 4,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0},- "h3|a2v|high_5s|192.0|fast": {- "n": 24,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|216.0|fast": {- "n": 22,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|240.0|fast": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|a2v|high_5s|73.0|best": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|high_5s|74.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|a2v|standard_5s|120.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|extend|draft_5s|244.0|fast": {- "n": 3,- "p25_sec": 210.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },- "h3|extend|draft_5s|484.0|best": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|extend|high_15s|722.0|best": {- "n": 3,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },- "h3|extend|high_5s|244.0|fast": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 810.0- },"h3|extend|standard_10s|495.0|fast": {"n": 3,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},- "h3|extend|standard_3s|160.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },"h3|i2v|draft_10s_dense|243.0|best": {"n": 67,"p25_sec": 900.0,@@ -22577,76 +19085,70 @@"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|best": {- "n": 85,- "p25_sec": 300.0,+ "n": 66,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"h3|i2v|draft_10s|243.0|fast": {- "n": 143,+ "n": 130,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 420.0+ "p75_sec": 555.0},"h3|i2v|draft_15s|362.0|best": {- "n": 20,- "p25_sec": 420.0,+ "n": 16,+ "p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 2400.0},"h3|i2v|draft_15s|362.0|fast": {- "n": 91,+ "n": 86,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 900.0},"h3|i2v|draft_3s|73.0|best": {- "n": 150,+ "n": 137,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 240.0,"p75_sec": 420.0},"h3|i2v|draft_3s|73.0|fast": {- "n": 165,- "p25_sec": 90.0,- "p50_sec": 120.0,+ "n": 96,+ "p25_sec": 60.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"h3|i2v|draft_5s|124.0|best": {- "n": 192,+ "n": 178,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 600.0},"h3|i2v|draft_5s|124.0|fast": {- "n": 180,+ "n": 153,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0},"h3|i2v|fast_hd_10s|243.0|fast": {- "n": 100,+ "n": 30,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "h3|i2v|fast_hd_15s|362.0|fast": {- "n": 6,- "p25_sec": 330.0,- "p50_sec": 750.0,- "p75_sec": 900.0- },"h3|i2v|fast_hd_3s|73.0|fast": {- "n": 5,+ "n": 4,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 135.0},"h3|i2v|fast_hd_5s|124.0|fast": {- "n": 25,- "p25_sec": 240.0,+ "n": 3,+ "p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 300.0+ "p75_sec": 600.0},"h3|i2v|high_10s_dense|243.0|best": {"n": 16,@@ -22661,23 +19163,17 @@"p75_sec": 2400.0},"h3|i2v|high_10s|243.0|best": {- "n": 191,- "p25_sec": 1200.0,+ "n": 181,+ "p25_sec": 1800.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|i2v|high_10s|243.0|fast": {- "n": 330,+ "n": 272,"p25_sec": 600.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|high_10s|243.0|v13": {- "n": 22,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"h3|i2v|high_15s|362.0|best": {"n": 102,"p25_sec": 3600.0,@@ -22685,47 +19181,35 @@"p75_sec": 5400.0},"h3|i2v|high_15s|362.0|fast": {- "n": 1060,+ "n": 855,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},- "h3|i2v|high_15s|362.0|v13": {- "n": 9,- "p25_sec": 900.0,- "p50_sec": 900.0,- "p75_sec": 900.0- },"h3|i2v|high_3s|73.0|best": {- "n": 589,+ "n": 306,"p25_sec": 300.0,- "p50_sec": 600.0,- "p75_sec": 1200.0+ "p50_sec": 300.0,+ "p75_sec": 300.0},"h3|i2v|high_3s|73.0|fast": {- "n": 396,+ "n": 314,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 240.0},"h3|i2v|high_5s|124.0|best": {- "n": 693,+ "n": 654,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0},"h3|i2v|high_5s|124.0|fast": {- "n": 1615,+ "n": 1359,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 600.0},- "h3|i2v|high_5s|124.0|v13": {- "n": 6,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 285.0- },"h3|i2v|native_10s_dense|243.0|fast": {"n": 3,"p25_sec": 4500.0,@@ -22757,7 +19241,7 @@"p75_sec": 3600.0},"h3|i2v|native_3s|73.0|best": {- "n": 19,+ "n": 20,"p25_sec": 1800.0,"p50_sec": 1800.0,"p75_sec": 1800.0@@ -22769,7 +19253,7 @@"p75_sec": 600.0},"h3|i2v|native_5s|124.0|best": {- "n": 72,+ "n": 61,"p25_sec": 1800.0,"p50_sec": 2400.0,"p75_sec": 3600.0@@ -22781,8 +19265,8 @@"p75_sec": 1200.0},"h3|i2v|standard_10s_dense|243.0|best": {- "n": 54,- "p25_sec": 2400.0,+ "n": 42,+ "p25_sec": 1800.0,"p50_sec": 2400.0,"p75_sec": 2400.0},@@ -22793,107 +19277,59 @@"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|best": {- "n": 148,- "p25_sec": 420.0,+ "n": 171,+ "p25_sec": 900.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|i2v|standard_10s|243.0|fast": {- "n": 347,+ "n": 289,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 750.0+ "p75_sec": 600.0},"h3|i2v|standard_15s|362.0|best": {- "n": 69,+ "n": 93,"p25_sec": 900.0,"p50_sec": 2400.0,"p75_sec": 3600.0},"h3|i2v|standard_15s|362.0|fast": {- "n": 102,+ "n": 99,"p25_sec": 420.0,"p50_sec": 900.0,"p75_sec": 1800.0},"h3|i2v|standard_3s|73.0|best": {- "n": 82,+ "n": 76,"p25_sec": 90.0,"p50_sec": 180.0,"p75_sec": 300.0},"h3|i2v|standard_3s|73.0|fast": {- "n": 55,+ "n": 52,"p25_sec": 90.0,"p50_sec": 180.0,- "p75_sec": 270.0+ "p75_sec": 300.0},"h3|i2v|standard_5s|124.0|best": {- "n": 356,+ "n": 281,"p25_sec": 240.0,- "p50_sec": 420.0,+ "p50_sec": 300.0,"p75_sec": 600.0},"h3|i2v|standard_5s|124.0|fast": {- "n": 442,+ "n": 425,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},- "h3|keyframe|draft_10s|243.0|best": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|keyframe|draft_10s|243.0|fast": {- "n": 3,- "p25_sec": 360.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "h3|keyframe|draft_3s|73.0|fast": {- "n": 7,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "h3|keyframe|draft_5s|124.0|best": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0- },"h3|keyframe|draft_5s|124.0|fast": {- "n": 14,+ "n": 12,"p25_sec": 120.0,"p50_sec": 120.0,"p75_sec": 120.0},- "h3|keyframe|fast_hd_10s|243.0|fast": {- "n": 6,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },- "h3|keyframe|fast_hd_5s|124.0|fast": {- "n": 4,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 165.0- },- "h3|keyframe|high_10s|243.0|fast": {- "n": 5,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },- "h3|keyframe|high_15s|362.0|fast": {- "n": 4,- "p25_sec": 1200.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },"h3|keyframe|high_3s|73.0|fast": {"n": 7,"p25_sec": 120.0,@@ -22901,46 +19337,34 @@"p75_sec": 120.0},"h3|keyframe|high_5s|124.0|best": {- "n": 7,- "p25_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,"p50_sec": 900.0,- "p75_sec": 1200.0+ "p75_sec": 900.0},"h3|keyframe|high_5s|124.0|fast": {- "n": 30,- "p25_sec": 300.0,+ "n": 6,+ "p25_sec": 255.0,"p50_sec": 300.0,- "p75_sec": 390.0- },- "h3|keyframe|standard_10s|243.0|fast": {- "n": 3,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|keyframe|standard_3s|73.0|best": {- "n": 5,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0+ "p75_sec": 300.0},"h3|keyframe|standard_5s|124.0|best": {- "n": 8,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"h3|keyframe|standard_5s|124.0|fast": {- "n": 33,- "p25_sec": 240.0,+ "n": 5,+ "p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 240.0},"h3|t2v|draft_10s_dense|243.0|best": {- "n": 97,+ "n": 126,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 825.0+ "p75_sec": 600.0},"h3|t2v|draft_10s_dense|243.0|fast": {"n": 12,@@ -22949,85 +19373,61 @@"p75_sec": 600.0},"h3|t2v|draft_10s|243.0|best": {- "n": 86,+ "n": 85,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|t2v|draft_10s|243.0|fast": {- "n": 80,+ "n": 69,"p25_sec": 180.0,"p50_sec": 420.0,"p75_sec": 600.0},"h3|t2v|draft_15s|362.0|best": {- "n": 27,+ "n": 22,"p25_sec": 600.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|draft_15s|362.0|fast": {- "n": 78,+ "n": 73,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 1200.0},"h3|t2v|draft_3s|73.0|best": {- "n": 777,+ "n": 769,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 90.0},"h3|t2v|draft_3s|73.0|fast": {- "n": 260,+ "n": 247,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 180.0},- "h3|t2v|draft_3s|73.0|turbo": {- "n": 4,- "p25_sec": 82.5,- "p50_sec": 135.0,- "p75_sec": 195.0- },"h3|t2v|draft_5s|124.0|best": {- "n": 545,+ "n": 547,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 600.0},"h3|t2v|draft_5s|124.0|fast": {- "n": 306,+ "n": 253,"p25_sec": 90.0,- "p50_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 300.0},- "h3|t2v|fast_hd_10s|243.0|fast": {- "n": 12,- "p25_sec": 480.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },- "h3|t2v|fast_hd_15s|362.0|fast": {- "n": 46,- "p25_sec": 300.0,- "p50_sec": 900.0,- "p75_sec": 1800.0- },"h3|t2v|fast_hd_3s|73.0|fast": {"n": 7,"p25_sec": 37.5,"p50_sec": 45.0,"p75_sec": 45.0},- "h3|t2v|fast_hd_5s|124.0|fast": {- "n": 17,- "p25_sec": 60.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"h3|t2v|high_10s_dense|243.0|best": {- "n": 71,+ "n": 81,"p25_sec": 5400.0,"p50_sec": 5400.0,"p75_sec": 5400.0@@ -23039,27 +19439,27 @@"p75_sec": 1800.0},"h3|t2v|high_10s|243.0|best": {- "n": 29,+ "n": 30,"p25_sec": 2400.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|high_10s|243.0|fast": {- "n": 36,- "p25_sec": 600.0,+ "n": 33,+ "p25_sec": 900.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"h3|t2v|high_15s|362.0|best": {- "n": 64,+ "n": 61,"p25_sec": 3600.0,"p50_sec": 5400.0,"p75_sec": 5400.0},"h3|t2v|high_15s|362.0|fast": {- "n": 49,+ "n": 33,"p25_sec": 600.0,- "p50_sec": 900.0,+ "p50_sec": 1800.0,"p75_sec": 2400.0},"h3|t2v|high_3s|73.0|best": {@@ -23069,19 +19469,19 @@"p75_sec": 900.0},"h3|t2v|high_3s|73.0|fast": {- "n": 110,+ "n": 103,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},"h3|t2v|high_5s|124.0|best": {- "n": 114,+ "n": 111,"p25_sec": 600.0,"p50_sec": 1200.0,"p75_sec": 1800.0},"h3|t2v|high_5s|124.0|fast": {- "n": 125,+ "n": 109,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -23105,7 +19505,7 @@"p75_sec": 3600.0},"h3|t2v|native_15s|362.0|best": {- "n": 12,+ "n": 10,"p25_sec": 5400.0,"p50_sec": 5400.0,"p75_sec": 5400.0@@ -23117,7 +19517,7 @@"p75_sec": 3600.0},"h3|t2v|native_3s|73.0|best": {- "n": 14,+ "n": 15,"p25_sec": 975.0,"p50_sec": 1200.0,"p75_sec": 1650.0@@ -23141,7 +19541,7 @@"p75_sec": 1800.0},"h3|t2v|standard_10s_dense|243.0|best": {- "n": 60,+ "n": 61,"p25_sec": 3600.0,"p50_sec": 3600.0,"p75_sec": 3600.0@@ -23153,59 +19553,53 @@"p75_sec": 675.0},"h3|t2v|standard_10s|243.0|best": {- "n": 76,+ "n": 77,"p25_sec": 900.0,"p50_sec": 2400.0,"p75_sec": 2400.0},"h3|t2v|standard_10s|243.0|fast": {- "n": 65,+ "n": 60,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 900.0+ "p75_sec": 675.0},"h3|t2v|standard_15s|362.0|best": {- "n": 56,+ "n": 44,"p25_sec": 900.0,"p50_sec": 1200.0,"p75_sec": 3600.0},"h3|t2v|standard_15s|362.0|fast": {- "n": 108,+ "n": 92,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 900.0},"h3|t2v|standard_3s|73.0|best": {- "n": 189,+ "n": 190,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"h3|t2v|standard_3s|73.0|fast": {- "n": 111,+ "n": 106,"p25_sec": 60.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 165.0},"h3|t2v|standard_5s|124.0|best": {- "n": 163,+ "n": 175,"p25_sec": 300.0,"p50_sec": 600.0,"p75_sec": 900.0},"h3|t2v|standard_5s|124.0|fast": {- "n": 168,+ "n": 161,"p25_sec": 120.0,"p50_sec": 300.0,"p75_sec": 600.0},- "h3|t2v|standard_5s|124.0|turbo": {- "n": 8,- "p25_sec": 345.0,- "p50_sec": 420.0,- "p75_sec": 465.0- },"ltx23|t2v|high|121.0|any": {"n": 4,"p25_sec": 240.0,@@ -23213,183 +19607,165 @@"p75_sec": 240.0},"ltx|a2v|balanced|105.0|any": {- "n": 28,- "p25_sec": 240.0,- "p50_sec": 240.0,+ "n": 11,+ "p25_sec": 105.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|a2v|balanced|113.0|any": {- "n": 17,- "p25_sec": 300.0,- "p50_sec": 420.0,- "p75_sec": 1200.0+ "n": 7,+ "p25_sec": 90.0,+ "p50_sec": 90.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|121.0|any": {- "n": 129,+ "n": 105,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|a2v|balanced|129.0|any": {- "n": 35,- "p25_sec": 300.0,+ "n": 18,+ "p25_sec": 120.0,"p50_sec": 420.0,- "p75_sec": 600.0+ "p75_sec": 420.0},"ltx|a2v|balanced|137.0|any": {- "n": 36,+ "n": 24,"p25_sec": 120.0,- "p50_sec": 420.0,- "p75_sec": 675.0+ "p50_sec": 210.0,+ "p75_sec": 420.0},"ltx|a2v|balanced|145.0|any": {- "n": 51,- "p25_sec": 240.0,- "p50_sec": 600.0,- "p75_sec": 750.0+ "n": 36,+ "p25_sec": 225.0,+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|153.0|any": {- "n": 32,- "p25_sec": 420.0,+ "n": 16,+ "p25_sec": 120.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"ltx|a2v|balanced|161.0|any": {- "n": 21,- "p25_sec": 600.0,+ "n": 12,+ "p25_sec": 555.0,"p50_sec": 600.0,- "p75_sec": 1800.0+ "p75_sec": 600.0},"ltx|a2v|balanced|169.0|any": {- "n": 45,- "p25_sec": 420.0,+ "n": 26,+ "p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|a2v|balanced|177.0|any": {- "n": 28,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 2400.0+ "n": 13,+ "p25_sec": 180.0,+ "p50_sec": 420.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|185.0|any": {- "n": 11,- "p25_sec": 510.0,- "p50_sec": 600.0,- "p75_sec": 2400.0+ "n": 4,+ "p25_sec": 345.0,+ "p50_sec": 510.0,+ "p75_sec": 600.0},"ltx|a2v|balanced|193.0|any": {- "n": 20,+ "n": 18,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 675.0+ "p75_sec": 600.0},"ltx|a2v|balanced|201.0|any": {- "n": 18,+ "n": 12,"p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 2025.0+ "p50_sec": 600.0,+ "p75_sec": 900.0},"ltx|a2v|balanced|209.0|any": {- "n": 12,- "p25_sec": 900.0,+ "n": 4,+ "p25_sec": 825.0,"p50_sec": 900.0,- "p75_sec": 2400.0+ "p75_sec": 900.0},"ltx|a2v|balanced|217.0|any": {- "n": 55,+ "n": 51,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|a2v|balanced|225.0|any": {- "n": 5,- "p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },- "ltx|a2v|balanced|233.0|any": {- "n": 7,- "p25_sec": 900.0,- "p50_sec": 2400.0,- "p75_sec": 2400.0- },"ltx|a2v|balanced|241.0|any": {- "n": 74,+ "n": 64,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 900.0},- "ltx|a2v|balanced|289.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|a2v|balanced|41.0|any": {- "n": 5,- "p25_sec": 120.0,- "p50_sec": 120.0,+ "n": 4,+ "p25_sec": 97.5,+ "p50_sec": 210.0,"p75_sec": 300.0},"ltx|a2v|balanced|49.0|any": {- "n": 16,- "p25_sec": 180.0,+ "n": 12,+ "p25_sec": 270.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|a2v|balanced|57.0|any": {- "n": 13,- "p25_sec": 120.0,+ "n": 10,+ "p25_sec": 90.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|a2v|balanced|65.0|any": {- "n": 24,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 465.0+ "n": 8,+ "p25_sec": 56.2,+ "p50_sec": 240.0,+ "p75_sec": 300.0},"ltx|a2v|balanced|73.0|any": {- "n": 76,- "p25_sec": 180.0,+ "n": 65,+ "p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|a2v|balanced|81.0|any": {- "n": 35,- "p25_sec": 180.0,+ "n": 14,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|a2v|balanced|89.0|any": {- "n": 26,- "p25_sec": 240.0,+ "n": 16,+ "p25_sec": 60.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|a2v|balanced|97.0|any": {- "n": 48,- "p25_sec": 240.0,- "p50_sec": 360.0,- "p75_sec": 465.0+ "n": 29,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 420.0},"ltx|a2v|high|105.0|any": {- "n": 12,+ "n": 11,"p25_sec": 60.0,- "p50_sec": 330.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|a2v|high|113.0|any": {- "n": 9,- "p25_sec": 240.0,- "p50_sec": 240.0,+ "n": 7,+ "p25_sec": 210.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|a2v|high|121.0|any": {- "n": 91,- "p25_sec": 180.0,- "p50_sec": 240.0,+ "n": 67,+ "p25_sec": 240.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|a2v|high|129.0|any": {@@ -23405,88 +19781,70 @@"p75_sec": 300.0},"ltx|a2v|high|145.0|any": {- "n": 37,+ "n": 30,"p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 555.0},"ltx|a2v|high|153.0|any": {- "n": 6,+ "n": 4,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 337.5+ "p75_sec": 90.0},"ltx|a2v|high|161.0|any": {- "n": 6,- "p25_sec": 165.0,- "p50_sec": 360.0,- "p75_sec": 555.0+ "n": 4,+ "p25_sec": 120.0,+ "p50_sec": 270.0,+ "p75_sec": 1215.0},"ltx|a2v|high|169.0|any": {- "n": 197,+ "n": 193,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 900.0},"ltx|a2v|high|185.0|any": {- "n": 6,+ "n": 5,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|a2v|high|193.0|any": {- "n": 144,+ "n": 124,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|a2v|high|201.0|any": {- "n": 3,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 510.0- },- "ltx|a2v|high|209.0|any": {- "n": 6,- "p25_sec": 240.0,- "p50_sec": 510.0,- "p75_sec": 600.0- },"ltx|a2v|high|217.0|any": {- "n": 88,+ "n": 75,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|a2v|high|241.0|any": {- "n": 190,+ "n": 121,"p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 600.0+ "p50_sec": 420.0,+ "p75_sec": 1125.0},"ltx|a2v|high|249.0|any": {- "n": 5,- "p25_sec": 600.0,+ "n": 3,+ "p25_sec": 390.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 600.0},"ltx|a2v|high|265.0|any": {- "n": 9,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 900.0+ "p75_sec": 825.0},"ltx|a2v|high|289.0|any": {- "n": 16,- "p25_sec": 420.0,- "p50_sec": 750.0,- "p75_sec": 900.0- },- "ltx|a2v|high|313.0|any": {- "n": 4,- "p25_sec": 1125.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0+ "n": 7,+ "p25_sec": 300.0,+ "p50_sec": 420.0,+ "p75_sec": 660.0},"ltx|a2v|high|361.0|any": {"n": 12,@@ -23507,7 +19865,7 @@"p75_sec": 1200.0},"ltx|a2v|high|433.0|any": {- "n": 121,+ "n": 116,"p25_sec": 1200.0,"p50_sec": 1200.0,"p75_sec": 2400.0@@ -23519,13 +19877,13 @@"p75_sec": 1800.0},"ltx|a2v|high|49.0|any": {- "n": 8,- "p25_sec": 78.8,- "p50_sec": 120.0,- "p75_sec": 420.0+ "n": 3,+ "p25_sec": 45.0,+ "p50_sec": 45.0,+ "p75_sec": 622.5},"ltx|a2v|high|57.0|any": {- "n": 18,+ "n": 17,"p25_sec": 45.0,"p50_sec": 45.0,"p75_sec": 45.0@@ -23561,13 +19919,13 @@"p75_sec": 5400.0},"ltx|a2v|high|73.0|any": {- "n": 80,- "p25_sec": 120.0,- "p50_sec": 240.0,+ "n": 53,+ "p25_sec": 180.0,+ "p50_sec": 360.0,"p75_sec": 600.0},"ltx|a2v|high|81.0|any": {- "n": 21,+ "n": 16,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -23579,88 +19937,76 @@"p75_sec": 2250.0},"ltx|a2v|high|97.0|any": {- "n": 25,- "p25_sec": 300.0,+ "n": 22,+ "p25_sec": 420.0,"p50_sec": 420.0,- "p75_sec": 750.0+ "p75_sec": 975.0},"ltx|a2v|quick|241.0|any": {- "n": 69,- "p25_sec": 120.0,- "p50_sec": 240.0,- "p75_sec": 900.0+ "n": 23,+ "p25_sec": 150.0,+ "p50_sec": 900.0,+ "p75_sec": 1200.0},"ltx|a2v|standard|105.0|any": {- "n": 22,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 375.0- },- "ltx|a2v|standard|113.0|any": {- "n": 13,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "n": 9,+ "p25_sec": 240.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|a2v|standard|121.0|any": {- "n": 42,- "p25_sec": 120.0,- "p50_sec": 120.0,+ "n": 20,+ "p25_sec": 300.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|a2v|standard|129.0|any": {- "n": 19,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 300.0+ "n": 8,+ "p25_sec": 300.0,+ "p50_sec": 450.0,+ "p75_sec": 600.0},"ltx|a2v|standard|137.0|any": {- "n": 14,+ "n": 10,"p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 300.0+ "p50_sec": 300.0,+ "p75_sec": 525.0},"ltx|a2v|standard|145.0|any": {- "n": 20,- "p25_sec": 390.0,+ "n": 18,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 1125.0+ "p75_sec": 1575.0},"ltx|a2v|standard|153.0|any": {- "n": 8,- "p25_sec": 345.0,- "p50_sec": 510.0,+ "n": 6,+ "p25_sec": 465.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|a2v|standard|161.0|any": {- "n": 14,- "p25_sec": 120.0,+ "n": 8,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 900.0},"ltx|a2v|standard|169.0|any": {- "n": 14,+ "n": 13,"p25_sec": 420.0,- "p50_sec": 750.0,- "p75_sec": 1125.0- },- "ltx|a2v|standard|177.0|any": {- "n": 10,- "p25_sec": 210.0,"p50_sec": 900.0,- "p75_sec": 2100.0+ "p75_sec": 1200.0},- "ltx|a2v|standard|185.0|any": {+ "ltx|a2v|standard|177.0|any": {"n": 6,- "p25_sec": 195.0,- "p50_sec": 330.0,- "p75_sec": 780.0+ "p25_sec": 975.0,+ "p50_sec": 1800.0,+ "p75_sec": 2400.0},"ltx|a2v|standard|193.0|any": {- "n": 14,+ "n": 11,"p25_sec": 900.0,"p50_sec": 900.0,- "p75_sec": 2100.0+ "p75_sec": 2400.0},"ltx|a2v|standard|201.0|any": {"n": 3,@@ -23669,67 +20015,25 @@"p75_sec": 1650.0},"ltx|a2v|standard|241.0|any": {- "n": 105,+ "n": 87,"p25_sec": 600.0,- "p50_sec": 900.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},- "ltx|a2v|standard|25.0|any": {- "n": 8,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 180.0- },- "ltx|a2v|standard|41.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 60.0- },- "ltx|a2v|standard|49.0|any": {- "n": 23,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|57.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 150.0- },- "ltx|a2v|standard|65.0|any": {- "n": 6,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },"ltx|a2v|standard|73.0|any": {- "n": 53,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 180.0- },- "ltx|a2v|standard|81.0|any": {- "n": 13,- "p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 90.0- },- "ltx|a2v|standard|89.0|any": {- "n": 6,+ "n": 36,"p25_sec": 90.0,- "p50_sec": 90.0,- "p75_sec": 202.5+ "p50_sec": 120.0,+ "p75_sec": 195.0},"ltx|a2v|standard|97.0|any": {- "n": 46,- "p25_sec": 120.0,- "p50_sec": 420.0,+ "n": 32,+ "p25_sec": 390.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|extend|balanced|121.0|any": {- "n": 55,+ "n": 45,"p25_sec": 600.0,"p50_sec": 1200.0,"p75_sec": 1800.0@@ -23741,10 +20045,10 @@"p75_sec": 4500.0},"ltx|extend|balanced|241.0|any": {- "n": 28,- "p25_sec": 1200.0,+ "n": 17,+ "p25_sec": 1800.0,"p50_sec": 1800.0,- "p75_sec": 2400.0+ "p75_sec": 3600.0},"ltx|extend|high|121.0|any": {"n": 4,@@ -23777,13 +20081,13 @@"p75_sec": 285.0},"ltx|i2v|balanced|113.0|any": {- "n": 75,+ "n": 67,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 120.0},"ltx|i2v|balanced|121.0|any": {- "n": 5132,+ "n": 3884,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0@@ -23795,13 +20099,13 @@"p75_sec": 90.0},"ltx|i2v|balanced|137.0|any": {- "n": 38,+ "n": 40,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 225.0},"ltx|i2v|balanced|145.0|any": {- "n": 380,+ "n": 368,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -23819,7 +20123,7 @@"p75_sec": 420.0},"ltx|i2v|balanced|169.0|any": {- "n": 1163,+ "n": 941,"p25_sec": 120.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -23837,9 +20141,9 @@"p75_sec": 600.0},"ltx|i2v|balanced|193.0|any": {- "n": 910,- "p25_sec": 120.0,- "p50_sec": 120.0,+ "n": 313,+ "p25_sec": 300.0,+ "p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|balanced|201.0|any": {@@ -23867,22 +20171,22 @@"p75_sec": 420.0},"ltx|i2v|balanced|241.0|any": {- "n": 4256,+ "n": 3406,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 600.0},"ltx|i2v|balanced|249.0|any": {- "n": 59,+ "n": 19,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|balanced|25.0|any": {- "n": 18,- "p25_sec": 48.8,- "p50_sec": 60.0,- "p75_sec": 60.0+ "n": 7,+ "p25_sec": 37.5,+ "p50_sec": 45.0,+ "p75_sec": 52.5},"ltx|i2v|balanced|289.0|any": {"n": 46,@@ -23903,52 +20207,40 @@"p75_sec": 510.0},"ltx|i2v|balanced|361.0|any": {- "n": 182,+ "n": 156,"p25_sec": 300.0,- "p50_sec": 420.0,+ "p50_sec": 360.0,"p75_sec": 420.0},- "ltx|i2v|balanced|41.0|any": {- "n": 7,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 150.0- },"ltx|i2v|balanced|433.0|any": {"n": 18,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},- "ltx|i2v|balanced|457.0|any": {- "n": 4,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 1050.0- },"ltx|i2v|balanced|481.0|any": {- "n": 633,+ "n": 218,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|balanced|49.0|any": {- "n": 121,+ "n": 95,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|i2v|balanced|57.0|any": {- "n": 12,- "p25_sec": 120.0,+ "n": 5,+ "p25_sec": 90.0,"p50_sec": 120.0,- "p75_sec": 135.0+ "p75_sec": 180.0},"ltx|i2v|balanced|65.0|any": {- "n": 71,+ "n": 52,"p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 120.0+ "p50_sec": 60.0,+ "p75_sec": 180.0},"ltx|i2v|balanced|721.0|any": {"n": 10,@@ -23957,51 +20249,39 @@"p75_sec": 1800.0},"ltx|i2v|balanced|73.0|any": {- "n": 745,+ "n": 661,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 90.0},"ltx|i2v|balanced|81.0|any": {- "n": 78,- "p25_sec": 90.0,+ "n": 52,+ "p25_sec": 60.0,"p50_sec": 90.0,- "p75_sec": 180.0+ "p75_sec": 90.0},"ltx|i2v|balanced|89.0|any": {- "n": 64,+ "n": 63,"p25_sec": 90.0,"p50_sec": 90.0,"p75_sec": 90.0},"ltx|i2v|balanced|97.0|any": {- "n": 173,+ "n": 145,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 180.0+ "p75_sec": 225.0},"ltx|i2v|draft|121.0|any": {- "n": 8,+ "n": 6,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 150.0,"p75_sec": 180.0},- "ltx|i2v|draft|73.0|any": {- "n": 6,- "p25_sec": 45.0,- "p50_sec": 82.5,- "p75_sec": 120.0- },"ltx|i2v|high_720p|121.0|any": {- "n": 64,+ "n": 18,"p25_sec": 300.0,"p50_sec": 420.0,- "p75_sec": 900.0- },- "ltx|i2v|high_720p|169.0|any": {- "n": 11,- "p25_sec": 510.0,- "p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|high_720p|193.0|any": {@@ -24011,57 +20291,51 @@"p75_sec": 1800.0},"ltx|i2v|high_720p|241.0|any": {- "n": 70,- "p25_sec": 420.0,+ "n": 35,+ "p25_sec": 1200.0,"p50_sec": 1200.0,- "p75_sec": 1200.0+ "p75_sec": 2400.0},"ltx|i2v|high_720p|73.0|any": {- "n": 38,- "p25_sec": 300.0,- "p50_sec": 600.0,+ "n": 3,+ "p25_sec": 210.0,+ "p50_sec": 300.0,"p75_sec": 600.0},- "ltx|i2v|high_720p|97.0|any": {- "n": 38,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 900.0- },"ltx|i2v|high|113.0|any": {- "n": 36,+ "n": 35,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|high|121.0|any": {- "n": 580,+ "n": 493,"p25_sec": 180.0,- "p50_sec": 300.0,+ "p50_sec": 240.0,"p75_sec": 420.0},"ltx|i2v|high|145.0|any": {- "n": 82,+ "n": 78,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|high|169.0|any": {- "n": 68,+ "n": 67,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|i2v|high|193.0|any": {- "n": 4,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|high|241.0|any": {- "n": 498,+ "n": 362,"p25_sec": 420.0,- "p50_sec": 420.0,+ "p50_sec": 600.0,"p75_sec": 900.0},"ltx|i2v|high|289.0|any": {@@ -24083,7 +20357,7 @@"p75_sec": 1200.0},"ltx|i2v|high|361.0|any": {- "n": 23,+ "n": 21,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 600.0@@ -24107,67 +20381,67 @@"p75_sec": 120.0},"ltx|i2v|high|73.0|any": {- "n": 158,+ "n": 140,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 240.0+ "p75_sec": 180.0},"ltx|i2v|high|97.0|any": {- "n": 218,+ "n": 210,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 240.0+ "p75_sec": 180.0},"ltx|i2v|quick|105.0|any": {- "n": 17,+ "n": 9,"p25_sec": 120.0,- "p50_sec": 300.0,+ "p50_sec": 180.0,"p75_sec": 300.0},"ltx|i2v|quick|113.0|any": {- "n": 80,- "p25_sec": 90.0,- "p50_sec": 90.0,+ "n": 25,+ "p25_sec": 120.0,+ "p50_sec": 180.0,"p75_sec": 180.0},"ltx|i2v|quick|121.0|any": {- "n": 645,+ "n": 544,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 240.0},"ltx|i2v|quick|129.0|any": {- "n": 23,+ "n": 21,"p25_sec": 60.0,- "p50_sec": 60.0,+ "p50_sec": 120.0,"p75_sec": 240.0},"ltx|i2v|quick|137.0|any": {- "n": 30,+ "n": 28,"p25_sec": 120.0,"p50_sec": 120.0,- "p75_sec": 120.0+ "p75_sec": 135.0},"ltx|i2v|quick|145.0|any": {- "n": 48,- "p25_sec": 75.0,+ "n": 28,+ "p25_sec": 210.0,"p50_sec": 240.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|i2v|quick|153.0|any": {- "n": 16,+ "n": 13,"p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|quick|161.0|any": {- "n": 9,- "p25_sec": 240.0,- "p50_sec": 300.0,+ "n": 6,+ "p25_sec": 300.0,+ "p50_sec": 360.0,"p75_sec": 420.0},"ltx|i2v|quick|169.0|any": {- "n": 139,+ "n": 119,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -24185,9 +20459,9 @@"p75_sec": 600.0},"ltx|i2v|quick|193.0|any": {- "n": 22,- "p25_sec": 45.0,- "p50_sec": 165.0,+ "n": 10,+ "p25_sec": 600.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|i2v|quick|201.0|any": {@@ -24203,10 +20477,10 @@"p75_sec": 600.0},"ltx|i2v|quick|217.0|any": {- "n": 17,- "p25_sec": 180.0,+ "n": 12,+ "p25_sec": 600.0,"p50_sec": 600.0,- "p75_sec": 600.0+ "p75_sec": 675.0},"ltx|i2v|quick|225.0|any": {"n": 9,@@ -24215,19 +20489,19 @@"p75_sec": 600.0},"ltx|i2v|quick|233.0|any": {- "n": 15,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 360.0+ "n": 4,+ "p25_sec": 600.0,+ "p50_sec": 600.0,+ "p75_sec": 600.0},"ltx|i2v|quick|241.0|any": {- "n": 467,+ "n": 387,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|25.0|any": {- "n": 16,+ "n": 8,"p25_sec": 15.0,"p50_sec": 30.0,"p75_sec": 60.0@@ -24251,26 +20525,26 @@"p75_sec": 180.0},"ltx|i2v|quick|361.0|any": {- "n": 6,- "p25_sec": 67.5,- "p50_sec": 105.0,- "p75_sec": 255.0+ "n": 5,+ "p25_sec": 90.0,+ "p50_sec": 120.0,+ "p75_sec": 300.0},"ltx|i2v|quick|41.0|any": {- "n": 11,+ "n": 10,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 75.0+ "p75_sec": 60.0},"ltx|i2v|quick|481.0|any": {- "n": 677,- "p25_sec": 240.0,+ "n": 325,+ "p25_sec": 300.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|quick|49.0|any": {- "n": 34,- "p25_sec": 30.0,+ "n": 31,+ "p25_sec": 37.5,"p50_sec": 120.0,"p75_sec": 180.0},@@ -24280,95 +20554,89 @@"p50_sec": 120.0,"p75_sec": 120.0},- "ltx|i2v|quick|65.0|any": {- "n": 3,- "p25_sec": 30.0,- "p50_sec": 30.0,- "p75_sec": 45.0- },"ltx|i2v|quick|73.0|any": {- "n": 372,+ "n": 323,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 240.0},"ltx|i2v|quick|81.0|any": {- "n": 21,- "p25_sec": 60.0,- "p50_sec": 90.0,- "p75_sec": 120.0+ "n": 15,+ "p25_sec": 52.5,+ "p50_sec": 120.0,+ "p75_sec": 150.0},"ltx|i2v|quick|89.0|any": {- "n": 14,- "p25_sec": 45.0,- "p50_sec": 60.0,- "p75_sec": 157.5+ "n": 8,+ "p25_sec": 56.2,+ "p50_sec": 75.0,+ "p75_sec": 180.0},"ltx|i2v|quick|97.0|any": {- "n": 127,+ "n": 46,"p25_sec": 15.0,- "p50_sec": 30.0,- "p75_sec": 52.5+ "p50_sec": 60.0,+ "p75_sec": 285.0},"ltx|i2v|standard|105.0|any": {- "n": 8,+ "n": 5,"p25_sec": 60.0,"p50_sec": 60.0,- "p75_sec": 120.0+ "p75_sec": 60.0},"ltx|i2v|standard|113.0|any": {- "n": 62,+ "n": 26,"p25_sec": 60.0,- "p50_sec": 120.0,- "p75_sec": 180.0+ "p50_sec": 60.0,+ "p75_sec": 120.0},"ltx|i2v|standard|121.0|any": {- "n": 2451,+ "n": 1923,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},"ltx|i2v|standard|129.0|any": {- "n": 20,- "p25_sec": 105.0,+ "n": 17,+ "p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 330.0+ "p75_sec": 420.0},"ltx|i2v|standard|137.0|any": {- "n": 96,+ "n": 92,"p25_sec": 112.5,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|standard|145.0|any": {- "n": 162,+ "n": 128,"p25_sec": 120.0,- "p50_sec": 180.0,+ "p50_sec": 300.0,"p75_sec": 300.0},"ltx|i2v|standard|153.0|any": {- "n": 9,+ "n": 8,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 120.0+ "p75_sec": 97.5},"ltx|i2v|standard|161.0|any": {- "n": 5,+ "n": 4,"p25_sec": 90.0,"p50_sec": 90.0,- "p75_sec": 180.0+ "p75_sec": 292.5},"ltx|i2v|standard|169.0|any": {- "n": 1551,+ "n": 1157,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|i2v|standard|177.0|any": {- "n": 7,+ "n": 5,"p25_sec": 180.0,- "p50_sec": 300.0,- "p75_sec": 450.0+ "p50_sec": 180.0,+ "p75_sec": 600.0},"ltx|i2v|standard|185.0|any": {"n": 3,@@ -24377,13 +20645,13 @@"p75_sec": 750.0},"ltx|i2v|standard|193.0|any": {- "n": 95,+ "n": 92,"p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 420.0},"ltx|i2v|standard|217.0|any": {- "n": 15,+ "n": 16,"p25_sec": 240.0,"p50_sec": 240.0,"p75_sec": 240.0@@ -24401,7 +20669,7 @@"p75_sec": 435.0},"ltx|i2v|standard|241.0|any": {- "n": 2423,+ "n": 2019,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -24443,7 +20711,7 @@"p75_sec": 300.0},"ltx|i2v|standard|361.0|any": {- "n": 61,+ "n": 48,"p25_sec": 420.0,"p50_sec": 420.0,"p75_sec": 600.0@@ -24455,10 +20723,10 @@"p75_sec": 300.0},"ltx|i2v|standard|41.0|any": {- "n": 28,+ "n": 25,"p25_sec": 15.0,"p50_sec": 15.0,- "p75_sec": 30.0+ "p75_sec": 15.0},"ltx|i2v|standard|433.0|any": {"n": 6,@@ -24473,91 +20741,85 @@"p75_sec": 120.0},"ltx|i2v|standard|481.0|any": {- "n": 47,- "p25_sec": 510.0,+ "n": 46,+ "p25_sec": 465.0,"p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|i2v|standard|49.0|any": {- "n": 71,+ "n": 61,"p25_sec": 45.0,"p50_sec": 60.0,"p75_sec": 90.0},- "ltx|i2v|standard|57.0|any": {- "n": 4,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 67.5- },"ltx|i2v|standard|65.0|any": {- "n": 14,- "p25_sec": 33.8,- "p50_sec": 75.0,- "p75_sec": 90.0+ "n": 6,+ "p25_sec": 30.0,+ "p50_sec": 37.5,+ "p75_sec": 56.2},"ltx|i2v|standard|73.0|any": {- "n": 639,+ "n": 507,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|i2v|standard|81.0|any": {- "n": 49,+ "n": 38,"p25_sec": 45.0,"p50_sec": 45.0,- "p75_sec": 90.0+ "p75_sec": 45.0},"ltx|i2v|standard|89.0|any": {- "n": 39,+ "n": 34,"p25_sec": 45.0,- "p50_sec": 45.0,+ "p50_sec": 52.5,"p75_sec": 90.0},"ltx|i2v|standard|97.0|any": {- "n": 214,+ "n": 158,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|keyframe|balanced|121.0|any": {- "n": 149,+ "n": 123,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},"ltx|keyframe|balanced|169.0|any": {- "n": 43,+ "n": 39,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0},"ltx|keyframe|balanced|193.0|any": {- "n": 349,+ "n": 25,"p25_sec": 900.0,- "p50_sec": 900.0,+ "p50_sec": 1200.0,"p75_sec": 1200.0},"ltx|keyframe|balanced|241.0|any": {- "n": 105,+ "n": 95,"p25_sec": 600.0,"p50_sec": 900.0,"p75_sec": 1200.0},"ltx|keyframe|balanced|361.0|any": {- "n": 6,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 750.0+ "n": 3,+ "p25_sec": 1200.0,+ "p50_sec": 1200.0,+ "p75_sec": 1200.0},"ltx|keyframe|balanced|49.0|any": {- "n": 16,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 420.0+ "n": 3,+ "p25_sec": 180.0,+ "p50_sec": 180.0,+ "p75_sec": 180.0},"ltx|keyframe|balanced|73.0|any": {- "n": 42,+ "n": 40,"p25_sec": 120.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -24568,18 +20830,6 @@"p50_sec": 420.0,"p75_sec": 420.0},- "ltx|keyframe|high_720p|121.0|any": {- "n": 5,- "p25_sec": 240.0,- "p50_sec": 420.0,- "p75_sec": 420.0- },- "ltx|keyframe|high_720p|241.0|any": {- "n": 5,- "p25_sec": 3600.0,- "p50_sec": 3600.0,- "p75_sec": 3600.0- },"ltx|keyframe|high|113.0|any": {"n": 11,"p25_sec": 300.0,@@ -24587,8 +20837,8 @@"p75_sec": 300.0},"ltx|keyframe|high|121.0|any": {- "n": 95,- "p25_sec": 240.0,+ "n": 83,+ "p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},@@ -24599,10 +20849,10 @@"p75_sec": 300.0},"ltx|keyframe|high|145.0|any": {- "n": 4,+ "n": 3,"p25_sec": 240.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|keyframe|high|161.0|any": {"n": 11,@@ -24611,8 +20861,8 @@"p75_sec": 420.0},"ltx|keyframe|high|169.0|any": {- "n": 31,- "p25_sec": 600.0,+ "n": 15,+ "p25_sec": 330.0,"p50_sec": 600.0,"p75_sec": 600.0},@@ -24623,7 +20873,7 @@"p75_sec": 1200.0},"ltx|keyframe|high|241.0|any": {- "n": 25,+ "n": 23,"p25_sec": 420.0,"p50_sec": 600.0,"p75_sec": 900.0@@ -24641,26 +20891,26 @@"p75_sec": 600.0},"ltx|keyframe|high|49.0|any": {- "n": 11,+ "n": 12,"p25_sec": 195.0,"p50_sec": 270.0,"p75_sec": 300.0},"ltx|keyframe|high|73.0|any": {- "n": 17,+ "n": 12,"p25_sec": 180.0,- "p50_sec": 240.0,+ "p50_sec": 210.0,"p75_sec": 420.0},"ltx|keyframe|high|97.0|any": {- "n": 25,+ "n": 22,"p25_sec": 240.0,"p50_sec": 300.0,"p75_sec": 420.0},"ltx|keyframe|quick|121.0|any": {- "n": 18,- "p25_sec": 285.0,+ "n": 15,+ "p25_sec": 240.0,"p50_sec": 420.0,"p75_sec": 420.0},@@ -24671,10 +20921,10 @@"p75_sec": 555.0},"ltx|keyframe|quick|241.0|any": {- "n": 6,+ "n": 4,"p25_sec": 600.0,- "p50_sec": 750.0,- "p75_sec": 900.0+ "p50_sec": 600.0,+ "p75_sec": 750.0},"ltx|keyframe|quick|73.0|any": {"n": 4,@@ -24683,9 +20933,9 @@"p75_sec": 900.0},"ltx|keyframe|standard|121.0|any": {- "n": 39,+ "n": 36,"p25_sec": 300.0,- "p50_sec": 510.0,+ "p50_sec": 420.0,"p75_sec": 600.0},"ltx|keyframe|standard|145.0|any": {@@ -24695,21 +20945,21 @@"p75_sec": 600.0},"ltx|keyframe|standard|169.0|any": {- "n": 44,- "p25_sec": 600.0,+ "n": 34,+ "p25_sec": 300.0,"p50_sec": 900.0,"p75_sec": 900.0},- "ltx|keyframe|standard|193.0|any": {- "n": 51,- "p25_sec": 900.0,- "p50_sec": 1200.0,- "p75_sec": 1200.0- },+ "ltx|keyframe|standard|193.0|any": {+ "n": 12,+ "p25_sec": 300.0,+ "p50_sec": 300.0,+ "p75_sec": 375.0+ },"ltx|keyframe|standard|241.0|any": {- "n": 56,- "p25_sec": 420.0,- "p50_sec": 1200.0,+ "n": 37,+ "p25_sec": 300.0,+ "p50_sec": 600.0,"p75_sec": 1200.0},"ltx|keyframe|standard|289.0|any": {@@ -24725,13 +20975,13 @@"p75_sec": 600.0},"ltx|keyframe|standard|49.0|any": {- "n": 21,+ "n": 19,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|keyframe|standard|73.0|any": {- "n": 52,+ "n": 51,"p25_sec": 180.0,"p50_sec": 180.0,"p75_sec": 240.0@@ -24743,28 +20993,22 @@"p75_sec": 300.0},"ltx|t2v|balanced|113.0|any": {- "n": 19,+ "n": 17,"p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|121.0|any": {- "n": 3915,+ "n": 2975,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 240.0},- "ltx|t2v|balanced|137.0|any": {- "n": 12,- "p25_sec": 600.0,- "p50_sec": 600.0,- "p75_sec": 600.0- },"ltx|t2v|balanced|145.0|any": {- "n": 106,+ "n": 99,"p25_sec": 60.0,"p50_sec": 120.0,- "p75_sec": 180.0+ "p75_sec": 120.0},"ltx|t2v|balanced|153.0|any": {"n": 9,@@ -24773,7 +21017,7 @@"p75_sec": 90.0},"ltx|t2v|balanced|169.0|any": {- "n": 305,+ "n": 258,"p25_sec": 120.0,"p50_sec": 240.0,"p75_sec": 300.0@@ -24785,9 +21029,9 @@"p75_sec": 600.0},"ltx|t2v|balanced|217.0|any": {- "n": 59,- "p25_sec": 420.0,- "p50_sec": 420.0,+ "n": 8,+ "p25_sec": 270.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|balanced|233.0|any": {@@ -24797,118 +21041,88 @@"p75_sec": 240.0},"ltx|t2v|balanced|241.0|any": {- "n": 1826,- "p25_sec": 180.0,+ "n": 1185,+ "p25_sec": 240.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 600.0},"ltx|t2v|balanced|249.0|any": {- "n": 16,+ "n": 6,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|25.0|any": {- "n": 31,+ "n": 28,"p25_sec": 60.0,- "p50_sec": 60.0,+ "p50_sec": 75.0,"p75_sec": 90.0},- "ltx|t2v|balanced|289.0|any": {- "n": 19,- "p25_sec": 180.0,- "p50_sec": 180.0,- "p75_sec": 240.0- },- "ltx|t2v|balanced|313.0|any": {- "n": 4,- "p25_sec": 240.0,- "p50_sec": 240.0,- "p75_sec": 240.0- },"ltx|t2v|balanced|33.0|any": {- "n": 6,- "p25_sec": 15.0,- "p50_sec": 22.5,- "p75_sec": 30.0+ "n": 4,+ "p25_sec": 26.2,+ "p50_sec": 30.0,+ "p75_sec": 45.0},"ltx|t2v|balanced|361.0|any": {- "n": 58,+ "n": 39,"p25_sec": 180.0,"p50_sec": 240.0,"p75_sec": 300.0},- "ltx|t2v|balanced|385.0|any": {- "n": 10,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 300.0- },"ltx|t2v|balanced|409.0|any": {- "n": 21,+ "n": 20,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|balanced|41.0|any": {- "n": 19,+ "n": 10,"p25_sec": 15.0,"p50_sec": 15.0,- "p75_sec": 45.0+ "p75_sec": 15.0},"ltx|t2v|balanced|481.0|any": {- "n": 55,- "p25_sec": 300.0,- "p50_sec": 420.0,+ "n": 29,+ "p25_sec": 420.0,+ "p50_sec": 900.0,"p75_sec": 900.0},"ltx|t2v|balanced|49.0|any": {- "n": 70,+ "n": 57,"p25_sec": 45.0,"p50_sec": 60.0,"p75_sec": 90.0},- "ltx|t2v|balanced|57.0|any": {- "n": 5,- "p25_sec": 60.0,- "p50_sec": 60.0,- "p75_sec": 90.0- },"ltx|t2v|balanced|65.0|any": {- "n": 33,- "p25_sec": 90.0,- "p50_sec": 120.0,- "p75_sec": 120.0+ "n": 10,+ "p25_sec": 30.0,+ "p50_sec": 37.5,+ "p75_sec": 78.8},"ltx|t2v|balanced|73.0|any": {- "n": 671,- "p25_sec": 45.0,- "p50_sec": 90.0,- "p75_sec": 120.0- },- "ltx|t2v|balanced|81.0|any": {- "n": 29,- "p25_sec": 120.0,+ "n": 493,+ "p25_sec": 90.0,"p50_sec": 120.0,"p75_sec": 120.0},"ltx|t2v|balanced|89.0|any": {- "n": 5,+ "n": 3,"p25_sec": 45.0,"p50_sec": 45.0,- "p75_sec": 180.0+ "p75_sec": 45.0},"ltx|t2v|balanced|97.0|any": {- "n": 247,+ "n": 244,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 300.0},"ltx|t2v|draft|121.0|any": {- "n": 13,+ "n": 6,"p25_sec": 120.0,- "p50_sec": 300.0,- "p75_sec": 420.0+ "p50_sec": 120.0,+ "p75_sec": 120.0},"ltx|t2v|draft|49.0|any": {"n": 3,@@ -24917,8 +21131,8 @@"p75_sec": 67.5},"ltx|t2v|high_720p|121.0|any": {- "n": 20,- "p25_sec": 420.0,+ "n": 14,+ "p25_sec": 510.0,"p50_sec": 600.0,"p75_sec": 900.0},@@ -24929,10 +21143,10 @@"p75_sec": 750.0},"ltx|t2v|high_720p|241.0|any": {- "n": 74,- "p25_sec": 420.0,- "p50_sec": 510.0,- "p75_sec": 1200.0+ "n": 23,+ "p25_sec": 1200.0,+ "p50_sec": 1800.0,+ "p75_sec": 1800.0},"ltx|t2v|high_720p|73.0|any": {"n": 8,@@ -24953,8 +21167,8 @@"p75_sec": 180.0},"ltx|t2v|high|121.0|any": {- "n": 410,- "p25_sec": 240.0,+ "n": 368,+ "p25_sec": 180.0,"p50_sec": 420.0,"p75_sec": 600.0},@@ -24965,22 +21179,16 @@"p75_sec": 240.0},"ltx|t2v|high|169.0|any": {- "n": 64,+ "n": 65,"p25_sec": 300.0,"p50_sec": 420.0,"p75_sec": 600.0},- "ltx|t2v|high|193.0|any": {- "n": 3,- "p25_sec": 300.0,- "p50_sec": 300.0,- "p75_sec": 360.0- },"ltx|t2v|high|241.0|any": {- "n": 252,- "p25_sec": 420.0,- "p50_sec": 600.0,- "p75_sec": 900.0+ "n": 217,+ "p25_sec": 600.0,+ "p50_sec": 900.0,+ "p75_sec": 1200.0},"ltx|t2v|high|289.0|any": {"n": 5,@@ -24989,10 +21197,10 @@"p75_sec": 900.0},"ltx|t2v|high|361.0|any": {- "n": 5,+ "n": 4,"p25_sec": 300.0,- "p50_sec": 450.0,- "p75_sec": 900.0+ "p50_sec": 300.0,+ "p75_sec": 450.0},"ltx|t2v|high|385.0|any": {"n": 8,@@ -25007,16 +21215,16 @@"p75_sec": 45.0},"ltx|t2v|high|481.0|any": {- "n": 6,- "p25_sec": 975.0,- "p50_sec": 1200.0,- "p75_sec": 1650.0+ "n": 3,+ "p25_sec": 1800.0,+ "p50_sec": 1800.0,+ "p75_sec": 1800.0},"ltx|t2v|high|49.0|any": {- "n": 8,- "p25_sec": 45.0,+ "n": 7,+ "p25_sec": 30.0,"p50_sec": 90.0,- "p75_sec": 112.5+ "p75_sec": 90.0},"ltx|t2v|high|65.0|any": {"n": 28,@@ -25025,7 +21233,7 @@"p75_sec": 180.0},"ltx|t2v|high|73.0|any": {- "n": 114,+ "n": 112,"p25_sec": 180.0,"p50_sec": 300.0,"p75_sec": 420.0@@ -25036,12 +21244,6 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|q4|121.0|any": {- "n": 66,- "p25_sec": 180.0,- "p50_sec": 240.0,- "p75_sec": 300.0- },"ltx|t2v|quick|113.0|any": {"n": 3,"p25_sec": 120.0,@@ -25049,15 +21251,15 @@"p75_sec": 150.0},"ltx|t2v|quick|121.0|any": {- "n": 1190,+ "n": 1053,"p25_sec": 60.0,"p50_sec": 120.0,"p75_sec": 180.0},"ltx|t2v|quick|145.0|any": {- "n": 51,+ "n": 41,"p25_sec": 60.0,- "p50_sec": 120.0,+ "p50_sec": 150.0,"p75_sec": 180.0},"ltx|t2v|quick|153.0|any": {@@ -25067,16 +21269,16 @@"p75_sec": 300.0},"ltx|t2v|quick|169.0|any": {- "n": 65,+ "n": 49,"p25_sec": 135.0,"p50_sec": 180.0,"p75_sec": 240.0},"ltx|t2v|quick|193.0|any": {- "n": 20,+ "n": 15,"p25_sec": 180.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 300.0},"ltx|t2v|quick|201.0|any": {"n": 15,@@ -25084,23 +21286,17 @@"p50_sec": 180.0,"p75_sec": 180.0},- "ltx|t2v|quick|233.0|any": {- "n": 3,- "p25_sec": 120.0,- "p50_sec": 120.0,- "p75_sec": 660.0- },"ltx|t2v|quick|241.0|any": {- "n": 444,+ "n": 402,"p25_sec": 120.0,- "p50_sec": 270.0,+ "p50_sec": 300.0,"p75_sec": 420.0},"ltx|t2v|quick|25.0|any": {- "n": 39,+ "n": 32,"p25_sec": 30.0,"p50_sec": 60.0,- "p75_sec": 60.0+ "p75_sec": 90.0},"ltx|t2v|quick|289.0|any": {"n": 4,@@ -25109,10 +21305,10 @@"p75_sec": 120.0},"ltx|t2v|quick|33.0|any": {- "n": 6,- "p25_sec": 18.8,- "p50_sec": 45.0,- "p75_sec": 82.5+ "n": 3,+ "p25_sec": 22.5,+ "p50_sec": 30.0,+ "p75_sec": 45.0},"ltx|t2v|quick|337.0|any": {"n": 3,@@ -25127,19 +21323,19 @@"p75_sec": 210.0},"ltx|t2v|quick|41.0|any": {- "n": 18,- "p25_sec": 33.8,- "p50_sec": 52.5,- "p75_sec": 60.0+ "n": 10,+ "p25_sec": 18.8,+ "p50_sec": 45.0,+ "p75_sec": 45.0},"ltx|t2v|quick|481.0|any": {- "n": 214,- "p25_sec": 180.0,+ "n": 147,+ "p25_sec": 300.0,"p50_sec": 300.0,- "p75_sec": 420.0+ "p75_sec": 300.0},"ltx|t2v|quick|49.0|any": {- "n": 83,+ "n": 80,"p25_sec": 30.0,"p50_sec": 45.0,"p75_sec": 60.0@@ -25151,57 +21347,51 @@"p75_sec": 180.0},"ltx|t2v|quick|73.0|any": {- "n": 509,+ "n": 462,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|quick|97.0|any": {- "n": 64,+ "n": 57,"p25_sec": 60.0,"p50_sec": 90.0,"p75_sec": 120.0},"ltx|t2v|standard|121.0|any": {- "n": 1284,+ "n": 872,"p25_sec": 120.0,"p50_sec": 180.0,- "p75_sec": 300.0+ "p75_sec": 420.0},"ltx|t2v|standard|145.0|any": {- "n": 11,- "p25_sec": 195.0,+ "n": 8,+ "p25_sec": 210.0,"p50_sec": 240.0,- "p75_sec": 285.0+ "p75_sec": 240.0},"ltx|t2v|standard|169.0|any": {- "n": 200,+ "n": 179,"p25_sec": 180.0,"p50_sec": 180.0,- "p75_sec": 300.0- },- "ltx|t2v|standard|193.0|any": {- "n": 8,- "p25_sec": 420.0,- "p50_sec": 420.0,- "p75_sec": 660.0+ "p75_sec": 240.0},"ltx|t2v|standard|217.0|any": {- "n": 36,+ "n": 31,"p25_sec": 600.0,"p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|standard|241.0|any": {- "n": 1750,- "p25_sec": 240.0,- "p50_sec": 300.0,+ "n": 884,+ "p25_sec": 300.0,+ "p50_sec": 600.0,"p75_sec": 600.0},"ltx|t2v|standard|25.0|any": {- "n": 22,+ "n": 18,"p25_sec": 15.0,- "p50_sec": 15.0,+ "p50_sec": 37.5,"p75_sec": 45.0},"ltx|t2v|standard|289.0|any": {@@ -25223,13 +21413,13 @@"p75_sec": 240.0},"ltx|t2v|standard|481.0|any": {- "n": 17,- "p25_sec": 210.0,- "p50_sec": 360.0,- "p75_sec": 600.0+ "n": 15,+ "p25_sec": 150.0,+ "p50_sec": 300.0,+ "p75_sec": 420.0},"ltx|t2v|standard|49.0|any": {- "n": 30,+ "n": 29,"p25_sec": 60.0,"p50_sec": 60.0,"p75_sec": 60.0@@ -25241,16 +21431,16 @@"p75_sec": 300.0},"ltx|t2v|standard|73.0|any": {- "n": 101,+ "n": 97,"p25_sec": 120.0,"p50_sec": 180.0,"p75_sec": 180.0},"ltx|t2v|standard|97.0|any": {- "n": 23,- "p25_sec": 90.0,+ "n": 19,+ "p25_sec": 105.0,"p50_sec": 120.0,- "p75_sec": 150.0+ "p75_sec": 210.0}},"dims": [@@ -25272,7 +21462,7 @@"keyframe"],"schema": "fleet_timings/1",- "total_events_counted": 170956,+ "total_events_counted": 129641,"wall_sec": "bucket_lower_edge","window_days": 75}diff --git a/docs/AGENT_API.md b/docs/AGENT_API.mdindex f8a3d66..ecd3c22 100644--- a/docs/AGENT_API.md+++ b/docs/AGENT_API.md@@ -6,6 +6,8 @@ You describe a picture in plain terms: an overall **scene**, plus a list of **boThis complements the general [`docs/API.md`](API.md). The same panel process serves both.+> **Also here: the Speech API** (`POST /speech/generate`, text to speech in preset or character voices) — see [Speech for agents](#speech-for-agents) at the end of this file.+## Server- **Base URL:** `http://127.0.0.1:8199`@@ -168,3 +170,44 @@ To make an image, POST JSON to /image/agent with:Iterate cheaply with "validate_only": true — it returns the built caption plus warnings without rendering. When the layout looks right, POST again with "wait": true to render and receive image urls. Do NOT hand-write Ideogram's internal caption JSON — the server builds it from your scene+boxes. Max 6 text boxes.```+++---++## Speech for agents++`POST /speech/generate` turns a script into a WAV — a preset voice with a delivery you describe, or a+saved character's own voice — and hands back the file path, ready for lip-sync. Field reference:+[`docs/API.md` → Speech](API.md#speech--text-to-speech-audio--speech).++- **Install once.** `GET /speech/voices` → `status.available`. If false, `POST /speech/install`+ (~6 GB, resumable) and poll `GET /status` → `speech_install.state` until `done`.+- **Presets:** `voice` is one of `ryan`, `aiden` (native English), `serena`, `vivian`, `uncle_fu`,+ `dylan`, `eric`, `ono_anna`, `sohee`. Steer the delivery with `style` (`natural`, `warm`, `excited`,+ `deadpan`, `dramatic`, `whisper`, `sad`, `angry`) or your own words in `instruct`.+- **A character's voice:** `character: "<id from GET /characters>"` plus `voice_consent: true`.+ **The consent flag is the operator's statement that the voice is theirs or used with the speaker's+ permission. Never set it on your own initiative and never use it to imitate a real person** — ask+ the person you are working for. Without it the request is refused (400).+- **Length:** ~2.8 words per second. One LTX lip-sync clip holds ~10 s, so keep a line for lip-sync+ under ~25 words, or split it.++```bash+# A preset voice, blocking until the WAV is written+curl -s -X POST http://127.0.0.1:8199/speech/generate -H 'Content-Type: application/json' \+ -d '{"text":"Ladies and gentlemen, the render is complete.","voice":"aiden","style":"dramatic"}'+# -> {"ok":true,"job_id":"…","path":"…/mlx_outputs/speech_…wav","url":"/file?path=…","audio_seconds":3.4,…}++# A character's own voice (the operator confirmed it is theirs)+curl -s -X POST http://127.0.0.1:8199/speech/generate -H 'Content-Type: application/json' \+ -d '{"text":"I did not come here to be rendered.","character":"bizarrotrn","voice_consent":true}'++# Then lip-sync it onto a face+curl -s -X POST http://127.0.0.1:8199/queue/add \+ --data-urlencode mode=a2v --data-urlencode "audio=<path from above>" \+ --data-urlencode "image=<a picture of the face>" \+ --data-urlencode "prompt=A man in a velvet tuxedo speaks to camera on a dim theatre stage"+```++Speech jobs share the panel's queue with everything else; a line takes seconds once the model is+loaded, but it waits behind a running video render.diff --git a/docs/AGENT_TOOLS.md b/docs/AGENT_TOOLS.mdindex 136c6ba..5373abb 100644--- a/docs/AGENT_TOOLS.md+++ b/docs/AGENT_TOOLS.md@@ -20,17 +20,13 @@ curl -s http://127.0.0.1:8198/agents/info | python3 -m json.tool # see "agentspython3 agents/phosphene_cli.py mcp-config # same, from the CLI```-On a normal Pinokio install (the app folder is `~/pinokio/api/phosphene.git`) that line is:+Then, for example:```bash-claude mcp add phosphene -- ~/pinokio/api/phosphene.git/ltx-2-mlx/env/bin/python ~/pinokio/api/phosphene.git/agents/phosphene_mcp.py-codex mcp add phosphene -- ~/pinokio/api/phosphene.git/ltx-2-mlx/env/bin/python ~/pinokio/api/phosphene.git/agents/phosphene_mcp.py+claude mcp add phosphene -- python3 /path/to/phosphene/agents/phosphene_mcp.py+codex mcp add phosphene -- python3 /path/to/phosphene/agents/phosphene_mcp.py```-If you installed Phosphene under another folder name, use the line `/agents/info` prints. Any-`python3` 3.9 or newer works too; the line uses the studio's own Python so nothing else is needed.-Phosphene has to be running (press Start in Pinokio) when the agent uses it.-In the Mac app the studio code lives under `~/Library/Application Support/Phosphene/app/<version>/`;`/agents/info` gives the quoted path (it has a space in it).@@ -76,7 +72,7 @@ The tools add no route and decide nothing. Every request is a request the page i(`/queue/add`, `/speech/generate`, `/upload`, `/status`, `/file`), so the studio applies the same checks:what this Mac can run, model licences (HTTP 451 until the person accepts), and what Free and Proinclude. A form cannot carry a Pro speed profile into a job (`make_job` builds `params` from an-allow-list). There is deliberately **no tool that accepts a model+allow-list; `test_agent_tools.py` pins it). There is deliberately **no tool that accepts a modellicence**: accepting on someone's behalf is accepting for them, so the person does it once inPhosphene.@@ -84,7 +80,7 @@ Phosphene.```jsonc{"app": "phosphene", "api": 1, "url": "http://127.0.0.1:8198", "port": 8198, "pid": 123,- "version": "4.19.16", "distribution": "pinokio" | "mac-app", "edition": "free" | "pro", "profile": "production",+ "version": "5.0.0", "distribution": "pinokio" | "mac-app", "edition": "free" | "pro", "profile": "production","pro": {"active": false, ...}, // GET /pro/status"engines": {"ltx": {"available": true, "qualities": [...]},"h3": {"available": false, "qualities": [...], "lengths": ["3s", "5s", "10s", "15s", ...]},@@ -93,7 +89,4 @@ Phosphene."agents": {"cli": "...", "mcp": "...", "python": "...", "mcp_config": {...}, "claude_code": "...", "codex": "..."}}```-Cheap (no disk walk), safe to poll.--Speech (`phosphene_make_speech`, `phosphene speech`) needs a Phosphene with Audio > Speech; on a-version without it the tool answers with a sentence saying so, and the other tools work as usual.+Cheap (no disk walk), safe to poll. Tests: `test_agent_tools.py`.diff --git a/docs/ANALYTICS.md b/docs/ANALYTICS.mdindex 1872569..c4a25b1 100644--- a/docs/ANALYTICS.md+++ b/docs/ANALYTICS.md@@ -16,7 +16,7 @@ character names.| | ||---|---|| **What identifies you** | One random UUID, generated on your Mac, tied to nothing |-| **How often** | Once ever when the install is new, once per panel start, plus once per finished render. No heartbeats |+| **How often** | Once ever when the install is new, once per panel start, plus once per finished render, and Phosphene Bench results only when you press Submit ([`bench_result`](#bench_result)). No heartbeats || **Where it goes** | PostHog (`us.i.posthog.com`), or a self-hosted endpoint you choose || **Location** | None sent. Country and city are *derived* from the address your computer connects from, and kept — [details](#location) || **How to turn it off** | Settings → *Anonymous usage analytics* → **Turn off**, or `PHOSPHENE_ANALYTICS_DISABLED=1` |@@ -199,8 +199,8 @@ including image and training jobs.| Field | Type | Example | Notes ||---|---|---|---|-| `engine` | string | `"ltx"` | `ltx`, `h3`, `music`, an image engine (`flux3`, `mflux/<family>`), or `image` for an image job that failed before its engine was chosen (before 4.19.16 failed image jobs said `ltx`) |-| `mode` | string | `"i2v"` | `t2v`, `i2v`, `extend`, `keyframe`, `a2v`, `restore`, `ingredients`, `control`, `upscale`, `image`, `train` |+| `engine` | string | `"ltx"` | `ltx`, `h3`, `music`, `speech`, an image engine (`flux3`, `mflux/<family>`), or `image` for an image job that failed before its engine was chosen (before 4.19.16 failed image jobs said `ltx`) |+| `mode` | string | `"i2v"` | `t2v`, `i2v`, `extend`, `keyframe`, `a2v`, `restore`, `ingredients`, `control`, `upscale`, `image`, `train`, `music`, `speech` (a Speech job sends only the counts every render sends: never the script, the voice, a character name or the clip) || `tier` | string | `"standard"` | LTX quality (`quick`/`balanced`/`standard`/`high`) or the H3 composite cell (`standard_5s`, `high_10s`, …) || `duration_bucket` | string | `"5-15m"` | Legacy 5-value bucket, kept one more release for dashboard continuity, then removed in favour of `wall_sec_bucket` || `wall_sec_bucket` | int | `480` | The lower edge of a log-spaced ladder (`15, 30, 45, 60, 90, 120, 180, 240, 300, 420, 600, 900, 1200, 1800, 2400, 3600, 5400`). Sharp enough to see a performance regression, far too coarse to be a timing fingerprint. Absent when the wall clock is unknown |@@ -223,7 +223,7 @@ including image and training jobs.| `lora_kinds` | string | `"style"` | Closed vocabulary: `none` / `style` / `character` / `mixed` || `character_used` | bool | `true` | A cast character drove this render || `audio_mode` | string | `"joint"` | `joint` / `none` (external audio replaces the generated track) / `a2v_dub` / `h3_native` |-| `h3_sampler` | string | `"v13"` | 4.19.11 — H3 renders only: which sampler ran. **Closed vocabulary**: `best` (the full sampler), `fast`, `turbo`, `v13` (lightx2v v1.3 on Best at High), `flex` (Pika H3 Flex, its six-step re-noise sampler). Keeps the timing lanes apart, which `steps` alone cannot |+| `h3_sampler` | string | `"v13"` | 4.19.11 — H3 renders only: which sampler ran. **Closed vocabulary**: `best` (the full sampler), `fast`, `turbo`, `v13` (lightx2v v1.3 on Best at High), `flex` (Pika H3 Flex, its six-step re-noise sampler), `flex_turbo` (5.0: H3 Flex Turbo, Pro, four euler steps). Keeps the timing lanes apart, which `steps` alone cannot || `first_render` | bool | `true` | Present once per install, on its first successful render ever — the activation funnel without a join || `gpu_steps` | string | `"short"` | 4.17.5 — present only when the render ran in **short GPU steps** (one Metal op per command buffer), the path a macOS GPU-watchdog kill switches a setting to. Closed vocabulary: `short`. Absent = default steps. Answers "does the short path stop the watchdog loop" || `watchdog_retry` | bool | `true` | 4.17.5 — present only when a GPU-watchdog kill was re-run inside the same job (once, on short steps). On `render_completed` it means the retry saved the render |@@ -232,7 +232,7 @@ including image and training jobs.| `helper_warm` | bool | `false` | 4.19.6 — LTX renders that ran in the warm engine process: `true` when the (last) run started in a process that had already finished a render, `false` when it started fresh. Absent for engines that do not use it. Tells whether prompt-encoding GPU aborts follow a warm process || `mem_pressure` | int | `1` | 4.19.16 — LTX renders: macOS's memory pressure level when the render started (`1` normal, `2` warning, `4` critical). Absent when unread. Tells memory pressure apart from the render itself in the 16 GB Metal-watchdog kills || `mem_avail_gb` | int | `8` | 4.19.16 — LTX renders: the memory the kernel reported available when the render started, as the lower edge of `0, 2, 4, 6, 8, 12, 16, 24, 32, 64` GB. Absent when unread |-| `source` | string | `"storyboard"` | v4.9.7 — which surface queued the job. **Closed vocabulary**: `form`, `batch`, `storyboard`, `characters`, `image_studio`, `retry`, `api`, `chain` (an Upscale ×2 queued automatically behind an H3 draft), `unknown`. Makes "how much of the rendering is Storyboard" a one-click breakdown |+| `source` | string | `"storyboard"` | v4.9.7 — which surface queued the job. **Closed vocabulary**: `form`, `batch`, `storyboard`, `characters`, `image_studio`, `retry`, `api`, `chain` (an Upscale ×2 queued automatically behind an H3 draft), `bench` (a Phosphene Bench step, see [`bench_result`](#bench_result)), `unknown`. Makes "how much of the rendering is Storyboard" a one-click breakdown |### `render_failed`@@ -426,7 +426,7 @@ Once per job the panel **declined on purpose**. Same fields as| Field | Type | Example | Notes ||---|---|---|---|-| `refusal` | string | `"ingredients_generation"` | **A closed vocabulary** — `ingredients_generation`, `hardware_tier`, `h3_ram`, `h3_mode`, `h3_lora_slots`, `stale_engine` (v4.9+: a 2.5 render refused because the vendored engine predates the Gemma 4 tower — remedy is a second Update click). `image_ram` (v4.9.3+: the Image Studio memory guard — the engine holds more weights than this Mac can hold, or too little is free right now). `pack_missing` (v4.9.3+: High / Keyframes / Extend chosen on a Mac that has not downloaded the Q8 add-on — remedy is Settings → Models). `vocal_separator` (4.17.x+: Lip-sync with "Listen to the voice only" on an install whose vocal separation is missing — remedy is the form's own Install button). `licence_required` (4.19.8+: a model whose licence asks for an "I accept" - Hailuo H3, Ideogram 4, YuE2, FLUX.1 Krea [dev], Bria FIBO - before it was accepted on this Mac; remedy is the licence screen, once). `pack_incomplete` (4.19.16+: an LTX render on a pack that is not completely on disk and is not downloading, named file by file; remedy is Repair. Before 4.19.16 these were `render_failed`; a pack that is still downloading now waits instead). `memory_low` (4.19.16+: a Mac with 24 GB or less whose prompt encoding macOS stopped in the last 30 minutes, still short of memory after a 90 s wait; remedy is quitting other apps). `train_models` (4.19.17+: a training run whose LTX-2.3 weights - the base pack or the full-precision dev transformer - are not on this Mac; refused at Start, at Retry and before the trainer spawns, with the Train tab's Download all. Before 4.19.17 these were `render_failed` with `train_error: missing_file`, one Mac 22 times in an hour). `lora_mismatch` (4.19.17+: an Image render with a FLUX.2 LoRA made for another FLUX.2 size - a [klein] 9B or [dev] adapter on the [klein] 4B that Auto and Klein-Edit run - stopped before the engine starts; remedy is un-picking it. Before 4.19.17 these were `render_failed` with mflux's `[matmul] Last dimension of first input`). `image_refs` (4.19.17+: an Image render with more reference images than its engine takes - 3, FLUX 3 10 - reaching the worker; /queue/add refuses it first. Before 4.19.17 these were `render_failed`, "This engine supports at most 3 reference images."). `image_disk` (4.19.17+: an Image engine whose first download does not fit on the disk that holds the image models - the model's real download size, less what an interrupted download left, plus 2 GB; remedy is freeing space. Before 4.19.17 these were `render_failed`, "pre-flight: only N GB free on the HF cache volume", against a flat 10 GB). Which guard said no. No free text, no fingerprint: the message is our own copy, so there is nothing to scrub and nothing unknown to count |+| `refusal` | string | `"ingredients_generation"` | **A closed vocabulary** — `ingredients_generation`, `hardware_tier`, `h3_ram`, `h3_mode`, `h3_lora_slots`, `stale_engine` (v4.9+: a 2.5 render refused because the vendored engine predates the Gemma 4 tower — remedy is a second Update click). `image_ram` (v4.9.3+: the Image Studio memory guard — the engine holds more weights than this Mac can hold, or too little is free right now). `pack_missing` (v4.9.3+: High / Keyframes / Extend chosen on a Mac that has not downloaded the Q8 add-on — remedy is Settings → Models). `vocal_separator` (4.17.x+: Lip-sync with "Listen to the voice only" on an install whose vocal separation is missing — remedy is the form's own Install button). `licence_required` (4.19.8+: a model whose licence asks for an "I accept" - Hailuo H3, Ideogram 4, YuE2, FLUX.1 Krea [dev], Bria FIBO - before it was accepted on this Mac; remedy is the licence screen, once). `speech_ram`, `speech_installing`, `speech_consent` (Audio → Speech: a Mac under the 16 GB floor, a line queued while Speech installs, a cloned voice without the voice-owner confirmation). `pack_incomplete` (4.19.16+: an LTX render on a pack that is not completely on disk and is not downloading, named file by file; remedy is Repair. Before 4.19.16 these were `render_failed`; a pack that is still downloading now waits instead). `memory_low` (4.19.16+: a Mac with 24 GB or less whose prompt encoding macOS stopped in the last 30 minutes, still short of memory after a 90 s wait; remedy is quitting other apps). `train_models` (4.19.17+: a training run whose LTX-2.3 weights - the base pack or the full-precision dev transformer - are not on this Mac; refused at Start, at Retry and before the trainer spawns, with the Train tab's Download all. Before 4.19.17 these were `render_failed` with `train_error: missing_file`, one Mac 22 times in an hour). `lora_mismatch` (4.19.17+: an Image render with a FLUX.2 LoRA made for another FLUX.2 size - a [klein] 9B or [dev] adapter on the [klein] 4B that Auto and Klein-Edit run - stopped before the engine starts; remedy is un-picking it. Before 4.19.17 these were `render_failed` with mflux's `[matmul] Last dimension of first input`). `image_refs` (4.19.17+: an Image render with more reference images than its engine takes - 3, FLUX 3 10 - reaching the worker; /queue/add refuses it first. Before 4.19.17 these were `render_failed`, "This engine supports at most 3 reference images."). `image_disk` (4.19.17+: an Image engine whose first download does not fit on the disk that holds the image models - the model's real download size, less what an interrupted download left, plus 2 GB; remedy is freeing space. Before 4.19.17 these were `render_failed`, "pre-flight: only N GB free on the HF cache volume", against a flat 10 GB). Which guard said no. No free text, no fingerprint: the message is our own copy, so there is nothing to scrub and nothing unknown to count |#### The rule — a refusal is not a failure@@ -448,6 +448,17 @@ count, and is not in the engine mix — neither numerator nor denominator.** Arefusal did not render, so counting it as a render (successful *or* failed)makes both numbers lie.+The capture boundary checks known refusal signatures as well as the worker's+typed refusal. This applies to both asynchronous and synchronous capture,+before the local log or network delivery, and removes fault fields from a+refusal event. Ingredients on an incompatible generation is refused before+generation setup. Existing events on the server are not rewritten by this fix.++An image subprocess exiting with SIGABRT is a `native_crash` unless its log+explicitly reports an allocation failure, in which case it is `metal_oom`.+A download progress line alone does not establish either a network fault or+an out-of-memory fault.+**Why a separate event rather than an `error_class` value.** Both were builtand the event won. A class value keeps one event and one funnel, but it makesevery query that touches failures carry an `error_class != 'refused'`@@ -536,6 +547,51 @@ a star was actually given, and does not ask GitHub. `via` exists only to keep"a click we caused" separate from "a click that told us we did not need toask", which is the whole question the ask was added to answer.+### `bench_result`++**Only on a click.** Sent when someone presses *Submit to the leaderboard* in+Phosphene Bench (Settings → Phosphene Bench) and confirms. Never sent by a run+on its own, never sent while analytics is off (the button says so instead), and+never sent for an incomplete run. One event per run: a submit sends **every**+complete run of the current suite stored on the Mac that has not been sent+before (`state/bench/`, `submitted.json` records which), so the leaderboard can+take each install's median rather than its best run. The panel delivers these on the click itself and marks a run as sent only when the receiver accepted it, so an offline click leaves the run for the next one.++Unlike `render_completed`, times here are exact seconds, not buckets: the person+asked for them to be published. Everything is still a hardware class or a+measurement; no prompt (the suite's prompts are fixed and are not sent anyway),+no seed, no path, no file name, no clip.++| Field | Type | Example |+|---|---|---|+| `schema` | string | `"phosphene-bench/1"` |+| `suite_id`, `suite_fp` | string | `"PB1"`, `"170df0bdfe5a"` — the frozen suite and the hash of its settings |+| `run_id` | string | `"9185f62deeec4ab4"` — random per run, so a re-sent run is counted once |+| `run_index`, `runs_total` | int | `2`, `3` — this run's place in the submit batch |+| `version`, `edition`, `distribution` | string | `"4.19.12"`, `"free"`, `"pinokio"` |+| `chip_family` | string | `"M4 Max"` |+| `gpu_cores`, `cpu_p`, `cpu_e` | int | `40`, `12`, `4` |+| `ram_gb` | int | `64` |+| `model_id` | string | `"Mac16,9"` — the model identifier, a hardware class shared by every Mac of that model |+| `os_version` | string | `"26.4"` (major.minor) |+| `power` | string | `"ac"`, `"battery"` or `"unknown"` |+| `low_power` | bool | `false` |+| `thermal_worst` | string | `"nominal"`, `"fair"`, `"serious"`, `"critical"` or `"unknown"` |+| `warmup_sec` | float | `42.0` — the untimed engine warm-up |+| `complete`, `eligible` | bool | `true`, `true` |+| `st_<step>` | string | `"done"`, `"failed"`, `"skipped"` or `"cancelled"` |+| `s_<step>` | float or null | `139.4` — wall seconds, the same job timer as `render_completed` |+| `mem_<step>`, `add_<step>` | float or null | `36.0`, `18.0` — GB of the Mac's memory in use at the step's peak, and how much the step added |+| `cv_<step>` | string | `"1024×576"` — the canvas that ran |++`<step>` is one of `ltx_quick_5s`, `ltx_balanced_5s`, `image_klein`,+`h3_draft_5s`. The full local record (the JSON file the Bench saves) has a few+more fields — macOS build, swap, the engine's own memory peak — that are **not**+sent. The public page (phosphene.video/bench) shows per chip and memory size+the median of each install's median, and how many installs; never an install+id. The renders a Bench run makes are ordinary renders and send their own+`render_completed` with `source: "bench"`.+### `engine_selected` — not implemented, on purposeThe obvious way to count engine-picker usage is a ping per click. That adds adiff --git a/docs/API.md b/docs/API.mdindex c8a0907..3f2d19e 100644--- a/docs/API.md+++ b/docs/API.md@@ -196,7 +196,7 @@ curl -s -X POST http://127.0.0.1:8198/oneshot -H 'Content-Type: application/json| `seconds` | int | `60` | One of 30 / 45 / 60 / 90 / 120. Any other value is refused, never rounded (a 75 used to render as one clip). || `engine` | `ltx` / `h3` | `ltx` | LTX renders 10 s parts (faces, voices, dialogue); H3 renders 15 s parts (motion, landscapes). H3 is refused when not installed. || `quality` | str | engine default | LTX: `quick` / `balanced` / `standard` / `high`; with a character: `draft` / `pro` / `high` / `high_720p`; H3: `draft` / `standard` / `high` / `native`. |-| `beats` | list or newline text | none | One line per five seconds. A blank line holds that moment; extra lines are dropped. Absent = the prompt is every beat. |+| `beats` | list or newline text | none | One line per five seconds. A blank line holds that moment; extra lines are dropped. Absent = the prompt is every beat. With beats, the prompt's description (its sentences without a quoted line) opens every part, so the beats only say what happens; beats that are the prompt's own sentences (the tab's split button) are used as they are. || `camera` | str | `""` | One move for the whole shot, its direction and speed; carried into every part (`take_camera`). || `image` | path | none | A start frame already on this Mac — upload first with `POST /upload` (field `image`) and pass the returned `path`. Makes the first part i2v. || `character_id` | str | none | A trained character (LTX only). Defaults quality to `pro`, the export to 720p Sharp, and `handoff` to `speech`. `character_strength`, `voice_strength` optional. |@@ -626,6 +626,73 @@ Assembles the locked production recipe + queues a T2V render. The endpoint accep---+## Speech — text to speech (Audio → Speech)++A script in, one WAV out (24 kHz mono, in `mlx_outputs/` as `speech_<stamp>_<slug>.wav` with a+`.wav.json` sidecar), in one of nine preset voices or a saved character's own voice. The engine is+Qwen3-TTS 12 Hz 1.7B (Apache-2.0) through mlx-audio, in its own venv; it is an optional ~6 GB+install (`POST /speech/install`). Engineering reference: [`docs/SPEECH.md`](SPEECH.md).++**Cloning needs the voice owner's confirmation.** Any request that uses a character's voice sample+or a clip (`speech_voice_kind=character|clip`) must carry `speech_voice_consent=1` (the agent door:+`"voice_consent": true`) — the caller confirms the voice is their own or that they have the+speaker's permission. Without it the request is refused with 400 and nothing is queued. The+confirmation is recorded in the output's sidecar (`voice_consent`). Impersonation is against+Phosphene's acceptable-use policy.++### `POST /queue/add` with `mode=speech`++| Field | Values | Notes |+|---|---|---|+| `speech_text` | string, ≤ 2000 chars | One generation per non-empty line; lines join with a short breath. |+| `speech_voice_kind` | `preset` (default) \| `character` \| `clip` | |+| `speech_voice` | `ryan`, `aiden`, `serena`, `vivian`, `uncle_fu`, `dylan`, `eric`, `ono_anna`, `sohee` | `preset` only. Ryan and Aiden are native English. |+| `speech_style` | `natural`, `warm`, `excited`, `deadpan`, `dramatic`, `whisper`, `sad`, `angry` | `preset` only: a delivery instruction the model reads. |+| `speech_instruct` | string, ≤ 300 chars | `preset` only; replaces the style's instruction ("tired, like it's 3 a.m."). |+| `speech_character` | a character id (`GET /characters`) | `character`: clones from that character's `voice_sample`. |+| `speech_ref_audio` | a path (from `POST /upload`) | `clip`: 5–20 s of one person speaking. |+| `speech_ref_text` | string, ≤ 600 chars | `character` or `clip`, optional: the words heard in the reference clip; the model then continues the recording (closer match — measured below in docs/SPEECH.md). |+| `speech_voice_consent` | `1` | **Required** for `character` and `clip`. |+| `speech_speed` | 0.5–2.0, default 1.0 | Pitch-preserving tempo (ffmpeg `atempo`). |+| `speech_language` | `english` (default), `chinese`, `japanese`, `korean`, `german`, `french`, `russian`, `portuguese`, `spanish`, `italian` | |+| `speech_seed` | int, `-1` = random | Same seed + text + voice = same take. |+| `speech_title` | string | Names the file. |++Progress rides `/status.current.progress` (`phase`: `load` → `speak` → `write`). The sidecar carries+`engine: "speech"`, `voice`, `voice_kind`, `instruct`, `text`, `audio_seconds`, `seed`, `peaks`+(`mlx_peak_gb`, `process_peak_gb`) and, for clones, `voice_consent`.++### `POST /speech/generate` — the agent door++JSON (`Content-Type: application/json`) or form. Same job as above, agent-shaped:++```json+{"text": "Please remain seated until the progress bar comes to a full stop.",+ "voice": "aiden", "style": "dramatic", "speed": 1.0, "wait": true}+```++`character` (+ optional `clip_text`, the words in its voice sample) + `voice_consent: true` clones a character; `clip` (+ optional `clip_text`) + `voice_consent: true`+clones a clip. `instruct`, `language`, `seed`, `title` as above. `wait` (default `true`) blocks+until the WAV is written (≤ 10 min queue wait) and answers+`200 {"ok":true,"job_id","path","url","audio_seconds","voice","seed","elapsed_sec","next"}`;+`wait:false` answers `202 {"ok":true,"queued":true,"job_id","estimate"}`. Errors: `400` (bad request,+missing confirmation), `409` (`code: not_installed`, or the job was stopped), `500` (the engine+failed; `error` is its sentence), `504` (queue wait timed out).++To lip-sync the result: `POST /queue/add` with `mode=a2v`, `audio=<path>`, `image=<a picture of the+face>` and a scene `prompt` (see Lip-sync above).++LTX-2.5 Speech outputs get a scene soundtrack by default (`a2v_scene_sound=auto`, identified by the WAV's Speech sidecar). Use `off` for voice only, or `on` to add a bed to other input audio. `a2v_scene_prompt` optionally describes the desired ambience/SFX; blank uses the scene prompt with dialogue removed. `a2v_scene_bed` optionally supplies an existing local bed instead of generating one (it can include instrumental music). The installed Q4 LTX joint audio branch makes a separate 512×320 take (8 denoise + 2 refinement steps); its picture is discarded. This is prompt-matched sound, not frame-constrained v2a. The voice alone conditions a2v, then ffmpeg copies its video stream and mixes the bed at −25 LUFS with 5:1 voice sidechain ducking (12 ms attack, 350 ms release). The output sidecar records the bed, prompt, settings and mix; the lip-sync score is measured before adding the bed. H3 and LTX-2.3 are unchanged.++### `GET /speech/voices` · `GET /speech/estimate` · `POST /speech/install` · `POST /speech/install/stop`++- `/speech/voices` → `{presets[], styles[], characters[] (only those with a voice sample), languages[], status, install}`.+- `/speech/estimate?text=…&speed=…` → `{audio_sec, eta_sec, lipsync_fits}` (words ÷ 2.8/s; always an estimate).+- `/speech/install` starts the background install (preflight → Python 3.12 venv → mlx-audio at+ `scripts/speech/speech_constraints.txt` → the two pinned checkpoints); progress rides+ `/status.speech_install` (`state`, `step_index`, `percent`, `bytes_done`/`bytes_total`). Install again+ resumes. `/status.speech` says whether it is `available`.+## Image generation (separate from video)### `POST /image/generate`@@ -777,6 +844,8 @@ The Editor is a **top-level workflow**, not a stage of the storyboard: engine-ag| `restore` | `id`, `file` | Restore a history entry. Refuses while the film renders. || `render` | `id`, `out`, `music`, `music_mode`, `format`, `size` | Assemble the film. `music_mode` is `replace` \| `under`. **Deliver as:** `format` is `h264` (default, the panel's preset) \| `hevc` (VideoToolbox, `hvc1`, about half the bytes) \| `prores` (422 HQ, 10-bit 4:2:2, PCM sound, a `.mov` no browser previews); `size` is `native` (as cut) \| `1080p` \| `2160p` — one Lanczos scale after the overlays, up only, never a crop, skipped when the cut is already that height. `finish` is `none` \| `grain` \| `heavy_grain` — moving film grain (`noise` t+u, strength 9 / 18) added AFTER the size so a 4K delivery gets 4K grain; a delivery-time treatment, never in the document, never in the preview or the export. A different delivery is a different file: `<slug>_film_hevc_1080p.mp4`, `<slug>_film_prores.mov`, `<slug>_film_1080p_grain.mp4`. The facts carry `deliver: {format, size, finish, label}`. || `export-nle` | `id` | FCP7 XML + After Effects JSX + linked media. |+| `import` | JSON: a cut spec, or `{cut: <spec>, wait: true}` | **An agent's cut -> a new film, ready to edit by hand** (5.0). One call for what took ~20. Answers `{id, title, clips, duration, notes, imported_files, editor_url, prepare}`; `editor_url` (`/?open_film=<id>`) opens it in the Editor. `wait: true` answers once the proxies, overlay previews and waveform are built. See **Cut spec** below. CLI `phosphene open-cut cut.json`; MCP `phosphene_open_cut`. |+| `overlay-preview` | `id`, `path?` | Build the missing overlay previews for the film's saved overlays (plus `path`, if it is one of the panel's own files), synchronously; answers `{previews: {path: "proxy/ov-….mp4"}, built, failed}`. The Editor calls it for a video overlay that has none yet. || `reveal` | `id`, `what` | Show in Finder. || `generate` | `id`, `prompt`, `duration`, `duration_s`, `film_start`, `pass`, `character_id`, `seed`, `title`, `engine`, `trigger`, `retake_of` | Shoot a new clip straight into a slot. With `retake_of=<clip id>` it is a **retake**: the clip's own shot is CLONED (character, refs, location, engine) and only the prompt, the length and the seed change; the new shot carries `edit_slot.retake_of`, and when it renders the Editor offers it against that clip ("Use it" / "Keep the old one"). 400 if the clip is no longer on the timeline. |@@ -858,8 +927,31 @@ A cross-dissolve is two clips in the same second, and the picture lane's one-cli`duration` is clamped on every read (`transition_duration`) to `min(asked, half the shorter neighbour, 2.0 s)` and snapped to an even number of frames; the document keeps the number typed. A side with no spare material is refused — `transition_no_handles` names the side and the shortfall ("clip 2 has only 0.10s before its in-point and the dissolve needs 0.25s there"). Every transition code (`transitions_shape`, `transition_shape`, `transition_unknown_clip`, `transition_last_clip`, `transition_duplicate_boundary`, `transition_kind`, `transition_duration`, `transition_no_handles`) is an **error**; none is in `WARNING_CODES`. `render` refuses with the same sentence. A still and a slug have all the handles anybody could ask for.+#### Cut spec — `POST /storyboard/edit/import`++The agent's vocabulary, turned into an `edit.json` by `storyboard_editor.edit_from_cut`:++```jsonc+{"phosphene_cut": 1, "title": "SUNDAY MASS", "fps": 24,+ "clips": [{"path": "/…/s08_t1.mp4", "in": 0.7, "at": 11.6, "title": "s08"}, // out?, length?, speed?, gain?, mute?, fade_in?, fade_out?+ {"path": "/…/s26_t1.mp4", "in": 0, "at": 58.5, "length": 5.0}],+ "clip_gain": 0.9, // every clip's sound level (a flat envelope)+ "clip_fades": [0.04, 0.06], // sound fade in/out on every clip edge (a clip's fade_in/fade_out wins)+ "soundtrack": {"path": "/…/score.m4a", "at": 0, "in": 0, "gain": 1.0},+ "overlays": [{"path": "/…/sting.mov", "at": 0, "end": 63.5}, {"text": "FIN", "at": 60, "end": 63}],+ "sounds": [{"path": "/…/bell.wav", "at": 12.0, "gain": 0.5}]}+```++- A clip plays from its `at` to the next clip's `at` (the last for its `length`); every time snaps to a frame, so neighbours touch. Without `at` on every clip they are laid back to back. `out` caps the material; the take's length always does. A picture file (`.png`, `.jpg`, …) is a still held for its slot.+- A slot longer than its material (a talking shot whose silent head was skipped) is filled by slowing the clip down to `CUT_FIT_SLOWEST` (0.9x); past that the clip keeps its material and leaves a hole. Both are reported in `notes`.+- A clip with `"mute": true` keeps its picture and drops its own sound (the document's clip mute): a lip-sync shot whose voice is already in the score would otherwise double, phase and clip.+- The soundtrack plays Under the clips at its `gain`, no duck; the document is stamped so the legacy mix heal never applies.+- Every file is probed first (one unreadable file refuses the whole cut, nothing written); files outside the outputs are hardlinked (copied across volumes) into the film's own `media/` folder — originals untouched. One board shot per distinct clip.+#### `overlays[]` — cards, mattes, and titles+**A video overlay previews from a copy** (5.0): `GET /storyboard/edit` adds `preview: "proxy/ov-<name>.mp4"` (or `null`) to every video overlay — HEVC with alpha through VideoToolbox (`hvc1`) when the source has alpha (a ProRes 4444 sting), all-intra H.264 otherwise — built by Prepare, by the import, and on demand by `overlay-preview`, served by the proxy route. The stage plays it on its own `<video>`; it never hands a video to the card `<img>` (that drew a broken-image "?" over every frame). The render composites the original, as always.+`kind` is `still` | `video` | `text`. An explicit `kind` wins; with none, the path's suffix decides (`.png`/`.webp`/`.tif` are stills), so every overlay written before titles existed reads as it did. A **title** is an overlay whose pixels the render draws:```jsonc@@ -933,6 +1025,28 @@ Opens the output's containing folder in Finder (Mac).---+## Phosphene Bench — `/bench/*`++A fixed, versioned benchmark (`bench.py`; suite PB1). It renders through the+same queue and job timer as `/queue/add`, so its times are real render times.++| Route | What |+|---|---|+| `GET /bench/plan` | `{suite, steps[], can_run, why, conditions, analytics_enabled, runs[], unsent_eligible, install, state}` — what will run on this Mac and why not. `steps[].status`: `ready`, `missing` (with `install`), `optional_skip` (H3). `why`: `busy_queue`, `busy_gpu`, `busy_download`, `wrong_generation`, `ltx_missing`, `image_missing` |+| `GET /bench/status` | the live run: `{running, run_id, steps[], step_index, step_elapsed, last_run, stopped, error}` |+| `POST /bench/start` | `{ok, run_id}`, or 409 `{code}` when anything is queued, running, holding the GPU or downloading, or a core step is not ready |+| `POST /bench/stop` | stops the run and the step it is rendering |+| `GET /bench/run?id=` | the result JSON (`docs/bench.schema.json`); `&download=1` saves it |+| `GET /bench/card?id=` | the 3200×1800 result card PNG; `&download=1` saves it |+| `GET /bench/text?id=` | `{text}` — the "Copy results" summary |+| `POST /bench/submit` | opt-in: sends every complete, unsent PB1 run as `bench_result` (docs/ANALYTICS.md); 403 `analytics_off` when analytics is off |+| `POST /bench/install_image` | downloads FLUX.2 [klein] 4B into the Hugging Face cache on an explicit click |++Results live in `state/bench/<run_id>.json` + `.png`; `state/bench/submitted.json`+lists the runs already sent.++---+## Model licences (4.19.8)### `GET /licences`@@ -1174,3 +1288,26 @@ Everything that the chat used to do — plan multiple shots, generate candidate- Session state: agent maintains it externally.External agents (Claude Code, Codex, OSS) have full panel functionality through this API surface.+++### Model storage++`GET /storage` lists model folders and their measured byte sizes, including+current packs and unknown folders (kept). `reclaimable` counts only exact+superseded filenames reviewed in `model_storage.RETIRED`, excluding required+files, linked files and protected locations. `confirmation` identifies that+snapshot. Sizes use decimal GB. Shared model roots are supported; linked pack+folders are protected. Hugging Face caches outside the model roots are not scanned.++`POST /storage/cleanup` takes form fields `confirmed=yes` and `confirmation`+from a fresh inventory. It takes the downloader's folder locks and rechecks the+snapshot before unlinking only those retired files. A changed snapshot or busy+folder returns 409; a missing confirmation returns 400. An I/O failure returns+500 and may leave a partially completed cleanup; refresh to see what remains.+No client-supplied path is accepted. Outputs and LoRAs are never candidates.+The free Settings > Storage panel asks for confirmation before this request.++The initial retirement list covers unused pre-Y1.024 LTX 2.3 transformer and+upscaler variants. LTX 2.3 training packs and all Turbo adapters stay protected+from this action because they remain supported. Future model swaps must add+reviewed exact filenames to the retirement list, with safety tests.diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex bacdc51..c03179b 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -34,6 +34,7 @@ webapp/ ← the frontend, as plain files served from disk│ ├── storyboard.js ← the Storyboard tab│ ├── editor.js ← the timeline editor│ ├── oneshot.js ← the One Shot tab (its own composer; posts to /oneshot)+│ ├── bench.js ← the Phosphene Bench window (paints /bench/plan + /bench/status)│ └── main.js ← the kickoff sequence — ALWAYS the last tag (see below)└── style/└── panel.css ← ALL panel CSS (slice 1, landed)diff --git a/docs/BENCH_REVIEWER_GUIDE.md b/docs/BENCH_REVIEWER_GUIDE.mdnew file mode 100644index 0000000..6f9dba0--- /dev/null+++ b/docs/BENCH_REVIEWER_GUIDE.md@@ -0,0 +1,23 @@+# Phosphene Bench: reviewer guide++PB1 is a fixed local workload, not a score or a quality ranking. Use a supplied Bench-enabled build. Record its version and edition with every result. The public release and leaderboard may not yet include Bench.++**Run it.** Plug in the Mac, turn Low Power Mode off, let it cool, and close GPU-heavy apps. Open Settings → Phosphene Bench. Use the model Install buttons if offered, then wait for downloads to finish. Keep at least 15 GB free after installation. Leave Output format at Standard. Finish or clear the queue, then click Run Bench. Leave the Mac idle until the result appears. Save the PNG and JSON; Copy results gives a text summary. Stop keeps an incomplete record. Do not submit results unless you intend to share them.++**What runs.** An untimed 1-second LTX-2.5 warm-up, Quick 5 seconds with sound (640×448), Balanced 5 seconds with sound (1024×576, or 768×448 below 48 GB), then four 1024×1024 FLUX.2 [klein] 4B images. H3 Draft is optional and runs only if already installed, supported and licensed. Prompts and seed are fixed. Enhancement, upscaling and acceleration are off.++**Read the numbers.** Lower seconds means faster. The card's large number is Balanced alone, not total suite time. Each time covers the app's render job through saving the output. Warm-up is separate; the image step includes image-engine startup. Peak memory is whole-Mac use sampled twice a second, not Phosphene's allocation. “Added” is the rise above the pre-step level; engine peak, when available, is a separate measure. Swap, heat, power settings and other apps affect results. Compare matching PB1 fingerprint, edition, canvas and output preset. Keep all repeats and report the median, not the fastest take. All three core steps must finish for a complete result.++**Time to allow.** On an M4 Max, 40-core GPU, 64 GB, PB1 measured 4m 47s from start to finish on October 23: warm-up 28s, Quick 68s, Balanced 136s, images 53s, H3 skipped. A prior run on the same Mac took about 5 minutes. Allow 5–10 minutes there, excluding installation and optional H3.++For other chips, PB1 totals have not been measured here. These local October 22 fleet medians are planning context for the video steps only, from everyday renders with different settings. They are not PB1 predictions or an apples-to-apples chip ranking. RAM and sample mix differ.++| Chip | Quick / Balanced, 5-second video |+| --- | --- |+| M1 Pro / Max / Ultra | 5m50s / unknown; 3m20s / 5m30s; 1m35s / 3m |+| M2 Pro / Max / Ultra | unknown; 1m55s / 4m; unknown / 2m30s |+| M3 Pro / Max / Ultra | 7m50s / unknown; 2m / 4m25s; 55s / 1m50s |+| M4 / Pro / Max | 7m / unknown; 2m55s / 5m50s; 2m / 2m55s |+| M5 / Pro / Max | 3m45s / unknown; 1m20s / 2m30s; 50s / 1m20s |++Allow additional time for warm-up, four images and any H3 step. Base M1–M3 and configurations absent above have no verified time here. Measure them before quoting a PB1 total. Source: the held site's `src/data/bench.json`, fleet section; PB1 JSON remains the result of record.diff --git a/docs/CAPABILITIES.md b/docs/CAPABILITIES.mdnew file mode 100644index 0000000..b95470f--- /dev/null+++ b/docs/CAPABILITIES.md@@ -0,0 +1,55 @@+# Capabilities: what every model and variant can do (5.0)++`model_capabilities.py` is the one table of what each engine and each variant+(H3 Best, Fast, Fast HD, Flex, Flex Turbo; LTX-2.5 / 2.3; YuE2) can render.++| Who reads it | How |+|---|---|+| The page | `BOOT.capabilities` (first paint) and `GET /capabilities`. `webapp/js/capabilities.js` greys every mode chip, canvas/length chip and option the picked variant does not declare, with the row's own one-line reason as the tooltip; a click on a greyed control only shows the reason. |+| The server | `model_capabilities.check(variant_id, mode=, cell=, options=, inputs=, pro_active=)` returns each unsupported axis with its reason and the row's `fallback` (another variant, or `None` = refuse). |+| The build | `test_model_capabilities.py` binds every row to the constant or predicate the render path uses today (`H3_FLEX_MODES`, `h3_cell_takes_flex`, `h3_cell_takes_tristep`, the engine registry), so a row and its constant cannot drift apart. |+| A port | `~/.claude/skills/phosphene-model-port` stage 5 writes the row. |++## A row++```python+"h3.flex_turbo": {+ "engine": "h3", "label": "H3 Flex Turbo",+ "pick": {"speed": "flex_turbo"}, "rank": 2, # how the form selects it+ "inherits": "h3.flex", # everything Flex declares...+ "status": "preview",+ "pro": True, "ledger": "h3-flex-turbo", # ...plus Pro, tied to pro/ledger.json+ "steps": 4,+ "fallback": "h3.flex", # what renders instead when it cannot+ "reasons": {"modes": "H3 Flex Turbo makes videos from text or an image. Switch to H3 for this.", ...},+},+```++Axes: `modes`, `qualities`, `lengths` (None = every one the engine has),+`cells.exclude_flags` (`dense` = the single long pass, `fast_hd` = the Fast HD+recipe), `inputs`, `outputs`, `options`. Anything a row leaves out it inherits+from its engine row (or from `inherits`). Anything not declared is greyed.++`pick` + `rank`: the page works out the live variant from what the form has+picked (speed, quality, generation). The highest rank wins: Flex (2) over a Fast+HD cell (1) over Fast/Best (0).++## Adding a variant (a port)++1. Add the row. Declare only what was rendered and measured.+2. `python3 model_capabilities.py`: prints the table, exits 1 on a bad row+ (unknown axis value, a Pro row without its ledger id, a fallback to another+ engine, a reason over one line).+3. Bind it in `test_model_capabilities.py::TestBoundToThePanel` to the predicate+ its render path uses.+4. If the picker selects it through a new control, add the control to+ `CAP_OPTION_CONTROLS` / `capPickNow()` in `webapp/js/capabilities.js` (DOM+ facts only; never a mode list or a sentence).++## Status (31 Oct 2026)++The table, the route, BOOT, the generic greying and the binding tests are in.+The H3 Flex specific greying (`wt/flex-gray-50`, `fix/flex-gray-50`) lands+separately; once it does, its `h3FlexServesMode` / `h3CellTakesFlex` read these+rows and `H3_FLEX_MODES` / `h3_cell_takes_flex` derive from them, so the binding+test becomes an identity.diff --git a/docs/CHANGELOG_4.19.13.md b/docs/CHANGELOG_4.19.13.mddeleted file mode 100644index 30c9e2a..0000000--- a/docs/CHANGELOG_4.19.13.md+++ /dev/null@@ -1,9 +0,0 @@-# Phosphene 4.19.13--- Fixed a cause of jumps between One Shot sections. Each section now starts from the last picture of the previous one, including when resuming a stopped take.-- Ingredients now checks model compatibility before preparing a render, with instructions for choosing a supported mode.-- Image crashes give more accurate recovery advice, without assuming every crash means insufficient memory.-- Failed model licence saves can be retried, and the app and installer agree on whether acceptance was saved.-- Fixed engine repair failures when the installation path contains spaces.--In Pinokio, press Update, then restart Phosphene. No new models or features are included.diff --git a/docs/CHANGELOG_5.0.0.md b/docs/CHANGELOG_5.0.0.mdnew file mode 100644index 0000000..93a926c--- /dev/null+++ b/docs/CHANGELOG_5.0.0.md@@ -0,0 +1,27 @@+# Phosphene 5.0++**Phosphene 5.0: a native Mac app next to Pinokio, a redesigned panel, Speech and lip-sync, FLUX 3 Klein, P-H3-Image, Bench, and Pro.** Everything that was free stays free.++## Free++- **Two ways to run it.** Pinokio (press Update, then restart Phosphene) and, new, a native Mac app that needs no Pinokio and can reuse models you already downloaded: [phosphene.video/download](https://phosphene.video/download/).+- **A redesigned panel.** One calmer layout, the Model picker is the first row on every surface, and the options change with the model you pick.+- **Speech and lip-sync.** Type a line, get a spoken voice, then lip-sync a face to it.+- **FLUX 3 Klein** by Black Forest Labs: pictures from text and edits with reference pictures, free (it arrived in 4.19.14 and is part of 5.0 too).+- **P-H3-Image by Pruna AI.** Big photographs, film frames and posters from a sentence, with short quoted text spelled as typed. Needs a Mac with 48 GB or more and Hailuo H3 installed.+- **Bench.** Measure what your Mac can do and compare it with other Macs.+- **Now free for everyone: Clean up sound (H3 Fast)**, which re-makes the sound of a Fast H3 clip and keeps the picture.+- **Now free for everyone: Reference picture on H3**, a picture of a character to keep in the shot.+- **Fixes carried from 4.19.x:** Colorize, Motion Control and One Shot repairs, and everything in 4.19.19.++## Pro (optional, paid)++- **Pro activation.** Paste your licence key in the app (or Pinokio) to switch Pro on.+- **Faster H3.** Picture-to-video at 5, 10 and 15 seconds renders about 1.15 to 1.23 times faster than Free on Apple Silicon with 36 GB or more, with the same faces, motion, voice and joins in our tests (measured on an M4 Max with 64 GB; other chips get a smaller gain). Text-to-video is not sped up: Pro renders it exactly as Free does.+- **H3 Flex Turbo.** A faster draft of H3 Flex, about 1.4 times quicker and a little softer. Use H3 Flex or Best for the final.++## Not in this release++- iPhone Remote is not part of 5.0; it is marked Coming soon.++In Pinokio, press Update, then restart Phosphene.diff --git a/docs/H3_ENGINE.md b/docs/H3_ENGINE.mdindex 24e2afc..d32ab14 100644--- a/docs/H3_ENGINE.md+++ b/docs/H3_ENGINE.md@@ -486,6 +486,19 @@ Both digests are checked; a corrupt or partial build is deleted, neverrenamed into place. `test_h3_v13.py` pins script↔panel parity, the re-layoutagainst an independent reference, the job rules, the argv and the prices.+### H3 Flex Turbo: the four-step Flex (5.0, Pro, preview)++akhaliq/Pika-H3-Flex-Turbo-LoRA @ dcacd93, file `pika_h3_flex_turbo_4step_fl2va_lite_r32.safetensors`+(sha256 7c60a2ff..., 310,189,392 bytes), saved as `pika-h3-flex/pika_h3_flex_turbo4_fl2va_lite_r32.safetensors`+and run as published: `--sampler euler --sigma-knots 1000,750,500,250,0 --steps 5 --video-shift 6+--audio-shift 3 --lora <file>:1.0 --lora-qkv-permute --lora-fc1-swap` (the runner re-orders the fused+diffusers-layout q/k/v and fc1 halves at load). Needs no Flex adapter and no engine change beyond the 5.0+pin (`phosphene/v5.0`, which has every flag). Panel: `H3_FLEX_TURBO_*`, `h3_flex_turbo_status()` in+`/status` as `h3.flex_turbo`, `h3_flex_turbo=1` in make_job (rides every Flex gate), `POST+/h3/flex-turbo/install` (402 without Pro), picker entry `h3flexturbo`, timing lane `flex_turbo`.+Pro gate: `h3_flex_turbo_allowed()` (Pro ledger row `h3-flex-turbo`). Measured (R&D Lab L4, M4 Max 64 GB,+Q8 DiT): High 1024x576 5 s 613-712 s vs Flex 928-1003 s on the same seeds; Draft 5 s 213 s.+### Pika H3 Flex: Pika Labs' six-step H3, natively on Apple Silicon (2026-10-30)**Pika H3 Flex running natively on Apple Silicon (MLX) — the first Mac port we know of.**@@ -646,6 +659,86 @@ auto:5`): 489 s, ArcFace 0.892 (min 0.814), visible expression change at the samnot adopted; the flag stays in the runner for research only.+### Clean up sound (5.0): re-make a Fast render's sound++Fast's sound comes from the same pass as its picture, with the 3-step adapter+on. Measured against Best on the same prompt and seed it is low-heavy and dull:+on a Mr Bizarro speech clip 55% of its energy sits under 300 Hz (Best: 8%), its+spectral centroid is 552 Hz (Best: 1051 Hz); on a forge clip the anvil's ring+(2-6 kHz) is 20% of the energy against 49% when the sound is re-made, and the+two stereo channels agree less (L/R correlation 0.85 vs 0.93). This matches+the third-party report about turbo-adapter sound (harsh, thin, echo-like),+though on our TaoMate adapter "muddy" is the better word.++**Clean up sound** (a checkbox under Speed, only with Fast) passes+`--revoice-steps 9 --revoice-drop <the Fast adapter>`. After the picture is+denoised the runner sets the Fast adapter's LoRA entries to 0 (a character+LoRA stays on, so a trained voice keeps its voice), holds the finished picture+clean (t = 1) and the text rows at t = 0, and denoises only the audio rows from+fresh noise over a 9-point audio schedule. One full forward stores every+block's keys/values for the rows that never change (int8, one scale and bias+per 128-wide head vector); the 8 audio steps then run the audio rows alone+against that store.++| Standard 5 s, M4 Max, Q8 | Fast | Fast + Clean up sound | Best |+|---|---|---|---|+| Wall clock (speech / song / forge) | 4.3 / 4.0 / 4.0 min | 5.6 / 5.2 / 5.2 min | 9.5 min |+| Re-voice pass | - | 74-80 s (store forward 64 s, then ~1.8 s per audio step) | - |+| Peak | 22.9 GiB | 32.7 GiB | 22.9 GiB |+| Speech: energy < 300 Hz / centroid | 55% / 552 Hz | 8% / 978 Hz | 8% / 1051 Hz |+| Speech transcript (whisper large-v3-turbo) | exact | exact | exact |+| Word boundaries vs Fast | - | within 0.04 s | - |+| Mouth-opening vs loudness correlation | 0.42 | 0.31 | 0.46 |++Draft: store forward 43 s + 1.9 s per audio step (+56 s), peak +6.6 GiB. The+store grows with the canvas (~0.74 MB per packed row): `h3_revoice_fits()`+greys the box where the Fast peak plus the store does not fit the budget the+runner is given (High on a 36 GB Mac). The exact path (`--revoice-kv off`,+every step a full forward) gives the same spectral result; the store is not+what moves the numbers. `--revoice-strength < 1` (start from Fast's own sound+noised to that sigma) keeps more of Fast's low end; not used.++Off by default (`H3_REVOICE_DEFAULT`): it costs ~30% of a Fast render, and the+mouth/loudness correlation drops (0.42 -> 0.31 on the speech clip) even though+the words land on the same frames. Proof clips `h3wk_cleansound_*` in the+dev gallery play the same picture with Fast's sound, then the cleaned one.++### Face to keep: a reference image on FL2VA (5.0)++`--reference IMAGE [--reference-size N] [--ref-patch PATCH[:S]]` packs a still+as MiniMax's ref2va image block on the FL2VA layout: its own canvas (2048 px+short edge upstream; the panel uses 1024), its own aspect-normalised grid, one+rotary slot before the target, conditioning noise from its own draw, and+`<Picture n>` in the vision tower after any keyframes.++In the panel: **Face to keep** (an optional picker above the prompt, H3 Text and+Image only, `h3_reference` in the make_job allowlist). The panel passes+`--reference <file> --reference-size 1024` and, unless the prompt already names+a picture, appends "The person from <Picture n> is in this shot, with the same+face, hair and facial hair." to the description (n = 2 when a first frame is+Picture 1). The prompt the user typed is kept in the sidecar; `h3.reference`+records the still that was packed.++Identity, Standard Fast text-only cafe scene, two seeds, ArcFace against the+Mr Bizarro still centroid with the reference photo itself excluded (PM hub report+for every arm):++| Arm | seed 5201 median (min) | seed 5202 median (min) | Time |+|---|---|---|---|+| Text only (description of the man) | 0.365 (0.339) | 0.352 (0.328) | 3.9-4.0 min |+| + reference at 1024 | 0.709 (0.691) | 0.674 (0.660) | 5.0 min |+| + reference + Ref Patch | 0.691 (0.663) | 0.617 (0.582) | 5.0-5.1 min |+| Same photo as the first frame (composition locked to it) | 0.736 (0.711) | 0.702 (0.670) | 4.2-4.3 min |+| Character LoRA (bizarrotrn) instead | 0.491 (0.448) | 0.582 (0.523) | 4.0 min |++So the reference keeps a face about as well as using the photo as the first+frame, while the scene, framing and wardrobe follow the prompt. The Ref Patch+(lihaoyun6, Apache-2.0, 148 MB: ref2va-minus-fl2va differences of the+input/output projections; its AdaLN weights target an 8-wide input this+checkpoint does not have) did not help and is not used by the panel.+RefMods (ComfyUI-MiniMaxH3Mod, MIT; weights Apache-2.0) are pre-encoded+reference latents for the same slot; not imported.+### Export pass — the same post-process LTX renders getDraft writes 640×384 (5:3) and Standard 768×448 (12:7), neither of them 720p@@ -877,7 +970,7 @@ plus a rank-128 adapter (208 modules, scale 1.0: proven tensor by tensor againstfive-tap Qwen3-VL-4B text encoder + connector and a new single-frame ViT image decoder.- Runner: `scripts/generate_image.py PROMPT -o OUT --root <models>/p-h3-image --dit <q8> --aspect A --mp 2|4|8 --seed N --metrics M`- (engine ref `phosphene/v4.19.19-image`, pin 4df59c7: the 4.19.15 engine plus only the image commits). Staged: text encoder out, then DiT + adapter,+ (engine branch `image/p-h3-image`, pin 63893b3 on ref `phosphene/v5.0-image2`). Staged: text encoder out, then DiT + adapter,then the decoder (tiled, 16x16 tokens).- Adapter layout: qkv rows permuted to our per-head layout, fc1 as published (NOT `--lora-fc1-swap`, unlike Flex). The load logs`208 applied, 0 skipped`.@@ -885,8 +978,8 @@ five-tap Qwen3-VL-4B text encoder + connector and a new single-frame ViT image dbeside them, the decoder converted locally (renames + re-fused tensors, values unchanged, MODIFICATION_NOTICE in its metadata)and checked against `DECODER_SHA256` 0415dda9; the 5.6 GB original is deleted after and never fetched again.- Studio: `image_engine.kind = "ph3image"`, engines `ph3image_draft_inline` / `ph3image_standard_inline` / `ph3image_inline`- (2 / 4 / 8 MP), `POST /image/ph3image/install` (H3 licence gate), `/status` block `ph3image`.-- Measured, M4 Max 64 GB: 2 MP 75 s, 4 MP 146 s (15.4 s/step),+ (2 / 4 / 8 MP), `POST /image/ph3image/install` (H3 licence gate), `/status` block `ph3image`, capability row `images.p_h3_image`.+- Measured, M4 Max 64 GB (ports/p-h3-image-pruna/bench/RESULT.md in the PM hub): 2 MP 75 s, 4 MP 146 s (15.4 s/step),8 MP 312 s; peak 24.2 / 24.7 / 25.5 GB. Real-weight parity vs Pruna's code: text taps cos >= 0.99994, connector 1.000,decoder fp32 126.8 dB.- Not ported: edit mode (1-8 reference images; needs the VAE encoder mapping and the vision tower), the 19 GB prompt rewriter.diff --git a/docs/IMAGE_DIAGNOSTICS.md b/docs/IMAGE_DIAGNOSTICS.mdnew file mode 100644index 0000000..b84ba77--- /dev/null+++ b/docs/IMAGE_DIAGNOSTICS.md@@ -0,0 +1,36 @@+# Local image diagnostics++Image jobs using mflux keep up to 16 local records in state/image-diagnostics.json,+with a 32 KiB file limit and owner-only file permissions. The existing analytics+privacy switch also disables this collection and excludes saved records from+support export. No diagnostic fields are added to analytics or network delivery.++Records contain the selected preset, recognized model ID, effective command-line+quantization and steps, canvas, reference count, available GiB before admission+and immediately before spawn, last positively observed phase, child exit status,+start time and outcome. Direct engine calls without a panel preset say unknown.+Custom model paths and unrecognized model IDs say unknown to avoid exposing names.+Unavailable memory readings are null, not zero. Admission readings precede the+existing preflight, which can subsequently release the idle video helper.++The native excerpt keeps at most eight exact recognized error phrases from the+worker stream. Surrounding prose, paths, credentials, environment values and+prompt text are discarded before persistence. Unknown exception prose is not+saved. This does not scan macOS crash reports or infer OOM from a signal. No+phase marker means unknown; a download line alone is not a download diagnosis.++A single daemon writes sanitized snapshots through a queue of eight. Slow or+failed storage drops evidence instead of blocking a job. A process exit before+spawn leaves exit status unknown. Abrupt panel shutdown can lose queued records.+The outcome describes child execution, not validation of the resulting image.++The existing bug-context log bundle includes revalidated records. The native+app includes them in its existing log_tail only when support diagnostics are+selected, with the same preview and consent flow. Export validates the closed+schema again, even if the local file was edited. Disabling collection hides old+records from export; it does not delete them. No automatic upload is added.++Tests use CPU-only fixture workers for download failure, load and render abort,+explicit allocation failure, unknown abort, timeout and Stop. These tests prove+collection and privacy boundaries, not a fix for the native Qwen crash or new+memory requirements. No defaults, retries or RAM floors change.diff --git a/docs/MUSIC_ENGINE.md b/docs/MUSIC_ENGINE.mdindex 2fab910..2f372e3 100644--- a/docs/MUSIC_ENGINE.md+++ b/docs/MUSIC_ENGINE.md@@ -38,9 +38,45 @@ folder, so with hf_xet it moves as each large file lands.## Memory, length and estimates-The floor is **24 GB unified memory** (`MUSIC_MIN_RAM_GB`). Peaks-measured 11.0 GB on this integration's runs (see below). Installation-requires **14 GB free** on the weights volume; the pack occupies about+The floor is **16 GB unified memory** (`MUSIC_MIN_RAM_GB`; 24 GB until+4.19.12). Peaks measured 11.0 GB on this integration's runs (see below), and+the engine sizes itself to the Mac: `yue2_run.default_budget_gib()` gives a+12 GiB process-footprint budget on 16 GiB (the pinned engine refuses any+budget above total − 4 GiB), and `lyra/measure.py` then sets MLX's advisory+memory limit to budget − 5 = 7 GiB (MLX syncs and frees cache above it; it is+not a hard cap) with a 128 MiB cache. The same floor is in `pinokio.js`+(`musicCapable`), `scripts/pinokio/music_preflight.sh` and the install+banner; `test_music_16gb.py` holds all of them to it.++**How 16 GB was proved (4.19.12).** Real songs through the real panel under a+simulated 16 GB Mac — a `sitecustomize` shim reports 16 GiB to the panel+(`hostinfo`) and to the runner (`psutil`), so the engine runs with exactly the+budget and MLX limits a 16 GB Mac gets, plus MLX's own 16 GB ceiling+(`set_memory_limit(15.2 GB)`) — against the same songs and seeds on a 64 GB+Mac: short, full-length, instrumental with the LoRA pack, and a cover.+Every WAV came out **byte-identical** (sha256) to the 64 GB run:++| Song (8-bit, Final) | Audio | 16 GB sim: MLX peak · process peak · wall | 64 GB: MLX peak · process peak · wall |+|---|---|---|---|+| short (60 s cap) | 60.0 s | 8.22 GiB · 9.23 GiB · 75 s | 10.48 GiB · 10.40 GiB · 65 s |+| full, ended naturally | 161.3 s | 8.22 GiB · 9.26 GiB · 181 s | 10.48 GiB · 10.41 GiB · 161 s |+| instrumental + LoRA pack | 60.0 s | 8.36 GiB · 9.36 GiB · 116 s | 10.61 GiB · 10.53 GiB · 106 s |+| cover of the short song | 59.9 s | 8.22 GiB · 9.85 GiB · 65 s | 10.48 GiB · 11.02 GiB · 55 s |++(Process peak = lifetime peak physical footprint.) The 7 GiB advisory limit+makes MLX sync and drop cache more often: the MLX peak falls about 2.2 GiB,+under a 16 GB Mac's ~10.7 GiB recommended GPU working set, for about 10 s+more per song (the 16 GB runs went first, on a colder file cache, so part of+that is load time). The guard saw no pressure warnings and ~32-35 GiB available+here, which says nothing about a real 16 GB Mac.++What a simulation on a big Mac cannot show is a real 16 GB Mac's free memory+with a browser and other apps open. The runner's guard samples it and stops+the song (exit 3) when less than 1.5 GiB is available or the system starts+swapping; the panel then says so in words (`music_memory_guard_message`) and+removes any half-written file.++Installation requires **14 GB free** on the weights volume; the pack occupies about10.5 GB. Repairs verify existing files and need space only for missing bytes.Length follows the lyrics. **Max length** is a ceiling, not a requested songdiff --git a/docs/PRO_LAMP.md b/docs/PRO_LAMP.mdnew file mode 100644index 0000000..5bec070--- /dev/null+++ b/docs/PRO_LAMP.md@@ -0,0 +1,44 @@+# Pro header and lamp++The studio's Pro button opens an optional upgrade dialog. It does not gate any+free feature. The Pro dialog and the Mac app's Pro tab share the title, copy,+SVG paths, Archivo font, colour and 2.8-second entrance.++The source is the `LIGHTS_ON_HEADER` block in `webapp/index.html` and the+`LIGHTS_ON_CSS` block in `webapp/style/panel.css`. The native app bundles exact+copies, rendered locally by `LightsOnHeader.swift`. In the app repository:++```sh+python3 tools/sync_pro_header.py /path/to/free/studio+python3 tools/sync_pro_header.py /path/to/free/studio --check+```++The SVG is decorative. The heading and subline remain accessible text. The+entrance runs once each time the dialog becomes visible or the native Pro tab+is created. Polls and repeated open calls do not replay it. The pull chain,+small head shiver and two brief bulb pulses settle into a steady warm light.+There are no looping effects or audio. Reduced motion starts with the lamp+already on, including the native accessibility preference.++Escape, Tab trapping and scroll locking use the studio's modal scaffold.+Closing returns focus to the opener. Pricing and waitlist links remain visible+without running any animation. At narrow widths the price cards stack.++Validation against a sandbox studio (with the shared GPU locks held):++```sh+python3 scripts/measure_pro_lamp.py http://127.0.0.1:PORT /path/to/proof+```++This exercises Chromium and WebKit, focus, revisit timing, reduced motion,+pricing, and narrow layouts. It saves screenshots and a 5.2-second recording.+No jobs or store actions are submitted. The paid engine is not part of this UI.++## Surface inventory++The free studio had no paid upgrade page on the starting branch. Its new+header Pro button is the upgrade entry. Existing “Q8 Pro” labels name a video+quality preset, not the paid edition, and are unchanged. Model licence dialogs+also stay separate. The Mac app has one pricing screen, `ProView`, reached by+the Pro tab or its menu command. Its licence and installed-component cards+share that header. The Support tab only points people to Pro; it has no prices.diff --git a/docs/SPEECH.md b/docs/SPEECH.mdnew file mode 100644index 0000000..f6a5abc--- /dev/null+++ b/docs/SPEECH.md@@ -0,0 +1,179 @@+# Speech — text to speech in preset or character voices++**Audio → Speech** turns a script into one WAV, in one of nine preset voices (with a delivery+the user describes in words) or in a saved character's own voice, cloned from its voice sample.+The WAV lands in Outputs and goes straight to Lip-sync ("Use this audio for…"). It is a free+feature, an optional install of ~6 GB, and it runs on every Mac Phosphene supports (16 GB up).++User doc: `webapp/docs/speech.md`. HTTP reference: `docs/API.md` → Speech. Agent door:+`docs/AGENT_API.md` → Speech for agents.++## Choosing the model (2026-10-22)++The bar: weights and code under licences that allow free redistribution and use from an MIT+app with no non-commercial trap; native on Apple Silicon (MLX preferred); named preset voices+AND cloning from a short clip; emotion that can be directed; fits a 16 GB Mac beside the panel.++| Candidate | Licence (code / weights) | Mac route | Presets · clone · emotion | Verdict |+|---|---|---|---|---|+| **Qwen3-TTS 12 Hz 1.7B** (Qwen team) | Apache-2.0 / Apache-2.0 | MLX via mlx-audio (MIT); 8-bit conversions by mlx-community | 9 named speakers · clone from ~3 s (Base) · free-text delivery instruction (CustomVoice) · 10 languages | **Chosen.** The only candidate that clears every bar at once. |+| Chatterbox (Resemble AI) | MIT / MIT | MLX via mlx-audio | one stock voice · clone · an "exaggeration" knob | Runner-up for cloning; no named presets, emotion is a single intensity knob. |+| Kokoro-82M | Apache-2.0 / Apache-2.0 | MLX via mlx-audio | many presets · **no cloning** · no emotion control | Rejected: no character voice. |+| Sesame CSM-1B | Apache-2.0 / Apache-2.0 | MLX via mlx-audio | context-conditioned · clone · — | Rejected: the weights repo is gated (HF login + terms) — no one-click install. |+| F5-TTS | MIT / **CC-BY-NC-4.0** | f5-tts-mlx | clone | Rejected: non-commercial weights. |+| Dia 1.6B / Dia2 2B (Nari Labs) | Apache-2.0 / Apache-2.0 | MLX via mlx-audio | random voice per seed · clone · nonverbal tags; English only | Rejected: no stable named voices, English only. |+| Orpheus 3B (Canopy) | Apache-2.0 finetune of **Llama-3.2-3B** | MLX weights | 8 voices · emotion tags | Rejected: Llama 3.2 Community Licence underneath, gated repo, 3B. |+| Zonos v0.1 / ZONOS2 (Zyphra) | Apache-2.0 | v0.1 needs espeak-ng (GPL) phonemes; ZONOS2 MLX is ~4 shards | clone · emotion vector | Rejected: GPL system dependency (v0.1), size (ZONOS2). |+| Fish Audio S1 / Drama 3 | **Fish Audio Research Licence** | mlx-speech | clone · rich tags | Rejected: non-commercial. |+| KugelAudio-0-open | MIT | — | multi-speaker | Rejected: 18.7 GB of weights, no MLX route; no 16 GB Mac. |++Licences were read from each+Hugging Face model card and repository on 2026-10-22; the pins are in+`scripts/speech/speech_manifest.json`.++### The audition++Same three lines, same machine (M4 Max 64 GB, GPU, mlx 0.32.4, mlx-audio 0.5.8):++| Voice | Similarity to the reference | Words heard right | Pitch (ref ~108 Hz) | Time per line (6–10 s of audio) | MLX peak |+|---|---|---|---|---|---|+| Qwen3-TTS Base, clip + its words (in-context) | **0.90 · 0.92 · 0.90** | 3/3, WER 0 | 86–103 Hz | 1.5–2.2 s | 8.3–9.1 GB* |+| Qwen3-TTS Base, clip only (speaker embedding) | 0.90 · 0.88 · 0.89 | 3/3, WER 0 | 85–90 Hz | 1.2–2.1 s | 6.7–7.3 GB |+| Chatterbox (fp16), clip | 0.92 · 0.95 · 0.93 | 3/3, WER 0 | 91–119 Hz | 2.7–4.2 s | 5.0–5.3 GB |+| Qwen3-TTS CustomVoice presets (not clones; a floor) | 0.49–0.61 | 3/3, WER 0 | 141–188 Hz | 1.1–3.4 s | 6.5–6.9 GB |++\* the audition ran both clone modes in one process with MLX's default cache; the panel's runner+caps the cache at 256 MB (see Memory below).++Chatterbox matches the timbre about 0.03 closer, at roughly twice the time and with no named+presets and no worded delivery — a second engine and a second 2.6 GB download for that margin is+not worth it in v1; it is the first candidate if users ask for closer clones. Through the panel's+own doors (`/speech/generate`, the character's untrimmed 23.7 s training sample, no words given)+the Bizarro line scored 0.85; with the clip's words the same voice scores 0.90–0.92, which is why+the form offers a words field for characters too.++Similarity is the cosine similarity of Resemblyzer speaker embeddings between each line and the+14 s reference clip (the sample character Bizarro's voice); "words heard right" is Whisper+large-v3-turbo's transcript against the script; pitch is the median F0 (pYIN).++## Engine and install++| Item | Default | Override |+|---|---|---|+| Engine venv (Python 3.12) | `speech-mlx/.venv` | `LTX_SPEECH_ROOT` |+| Weights | `mlx_models/speech/{customvoice,base}` | `LTX_SPEECH_MODELS` |+| Known-good packages | `scripts/speech/speech_constraints.txt` (mlx-audio 0.5.8, mlx 0.32.4, every package exact) | — |+| Weight pins | `scripts/speech/speech_manifest.json` (repo, 40-hex revision, size + sha256 per file) | — |+| Runner | `scripts/speech/speech_run.py` | owned by the panel |++Its own venv on purpose: mlx-audio needs mlx ≥ 0.32 and LTX holds 0.31.1 (CLAUDE.md §4); the+H3 and music venvs are optional, and Speech must work without either.++**Install** (`POST /speech/install`, the card on Audio → Speech): `speech_setup.sh preflight`+(16 GB memory, 2 GB free for the engine) → `venv` (uv, Python 3.12) → `packages` (uv, `-c` the+constraints file, an import probe, then a marker in the venv holding the constraints' sha256 —+the panel calls the engine ready only when that marker matches, so a venv left half-installed by+a Stop, or made stale by an Update that moves the constraints, is offered the install again) → `speech_fetch.py` (each file at its pinned revision through+`hf_hub_download`, sha256-verified, moved into place; it checks free space against the bytes+still to fetch, minus what a stopped install already staged, plus 2 GB; the two checkpoints share the speech+tokenizer byte for byte, so the second copy is a hard link). Every step is idempotent: Install+again resumes, files that verify are kept, a half-downloaded file resumes from the staging+folder. Paths are passed relative to the app folder (uv 0.11.23 splits a `-c` path at spaces —+the Mac app lives under "Application Support"). A failure prints one `FATAL error:` line, which+the card shows verbatim. Progress: `/status.speech_install` (`bytes_done` counts hard links once).++On disk: 5.5 GB of weights + ~0.45 GB of packages. Nothing is re-hosted; `pack_source.json`+records the sources, revisions and hashes.++## How it plugs in++```+POST /queue/add (mode=speech, speech_*) POST /speech/generate (agent JSON)+ → make_job → speech_engine.speech_params (allowlist) + validate_speech (refusals, consent)+ → worker_loop → run_job_inner → run_speech_job_inner+ → lab GPU locks (maintainer's Mac only, same rule as music) → park LTX helper (< 48 GB Macs)+ → speech-mlx/.venv/bin/python scripts/speech/speech_run.py (env: speech_engine.child_env)+ → [speech] stage/line/done lines → Now card+ → mlx_outputs/speech_<stamp>_<slug>.wav + .wav.json+```++- **Env.** `child_env()` drops `PYTORCH_ENABLE_MPS_FALLBACK`, `PYTORCH_MPS_FAST_MATH`,+ `PYTHONPATH`, `PYTHONHOME`, `VIRTUAL_ENV`; sets `HF_HUB_OFFLINE=1` (weights are local, a render+ never downloads) and the resolved ffmpeg on PATH (Speed uses `atempo`). The runner pops the two+ MPS vars again before importing anything (phosphene-release §0).+- **Voices.** `preset` → CustomVoice checkpoint, `--voice` + `--style` (the instruction). `character`+ → Base checkpoint with the character's `voice_sample`; `clip` → Base with the uploaded clip. Either+ clone takes the clip's words when given (`--ref-text`: in-context cloning, the model continues the+ recording — closer than the speaker embedding alone; the UI keeps a character's words per browser).+- **Script.** One generation per non-empty line (lines over ~400 characters split at sentence+ ends), joined with 0.35 s of silence, silence-trimmed, peak-normalised to −1 dBFS, 24 kHz mono.+- **Reference clip.** The runner converts it with ffmpeg to a 24 kHz mono WAV of at most 20 s+ (any container a user drops — .m4a, .mov — reads the same; a long clip only slows the clone).+- **Stop** kills the runner's process group (`STATE.speech_pgid`); nothing is published. A kill+ nobody asked for (macOS reclaiming memory) is a failure that says so, not a quiet "stopped".+- **Memory guard.** Before each line the runner checks free memory (`vm_stat`); under 0.6 GiB it+ stops with exit 3 and a sentence telling the user to close apps.+- **Sidecar.** `engine: "speech"`, model, voice, voice_kind, instruct, text, audio_seconds, seed,+ peaks, realtime_factor, params — and for clones `voice_consent` (see below).++## The safety rule++Cloning a voice requires the requester to confirm that the voice is their own or that they have+the speaker's permission. Phosphene's acceptable-use policy (phosphene.video/acceptable-use)+forbids impersonation.++- `validate_speech()` refuses a `character` or `clip` job without `speech_voice_consent` — the UI+ checkbox, `voice_consent: true` on the agent door — and nothing is queued (400).+- `run_speech_job_inner()` refuses it again (a replayed or hand-edited queue entry skips make_job);+ only the boolean `True` the allowlist writes counts — a stored `"false"` is a refusal.+- The confirmation is written into the WAV's sidecar (`voice_consent.confirmed`, `at`, the+ statement), so the file carries the record of what authorised it.+- The UI box sits next to a link to the policy, is never stored, and clears whenever the voice+ changes (another character, another clip, another voice kind).+- There are no celebrity presets: the presets are exactly the model's nine fictional speakers+ (`test_speech.py` pins the list). The agent doc tells agent authors never to set the flag on+ their own initiative.++## Memory and speed++Measured 2026-10-23 on an M4 Max 64 GB through the runner exactly as the panel spawns it+(cache capped at 256 MB). "Footprint" is the process's lifetime peak physical footprint+(`proc_pid_rusage` → `ri_lifetime_max_phys_footprint`: what Activity Monitor counts, Metal buffers+included); "MLX peak" is `mx.get_peak_memory()`.++| Job | Audio | Load | Generate | Realtime | MLX peak | Footprint |+|---|---|---|---|---|---|---|+| Preset (Aiden, Dramatic), 1 line | 7.8 s | 2.2 s | 1.6 s | 4.9x | 6.7 GB | 6.5 GB |+| Preset (Ryan), 5 lines | 34.0 s | 1.2 s | 6.7 s | 5.1x | 7.1 GB | 6.8 GB |+| Clone, speaker embedding (23.7 s sample) | 8.4 s | 1.6 s | 2.0 s | 4.1x | 6.9 GB | 7.4 GB |+| Clone with the clip's words (14 s clip) | 8.8 s | 1.2 s | 2.5 s | 3.5x | 8.8 GB | 9.2 GB |+| Clone with the clip's words, 5 lines | 31.2 s | 1.2 s | 8.2 s | 3.8x | 9.1 GB | 9.1 GB |++Through the panel (queue, sidecar, everything): 3.5–5.5 s per 7–11 s line.++The peak does not grow with the script (lines are generated one at a time) — it is the model, the+speech-tokenizer decode, and for in-context clones the reference's codes. **Worst case 9.2 GB**,+under the ~10.7 GiB of GPU working set macOS gives a 16 GB Mac, with the LTX helper parked first+(< 48 GB Macs) and the runner's free-memory guard as the backstop. Not yet run on a physical+16 GB Mac: a browser with many tabs open there is the risk the guard exists for.++Floor: **16 GB** (`SPEECH_MIN_RAM_GB`), the same everywhere a Mac is told yes or no (the panel,+`speech_setup.sh preflight`, the install card). On Macs under 48 GB the LTX helper is parked+before a line so its resident weights are not competing.++The estimate (`speech_engine.estimate`) prices audio at 2.8 words/s and wall time as a cold load+plus a per-second rate measured here, scaled by the chip table; Speed changes the file's length,+not the time to make it (tempo is applied afterwards). It is always labelled an estimate.++## Validation++- `test_speech.py`: the allowlist and clamps, refusals, the consent rule at both gates and in the+ sidecar, the preset list, the runner env and argv, the progress protocol, the manifest pins and+ the offline check, the worker against a fake runner, the agent door's mapping, routes, UI, docs.+- Real lines and a lip-sync clip rendered through the panel's own doors (2026-10-22).++## Credits and licences++Qwen3-TTS by the Qwen team, Alibaba Cloud — Apache-2.0+(https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice). 8-bit MLX conversions by+mlx-community (Apache-2.0). mlx-audio by Prince Canuma — MIT (https://github.com/Blaizzy/mlx-audio).diff --git a/docs/UPDATE_RECOVERY.md b/docs/UPDATE_RECOVERY.mdnew file mode 100644index 0000000..b154403--- /dev/null+++ b/docs/UPDATE_RECOVERY.md@@ -0,0 +1,59 @@+# Recovering an unfinished update++The studio and Pinokio Update share a local update record. Update fetches a+candidate, keeps a Git reference to the previous source, moves to the candidate,+and runs its dependency repair. It reports the update as prepared until that+candidate starts and binds the studio listener. A restart request alone does+not count as success.++If an update stops, use **Try again** in the existing update banner or run+**Update** again in Pinokio. The same candidate resumes. A second request cannot+replace a candidate awaiting repair or restart. After a successful boot, a new+Update can fetch a newer candidate.++Local tracked edits, local commits and conflicting untracked or ignored files+are kept. Save or commit edits before retrying. Divergent history now stops for+manual reconciliation instead of resetting local commits. Update never runs+`git clean`, stashes changes, or resets the source with `--hard`.++## What the record preserves++The checkout's Git directory contains `phosphene-update.json`. Find that directory+with `git rev-parse --absolute-git-dir` from the app folder. The record gives the+phase, exact candidate SHA and `previous_ref`. The reference keeps the previous+Git source reachable even if Git expires its reflog. This is source recovery,+not a backup of installed Python packages.++A failed dependency command records its exit code and the exact retry command.+It keeps the candidate in place so retry uses the same repair scripts. Completed+repair is skipped on retry. If a process dies after a command finishes but before+its completion is recorded, repair must run again. Package commands therefore+need to tolerate retries. No exactly-once package installation is promised.++Do not restore source and assume the Python environment was restored with it.+The old process can still be running while packages on disk have changed. An+unfinished update blocks new queued renders and restart; repair must finish+first. Models, outputs and settings are not transaction storage.++## If Git itself was interrupted++Update refuses to reset a partial checkout or remove an `index.lock` for you.+Keep the update record and edited files. Inspect `git status` and `git diff`+from the app folder. The record's `previous_ref` identifies the complete previous+source; `git show <previous_ref>:<path>` reads an original file without changing+the checkout. You can export that source to a separate archive with+`git archive <previous_ref> --output=<new-archive-path>`.++Resolve the Git interruption while preserving your edits, then retry Update.+If source moved outside the recorded previous/candidate commits after replacement+began, Update stops and names the retained reference. Do not remove the journal+to bypass the check after dependency work has started.++## Scope++This applies to the Git-based studio updater. The native Mac app's own updater+is separate. Historical launchers execute their already-loaded update logic on+the first update that brings in this change; that first hop does not acquire a+transaction record retroactively. Linux still uses its separate install script.+A successful startup receipt proves studio startup, not a render or a complete+from-zero release validation.diff --git a/docs/bench.schema.json b/docs/bench.schema.jsonnew file mode 100644index 0000000..d6009fc--- /dev/null+++ b/docs/bench.schema.json@@ -0,0 +1,404 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "https://phosphene.video/bench/schema/phosphene-bench-1.json",+ "title": "Phosphene Bench result",+ "type": "object",+ "required": [+ "schema",+ "suite",+ "run_id",+ "started_at",+ "finished_at",+ "app",+ "mac",+ "conditions",+ "steps",+ "summary",+ "warnings"+ ],+ "additionalProperties": false,+ "properties": {+ "schema": {+ "type": "string",+ "enum": [+ "phosphene-bench/1"+ ]+ },+ "suite": {+ "type": "object",+ "required": [+ "id",+ "name",+ "fingerprint"+ ],+ "additionalProperties": false,+ "properties": {+ "id": {+ "type": "string",+ "pattern": "^PB\\d+$"+ },+ "name": {+ "type": "string"+ },+ "fingerprint": {+ "type": "string",+ "pattern": "^[0-9a-f]{12}$"+ }+ }+ },+ "run_id": {+ "type": "string",+ "pattern": "^[0-9a-f]{16}$"+ },+ "started_at": {+ "type": "string",+ "pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$"+ },+ "finished_at": {+ "type": "string",+ "pattern": "^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$"+ },+ "app": {+ "type": "object",+ "required": [+ "version",+ "edition",+ "distribution"+ ],+ "additionalProperties": false,+ "properties": {+ "version": {+ "type": "string"+ },+ "edition": {+ "type": "string",+ "enum": [+ "free",+ "pro"+ ]+ },+ "distribution": {+ "type": "string",+ "enum": [+ "pinokio",+ "mac-app"+ ]+ },+ "generation": {+ "type": "string"+ }+ }+ },+ "mac": {+ "type": "object",+ "required": [+ "chip",+ "chip_family",+ "cpu_cores",+ "gpu_cores",+ "ram_gb",+ "model_id",+ "macos",+ "macos_build",+ "tier"+ ],+ "additionalProperties": false,+ "properties": {+ "chip": {+ "type": "string"+ },+ "chip_family": {+ "type": "string"+ },+ "cpu_cores": {+ "type": "object",+ "required": [+ "performance",+ "efficiency"+ ],+ "additionalProperties": false,+ "properties": {+ "performance": {+ "type": "integer",+ "minimum": 0+ },+ "efficiency": {+ "type": "integer",+ "minimum": 0+ }+ }+ },+ "gpu_cores": {+ "type": "integer",+ "minimum": 0+ },+ "ram_gb": {+ "type": "integer",+ "minimum": 0+ },+ "model_id": {+ "type": "string"+ },+ "macos": {+ "type": "string"+ },+ "macos_build": {+ "type": "string"+ },+ "tier": {+ "type": "string"+ }+ }+ },+ "conditions": {+ "type": "object",+ "required": [+ "power",+ "low_power_mode",+ "thermal_start",+ "thermal_worst"+ ],+ "additionalProperties": false,+ "properties": {+ "power": {+ "type": "string",+ "enum": [+ "ac",+ "battery",+ "unknown"+ ]+ },+ "low_power_mode": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "thermal_start": {+ "type": "string",+ "enum": [+ "nominal",+ "fair",+ "serious",+ "critical",+ "unknown"+ ]+ },+ "thermal_worst": {+ "type": "string",+ "enum": [+ "nominal",+ "fair",+ "serious",+ "critical",+ "unknown"+ ]+ },+ "mem_used_start_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "swap_start_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "warmup_sec": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "output_preset": {+ "type": [+ "string",+ "null"+ ]+ },+ "output_preset_default": {+ "type": [+ "boolean",+ "null"+ ]+ }+ }+ },+ "steps": {+ "type": "array",+ "items": {+ "type": "object",+ "required": [+ "id",+ "label",+ "status",+ "core",+ "timed",+ "wall_sec"+ ],+ "additionalProperties": false,+ "properties": {+ "id": {+ "type": "string",+ "enum": [+ "warmup",+ "ltx_quick_5s",+ "ltx_balanced_5s",+ "image_klein",+ "h3_draft_5s"+ ]+ },+ "label": {+ "type": "string"+ },+ "kind": {+ "type": "string",+ "enum": [+ "ltx",+ "image",+ "h3"+ ]+ },+ "core": {+ "type": "boolean"+ },+ "timed": {+ "type": "boolean"+ },+ "status": {+ "type": "string",+ "enum": [+ "done",+ "failed",+ "skipped",+ "cancelled"+ ]+ },+ "reason": {+ "type": "string"+ },+ "canvas": {+ "type": [+ "string",+ "null"+ ],+ "pattern": "^\\d+×\\d+$"+ },+ "frames": {+ "type": [+ "integer",+ "null"+ ],+ "minimum": 0+ },+ "images": {+ "type": [+ "integer",+ "null"+ ],+ "minimum": 0+ },+ "wall_sec": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "peak_mem_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "added_mem_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "swap_peak_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "engine_peak_gb": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "thermal_worst": {+ "type": "string",+ "enum": [+ "nominal",+ "fair",+ "serious",+ "critical",+ "unknown"+ ]+ }+ }+ }+ },+ "summary": {+ "type": "object",+ "required": [+ "complete",+ "eligible",+ "core_total_sec",+ "headline_step",+ "headline_sec"+ ],+ "additionalProperties": false,+ "properties": {+ "complete": {+ "type": "boolean"+ },+ "eligible": {+ "type": "boolean"+ },+ "core_total_sec": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ },+ "headline_step": {+ "type": "string",+ "enum": [+ "warmup",+ "ltx_quick_5s",+ "ltx_balanced_5s",+ "image_klein",+ "h3_draft_5s"+ ]+ },+ "headline_sec": {+ "type": [+ "number",+ "null"+ ],+ "minimum": 0+ }+ }+ },+ "warnings": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+}diff --git a/docs/design-reference/app-onboarding/00_intro_a.png b/docs/design-reference/app-onboarding/00_intro_a.pngnew file mode 100644index 0000000..cd2ea5eBinary files /dev/null and b/docs/design-reference/app-onboarding/00_intro_a.png differdiff --git a/docs/design-reference/app-onboarding/00_intro_b.png b/docs/design-reference/app-onboarding/00_intro_b.pngnew file mode 100644index 0000000..addf90bBinary files /dev/null and b/docs/design-reference/app-onboarding/00_intro_b.png differdiff --git a/docs/design-reference/app-onboarding/00_intro_c.png b/docs/design-reference/app-onboarding/00_intro_c.pngnew file mode 100644index 0000000..cbbeb9fBinary files /dev/null and b/docs/design-reference/app-onboarding/00_intro_c.png differdiff --git a/docs/design-reference/app-onboarding/00_intro_d.png b/docs/design-reference/app-onboarding/00_intro_d.pngnew file mode 100644index 0000000..14deb34Binary files /dev/null and b/docs/design-reference/app-onboarding/00_intro_d.png differdiff --git a/docs/design-reference/app-onboarding/00_intro_e.png b/docs/design-reference/app-onboarding/00_intro_e.pngnew file mode 100644index 0000000..0708edfBinary files /dev/null and b/docs/design-reference/app-onboarding/00_intro_e.png differdiff --git a/docs/design-reference/app-onboarding/01_welcome.png b/docs/design-reference/app-onboarding/01_welcome.pngnew file mode 100644index 0000000..782d61eBinary files /dev/null and b/docs/design-reference/app-onboarding/01_welcome.png differdiff --git a/docs/design-reference/app-onboarding/02_welcome.png b/docs/design-reference/app-onboarding/02_welcome.pngnew file mode 100644index 0000000..41b3dc6Binary files /dev/null and b/docs/design-reference/app-onboarding/02_welcome.png differdiff --git a/docs/design-reference/app-onboarding/03_your_mac.png b/docs/design-reference/app-onboarding/03_your_mac.pngnew file mode 100644index 0000000..47cdb24Binary files /dev/null and b/docs/design-reference/app-onboarding/03_your_mac.png differdiff --git a/docs/design-reference/app-onboarding/04_plan.png b/docs/design-reference/app-onboarding/04_plan.pngnew file mode 100644index 0000000..cd2765aBinary files /dev/null and b/docs/design-reference/app-onboarding/04_plan.png differdiff --git a/docs/design-reference/app-onboarding/05_setup_on_the_tunnel.png b/docs/design-reference/app-onboarding/05_setup_on_the_tunnel.pngnew file mode 100644index 0000000..7a3bd5aBinary files /dev/null and b/docs/design-reference/app-onboarding/05_setup_on_the_tunnel.png differdiff --git a/docs/design-reference/app-onboarding/06_ready.png b/docs/design-reference/app-onboarding/06_ready.pngnew file mode 100644index 0000000..f527352Binary files /dev/null and b/docs/design-reference/app-onboarding/06_ready.png differdiff --git a/docs/design-reference/app-onboarding/07_plan_pinokio_import.png b/docs/design-reference/app-onboarding/07_plan_pinokio_import.pngnew file mode 100644index 0000000..805d539Binary files /dev/null and b/docs/design-reference/app-onboarding/07_plan_pinokio_import.png differdiff --git a/docs/design-reference/app-onboarding/08_later_launch_bloom.png b/docs/design-reference/app-onboarding/08_later_launch_bloom.pngnew file mode 100644index 0000000..5f76a77Binary files /dev/null and b/docs/design-reference/app-onboarding/08_later_launch_bloom.png differdiff --git a/docs/design-reference/app-onboarding/08b_later_launch_quick_check.png b/docs/design-reference/app-onboarding/08b_later_launch_quick_check.pngnew file mode 100644index 0000000..ece6d98Binary files /dev/null and b/docs/design-reference/app-onboarding/08b_later_launch_quick_check.png differdiff --git a/docs/design-reference/app-onboarding/09_missing_drive.png b/docs/design-reference/app-onboarding/09_missing_drive.pngnew file mode 100644index 0000000..c281cf6Binary files /dev/null and b/docs/design-reference/app-onboarding/09_missing_drive.png differdiff --git a/docs/design-reference/site/Footer.astro b/docs/design-reference/site/Footer.astronew file mode 100644index 0000000..4b48478--- /dev/null+++ b/docs/design-reference/site/Footer.astro@@ -0,0 +1,83 @@+---+import { SITE } from '../data/site';+const year = 2026;+// Footer mark, drawn as rings of radial dashes so each ring can turn on its own.+const rings = [+ { r0: 19, r1: 29, n: 24, c: '#ff3d86' },+ { r0: 36, r1: 46, n: 36, c: '#e2369a' },+ { r0: 54, r1: 62, n: 44, c: '#ba5ce4' },+ { r0: 71, r1: 80, n: 56, c: '#8e4ddf' },+ { r0: 87, r1: 95, n: 66, c: '#6f7cf0' },+ { r0: 103, r1: 111, n: 80, c: '#37cfe3' },+].map((ring) => ({+ ...ring,+ d: Array.from({ length: ring.n }, (_, i) => {+ const t = (i / ring.n) * Math.PI * 2;+ const c = Math.cos(t), s = Math.sin(t);+ return `M${(ring.r0 * c).toFixed(2)} ${(ring.r0 * s).toFixed(2)}L${(ring.r1 * c).toFixed(2)} ${(ring.r1 * s).toFixed(2)}`;+ }).join(''),+}));+---+<footer class="site-foot">+ <div class="wrap">+ <div class="cols">+ <div>+ <p class="stand" style="max-width: 26ch">Phosphene <span class="dim">for Mac.</span> <em>Free, open-source AI video with sound.</em> Make songs and images too. All on your Mac.</p>+ </div>+ <div>+ <h2>Product</h2>+ <ul>+ <li><a href="/download/">Get Phosphene for Mac</a></li>+ <li><a href="/features/">Features</a></li>+ <li><a href="/gallery/">Gallery</a></li>+ <li><a href="/pricing/">Free · Pro · Founding Lifetime</a></li>+ <li><a href="/docs/">Docs</a></li>+ <li><a href="/docs/faq/">FAQ</a></li>+ <li><a href="/benchmarks/">Speed benchmarks</a></li>+ </ul>+ </div>+ <div>+ <h2>The project</h2>+ <ul>+ <li><a href="/open-source/">Open source</a></li>+ <li><a href={SITE.repo} rel="noopener">GitHub</a></li>+ <li><a href="/changelog/">Changelog</a></li>+ <li><a href="/blog/">Blog</a></li>+ </ul>+ </div>+ <div>+ <h2>Contact and info</h2>+ <ul>+ <li><a href="/contact/">Contact</a></li>+ <li><a href={SITE.x} rel="noopener">X {SITE.xHandle}</a></li>+ <li><a href="/pricing/">Pro & Founding Lifetime · coming soon</a></li>+ <li><a href="/press/">Press kit</a></li>+ <li><a href={`mailto:${SITE.email}`}>Support: {SITE.email}</a></li>+ <li><a href="/terms/">Terms of Service</a></li>+ <li><a href="/refunds/">Refund policy</a></li>+ <li><a href="/privacy/">Privacy policy</a></li>+ <li><a href="/acceptable-use/">Acceptable use</a></li>+ </ul>+ </div>+ </div>+ <div class="huge foot-logo" aria-hidden="true">+ <svg class="foot-mark" viewBox="-112 -114 224 228" width="224" height="228">+ {rings.map((ring, i) => (+ <g class={`fm-morph fm-m${i}`}>+ <g class={`fm-spin fm-s${i}`}>+ <path d={ring.d} stroke={ring.c} stroke-width="2.6" stroke-linecap="round" fill="none" />+ </g>+ </g>+ ))}+ <circle class="fm-core" r="5" fill="#f8e24e" />+ </svg>+ <img class="foot-word" src="/brand/wordtext_lg.webp" width="826" height="228" alt="" loading="lazy" />+ </div>+ <div class="legal">+ <span>© {year} Mr Bizarro · App MIT licensed · model weights under their own licences</span>+ <span><a href={SITE.releaseUrl} data-gh-release rel="noopener">v<span data-gh="version">{SITE.version}</span></a> · made on a Mac</span>+ </div>+ <p class="small">Phosphene is free, open-source desktop software for Apple Silicon Macs that runs AI models locally. We host no generation service; Pro is coming soon.</p>+ <p class="small">Phosphene is independent and not affiliated with Lightricks, MiniMax, Black Forest Labs, Alibaba or the other model makers. Model names belong to their owners.</p>+ </div>+</footer>diff --git a/docs/design-reference/site/Header.astro b/docs/design-reference/site/Header.astronew file mode 100644index 0000000..7e5a650--- /dev/null+++ b/docs/design-reference/site/Header.astro@@ -0,0 +1,94 @@+---+import { SITE, STATS } from '../data/site';+const path = Astro.url.pathname;+// The bar carries six; the phone sheet and the footer carry all of them.+const links = [+ { href: '/features/', label: 'Features' },+ { href: '/gallery/', label: 'Gallery' },+ { href: '/docs/', label: 'Docs' },+ { href: '/benchmarks/', label: 'Benchmarks' },+ { href: '/changelog/', label: 'Changelog' },+ { href: '/pricing/', label: 'Pricing' },+];+const more = [+ { href: '/open-source/', label: 'Open source' },+ { href: '/blog/', label: 'Blog' },+];+const dockLinks = links.filter((l) => l.href !== '/changelog/');+const cta = { href: '/download/', label: 'Get Phosphene free' };+const here = (href: string) => path === href || path.startsWith(href);+const stars = STATS.stars.toLocaleString('en-US');+const starsLabel = 'Phosphene on GitHub, {stars} stars';+const gh = 'M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z';+---+<header class="site-head" data-head>+ <div class="bar">+ <a href="/" class="logo" aria-label="Phosphene home" aria-current={path === '/' ? 'page' : undefined}>+ <svg class="mark" width="26" height="26" viewBox="0 0 26 26" aria-hidden="true">+ <g fill="none" transform="rotate(-90 13 13)">+ <g class="hm-morph hm-m0"><circle class="hm-spin hm-s0" cx="13" cy="13" r="11" stroke="#5EEAFF" stroke-width="2" stroke-dasharray="1.15 1.73" /></g>+ <g class="hm-morph hm-m1"><circle class="hm-spin hm-s1" cx="13" cy="13" r="7.7" stroke="#B14AFF" stroke-width="2.1" stroke-dasharray="1.1 1.59" /></g>+ <g class="hm-morph hm-m2"><circle class="hm-spin hm-s2" cx="13" cy="13" r="4.5" stroke="#FF2E9F" stroke-width="2" stroke-dasharray="1 1.36" /></g>+ </g>+ <circle class="hm-core" cx="13" cy="13" r="1.5" fill="#FFD23F" />+ </svg>+ <span class="word-clip"><img class="word" src="/brand/[email protected]" srcset="/brand/[email protected] 2x, /brand/[email protected] 3x" width="120" height="20" alt="Phosphene" /></span>+ </a>++ <nav class="nav" aria-label="Main">+ <ul>+ {links.map((l) => (+ <li><a href={l.href} aria-current={here(l.href) ? 'page' : undefined}>{l.label}</a></li>+ ))}+ </ul>+ </nav>++ <div class="tail">+ <a class="gh" href={SITE.repo} rel="noopener" data-gh-label={starsLabel} aria-label={starsLabel.replace('{stars}', stars)}>+ <span><svg width="15" height="15" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d={gh} /></svg></span>+ <span class="gh-star" aria-hidden="true"><svg width="11" height="11" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5l-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z"/></svg><span data-gh="stars">{stars}</span></span>+ </a>+ <a class="cta" href={cta.href} aria-current={here(cta.href) ? 'page' : undefined}>{cta.label}</a>+ <button class="menu-btn" type="button" aria-expanded="false" aria-controls="site-menu" aria-label="Open menu" data-menu>+ <span class="bars" aria-hidden="true"><i></i><i></i></span>+ </button>+ </div>+ </div>++ <div class="dock" data-dock inert>+ <a class="mk" href="/" aria-label="Phosphene home">+ <svg width="24" height="24" viewBox="0 0 26 26" aria-hidden="true">+ <g fill="none" transform="rotate(-90 13 13)">+ <g class="hm-morph hm-m0"><circle class="hm-spin hm-s0" cx="13" cy="13" r="11" stroke="#5EEAFF" stroke-width="2" stroke-dasharray="1.15 1.73" /></g>+ <g class="hm-morph hm-m1"><circle class="hm-spin hm-s1" cx="13" cy="13" r="7.7" stroke="#B14AFF" stroke-width="2.1" stroke-dasharray="1.1 1.59" /></g>+ <g class="hm-morph hm-m2"><circle class="hm-spin hm-s2" cx="13" cy="13" r="4.5" stroke="#FF2E9F" stroke-width="2" stroke-dasharray="1 1.36" /></g>+ </g>+ <circle class="hm-core" cx="13" cy="13" r="1.5" fill="#FFD23F" />+ </svg>+ </a>+ <ul>+ {dockLinks.map((l) => (+ <li><a class="lnk" href={l.href} aria-current={here(l.href) ? 'page' : undefined}>{l.label}</a></li>+ ))}+ </ul>+ <a class="cta" href={cta.href}>{cta.label}</a>+ </div>++ <div class="sheet" id="site-menu" data-sheet hidden>+ <nav class="wrap" aria-label="Menu">+ <ul>+ {[...links, ...more].map((l, i) => (+ <li style={`--i:${i}`}><a href={l.href} aria-current={here(l.href) ? 'page' : undefined}>{l.label}</a></li>+ ))}+ </ul>+ <a class="sheet-cta" href={cta.href} style={`--i:${links.length + more.length}`}>{cta.label} for Mac</a>+ <div class="sheet-foot mono" style={`--i:${links.length + more.length + 1}`}>+ <a href={SITE.repo} rel="noopener">+ <svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d={gh} /></svg>+ GitHub · ★ <span data-gh="stars">{stars}</span>+ </a>+ <a href={SITE.releaseUrl} rel="noopener" data-gh-release>v<span data-gh="version">{SITE.version}</span></a>+ </div>+ </nav>+ </div>+</header>diff --git a/docs/design-reference/site/features.astro b/docs/design-reference/site/features.astronew file mode 100644index 0000000..27c69e3--- /dev/null+++ b/docs/design-reference/site/features.astro@@ -0,0 +1,124 @@+---+import Base from '../../layouts/Base.astro';+import FeatureClip from '../../components/FeatureClip.astro';+---+<Base title="Features · Phosphene" description="Make a shot, plan a film and cut it in the Editor. Video, songs, images and character training, running locally on your Apple Silicon Mac.">+ <section class="features-intro wrap">+ <div class="intro-top"><span class="idx"><b>Features</b> / the free app</span><span class="mono local"><i class="dot"></i> On your Mac</span></div>+ <div class="intro-grid">+ <h1 class="display">From the first idea<br />to the final cut.</h1>+ <p class="stand">Make a shot. Write a song. Put the pieces together in Phosphene, a free, MIT-licensed app for Apple Silicon.</p>+ </div>+ <nav class="contents mono" aria-label="Features on this page">+ <a href="#editor">Editor</a><a href="#storyboard">Storyboard</a><a href="#video">Video</a><a href="#music">Music & images</a><a href="#tools">Characters & tools</a><a href="#local">Local & private</a>+ </nav>+ </section>++ <section id="editor" class="editor wrap feature-section">+ <div class="section-line"><span class="idx"><b>01</b> / Editor</span><a class="link small" href="/docs/editor/">Editor guide</a></div>+ <div class="editor-head">+ <h2 class="h-m">The film is in the cut.</h2>+ <p>Trim the ends. Split a clip. Drag the shots into order. Add music, titles and transitions, then render one film or send the timeline to Resolve, Premiere or After Effects.</p>+ </div>+ <FeatureClip name="editor" caption="Editor · trimming a shot, scrubbing the timeline and opening export options" width={1140} height={800} />+ <p class="plate-note mono">Your generations, your own footage, or the keepers from a Storyboard. One timeline.</p>+ </section>++ <section id="storyboard" class="feature-section storyboard wrap">+ <div class="section-line"><span class="idx"><b>02</b> / Storyboard</span><a class="link small" href="/docs/storyboard/">Storyboard guide</a></div>+ <div class="board-layout">+ <div class="board-ui"><FeatureClip name="storyboard" caption="Storyboard · write the brief, choose six shots and turn on Auto" width={968} height={1360} /></div>+ <div class="board-copy">+ <h2 class="display h-l">Give it<br />the whole idea.</h2>+ <p class="stand">Storyboard turns your idea into a multi-shot film. Set the look, choose the cast and tell it what needs to happen.</p>+ <p>Turn on <b>Auto</b> to plan the shots, render them, cut them together and make the film. Or review the plan first, mark takes <b>KEEP</b>, <b>RE-ROLL</b> or <b>CUT</b>, and take the keepers into the Editor.</p>+ <p>Add a soundtrack to plan a music video cut to the beat.</p>+ <div class="board-result"><FeatureClip name="result-fjord" caption="A finished shot · Lantern fjord, from the gallery" width={1140} height={642} /></div>+ </div>+ </div>+ </section>++ <section id="video" class="feature-section video-section">+ <div class="wrap">+ <div class="section-line"><span class="idx"><b>03</b> / Video</span><a class="link small" href="/docs/video/">Video guide</a></div>+ <div class="video-head"><h2 class="display h-l">Start with words.<br />Or a picture.</h2><p class="stand">LTX-2.5 and MiniMax H3 generate video with sound, right here on your Mac.</p></div>+ <FeatureClip name="video" caption="Video · writing a prompt and switching from Text to Image" width={1140} height={538} />+ <dl class="capabilities">+ <div><dt>Text & Image</dt><dd>Describe a scene, or give a still picture something to do. Choose LTX-2.5 or MiniMax H3.</dd></div>+ <div><dt>Start & end frame · Keyframes</dt><dd>Set where a shot begins and ends. In LTX-2.5, use 3–8 keyframes to guide the moments between.</dd></div>+ <div><dt>Extend</dt><dd>Pick a clip and describe what happens next. Continue it in LTX-2.5.</dd></div>+ <div><dt>Lip-sync & Add sound</dt><dd>Make a picture talk or sing from your audio. Use MiniMax H3’s Add sound to give a silent clip its own soundscape.</dd></div>+ </dl>+ <p class="small more-video"><a class="link" href="/docs/one-shot/">One Shot</a> makes a longer continuous take. <a class="link" href="/docs/remix/">Remix</a> adds Ingredients, Motion Control and Colorize.</p>+ </div>+ </section>++ <section id="music" class="feature-section wrap">+ <div class="section-line"><span class="idx"><b>04</b> / Music & images</span></div>+ <div class="music-layout">+ <div class="music-ui"><FeatureClip name="music" caption="Audio → Compose · describe a song, or switch to Custom" width={968} height={1360} /></div>+ <div class="music-copy"><h2 class="h-m">A song to go with it.</h2><p class="stand">In <b>Music Studio</b>, describe the song you want or write your own lyrics. YuE2 makes the vocals and the instruments.</p><p>Open <b>Audio → Compose</b>. Use <b>Simple</b> for an idea in plain words, or <b>Custom</b> for lyrics, style and song sections. Make an instrumental, try several takes, or cover a song you have permission to use.</p><p><a class="link" href="/docs/music/">Music Studio guide</a></p><div class="song"><span class="mono">Listen · Forty frames to go</span><audio controls preload="none" src="/media/song_forty_frames.m4a" aria-label="Forty frames to go, a song made in Music Studio"></audio></div></div>+ </div>+ <div class="images-layout"><div><h2 class="h-m">Make the picture first.</h2><p>Open <b>Images</b> to create a picture or change one you already have. Bring reference images for a face, a place or a style. Try a few candidates, then use <b>Animate</b> to turn a favourite into a shot.</p><p><a class="link" href="/docs/images/">Images guide</a></p></div><FeatureClip name="images" caption="Images · a prompt, three candidates and a picture from the library" width={1140} height={538} /></div>+ </section>++ <section id="tools" class="feature-section wrap">+ <div class="section-line"><span class="idx"><b>05</b> / Characters & tools</span></div>+ <div class="character-layout">+ <div class="character-ui"><FeatureClip name="character" caption="Video → Character · the Bizarro sample character" width={968} height={1180} /></div>+ <div class="character-copy"><h2 class="display h-l">A familiar face.<br />A different scene.</h2><p>Choose <b>Character</b> in Video to put a trained face into an LTX-2.5 shot. Try the <b>Bizarro</b> sample character before training your own. LoRAs let you add a character or a visual style; use the strength control to adjust the result.</p><FeatureClip name="result-diner" caption="Bizarro in Order up · an existing gallery clip" width={1140} height={642} /></div>+ </div>+ <div class="tool-list">+ <article><div class="tool-copy"><h3 class="h-m">Upscale & Face Fix</h3><p>Give a clip twice the size with new detail. Use <b>Face Fix</b> to keep the face and the sound. Open it under <b>Video → Remix</b>, or from a finished clip.</p><a class="link small" href="/docs/remix/">Upscale & Face Fix guide</a></div><FeatureClip name="upscale" caption="Remix → Upscale & Face Fix · choosing a preset" /></article>+ <article><div class="tool-copy"><h3 class="h-m">Train Character</h3><p>Train your own character LoRA from photos. Add captions, choose a trigger word and set the training quality. Training runs locally and needs at least 24 GB of memory.</p><a class="link small" href="/docs/train-character/">Training guide</a></div><FeatureClip name="training" caption="Train Character · trigger word and quality preset" /></article>+ <article><div class="tool-copy"><h3 class="h-m">Batch & Queue</h3><p>Try a list of prompts or several seeds. Queue videos and songs, then let them run one at a time. See what is next and pause the queue when you need your Mac.</p><a class="link small" href="/docs/video/">Video controls</a></div><FeatureClip name="batch" caption="Batch · variations from seeds or a list of prompts" /></article>+ <article><div class="tool-copy"><h3 class="h-m">Browse CivitAI</h3><p>Find LoRAs from inside the app. Search by name or style, check which engine they fit, then add one to your collection.</p><a class="link small" href="/docs/loras/">LoRA guide</a></div><FeatureClip name="loras" caption="LoRAs → Browse CivitAI · searching the browser" width={1140} height={654} /></article>+ </div>+ </section>++ <section id="local" class="local-section"><div class="wrap local-grid"><span class="idx"><b>06</b> / Local & private</span><h2 class="display h-l">Your Mac.<br />Your files.</h2><div><p class="stand">Generation is 100% local. Your prompts, pictures, songs and videos stay on your Mac.</p><p>Download the models once, then work offline. Browsing CivitAI and downloading models need an internet connection. Anonymous usage analytics can be switched off in Settings.</p><p>Phosphene is free and MIT licensed. Made by Mr Bizarro.</p><a class="btn" href="/download/">Get Phosphene free</a><p class="privacy-link small"><a class="link" href="/privacy/">Privacy details</a></p></div></div></section>+</Base>++<style>+ .features-intro { padding-top: 130px; padding-bottom: 36px; }+ .intro-top, .section-line { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }+ .local { color: var(--mute); white-space: nowrap; }.local .dot { margin-right: 8px; }+ .intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 7%; margin: 30px 0 32px; }+ h1 { font-size: clamp(54px, 6.5vw, 104px); }+ .intro-grid .stand { max-width: 27ch; font-size: clamp(20px, 1.8vw, 26px); }+ .contents { display: flex; flex-wrap: wrap; gap: 12px 26px; padding-top: 23px; border-top: 1px solid var(--line); }+ .contents a { text-decoration-color: var(--line); }+ .feature-section { padding-top: 70px; padding-bottom: 70px; scroll-margin-top: 75px; }+ .section-line { border-top: 1px solid var(--line); padding-top: 15px; margin-bottom: 34px; }+ .editor { padding-top: 14px; }.editor-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin-bottom: 28px; }+ .editor-head p { margin: 0; max-width: 59ch; color: var(--mute); }+ .editor :global(figure) { max-width: 1140px; margin-left: auto; }+ .plate-note { color: var(--dim); margin: 18px 0 0; text-align: right; }+ .board-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 9%; }+ .board-copy { padding-top: 24px; }.board-copy h2 { margin-bottom: 30px; font-size: clamp(46px, 5.6vw, 86px); }+ .board-copy .stand { margin-bottom: 25px; }.board-copy > p:not(.stand) { max-width: 55ch; color: var(--mute); }+ .board-result { margin-top: 35px; }+ .video-section { background: var(--void-2); border-block: 1px solid var(--line-soft); }+ .video-head { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 8%; margin-bottom: 38px; }+ .video-head h2 { font-size: clamp(48px, 6vw, 94px); }+ .capabilities { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8%; margin: 32px 0 0; }+ .capabilities div { padding: 20px 0; border-top: 1px solid var(--line); }+ dt { font-weight: 700; font-size: 20px; }dd { margin: 8px 0 0; color: var(--mute); max-width: 48ch; }+ .more-video { margin-top: 20px; }+ .music-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 9%; align-items: center; }+ .music-copy h2 { margin-bottom: 28px; }.music-copy > p { max-width: 49ch; }.music-copy .stand { margin-bottom: 24px; }.music-copy > p:not(.stand) { color: var(--mute); }+ .song { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }.song span { color: var(--mute); }audio { display: block; width: 100%; max-width: 440px; margin-top: 16px; }+ .images-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); align-items: center; gap: 6%; margin-top: 86px; }.images-layout h2 { margin-bottom: 22px; }.images-layout p { color: var(--mute); }+ .character-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 9%; }.character-copy h2 { font-size: clamp(45px, 5vw, 80px); margin: 14px 0 25px; }.character-copy > p { max-width: 53ch; color: var(--mute); margin-bottom: 28px; }+ .tool-list { margin-top: 80px; }.tool-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10%; border-top: 1px solid var(--line); padding: 38px 0; align-items: center; }.tool-copy h3 { margin-bottom: 22px; font-size: clamp(30px, 3.4vw, 48px); }.tool-copy p { max-width: 39ch; color: var(--mute); }.tool-list :global(figure) { width: 100%; max-width: 360px; justify-self: end; }.tool-list article:last-child :global(figure) { max-width: 580px; }+ .local-section { background: var(--panel); padding: 72px 0; scroll-margin-top: 80px; }.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 8%; }.local-grid > .idx { grid-column: 1 / -1; }.local-grid h2 { font-size: clamp(56px, 7vw, 108px); }.local-grid .stand { margin-bottom: 26px; }.local-grid p:not(.stand) { color: var(--mute); max-width: 54ch; }.local-grid .btn { margin-top: 12px; }.privacy-link { margin: 16px 0 0; }+ @media (min-width: 1600px) { .features-intro { padding-top: 150px; } }+ @media (max-width: 800px) {+ .features-intro { padding-top: 105px; }.intro-grid, .editor-head, .video-head { grid-template-columns: 1fr; gap: 24px; }.intro-grid .stand { max-width: 36ch; }.intro-top > .local { font-size: 10px; }.contents { gap: 10px 19px; font-size: 11px; }+ .feature-section { padding-block: 42px; }.editor { padding-top: 8px; }.section-line { margin-bottom: 26px; }.section-line .small { font-size: 12px; }.plate-note { text-align: left; font-size: 10px; }+ .board-layout, .music-layout, .character-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }.board-copy, .music-copy, .character-copy { grid-row: 1; padding-top: 0; }.board-ui, .music-ui, .character-ui { max-width: 420px; width: 100%; }.board-copy h2 { margin-top: 0; }.board-result { margin-top: 24px; }+ .capabilities { grid-template-columns: 1fr; }.capabilities div { padding-block: 17px; }dt { font-size: 18px; }dd { font-size: 16px; }+ .images-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }.tool-list { margin-top: 45px; }.tool-list article { grid-template-columns: 1fr; gap: 26px; padding-block: 32px; }.tool-list :global(figure) { justify-self: start; max-width: 420px; }+ .local-grid { grid-template-columns: 1fr; gap: 28px; }.local-section { padding-block: 44px; }+ }+</style>diff --git a/docs/design-reference/site/features_desktop_top.png b/docs/design-reference/site/features_desktop_top.pngnew file mode 100644index 0000000..42e4d0cBinary files /dev/null and b/docs/design-reference/site/features_desktop_top.png differdiff --git a/docs/design-reference/site/global.css b/docs/design-reference/site/global.cssnew file mode 100644index 0000000..17eff28--- /dev/null+++ b/docs/design-reference/site/global.css@@ -0,0 +1,442 @@+/* Phosphene site. Type: Archivo (variable width) / Newsreader / Fragment Mono.+ Colour: the panel's own void and lines. The brand gradient lives only in+ progress, rings and the logo. The one non-default accent is the mark's yellow+ centre dot, used as the "live, on this Mac" signal. */++@font-face {+ font-family: 'Archivo';+ font-style: normal;+ font-display: swap;+ font-weight: 100 900;+ font-stretch: 62% 125%;+ src: url(/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;+}+@font-face {+ font-family: 'Newsreader';+ font-style: normal;+ font-display: swap;+ font-weight: 200 800;+ src: url(/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations');+}+@font-face {+ font-family: 'Newsreader';+ font-style: italic;+ font-display: swap;+ font-weight: 200 800;+ src: url(/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations');+}+@font-face {+ font-family: 'Fragment Mono';+ font-style: normal;+ font-display: swap;+ font-weight: 400;+ src: url(/fonts/fragment-mono-latin-400-normal.woff2) format('woff2');+}++:root {+ --void: #00061a;+ --void-2: #030a24;+ --panel: #0c1330;+ --panel-2: #141a3a;+ --line: #2c3563;+ --line-soft: rgba(44, 53, 99, 0.55);+ --ink: #f0f4fb;+ --mute: #b6bfd1;+ --dim: #7d88a6;+ --pink: #ff2e9f;+ --violet: #b14aff;+ --cyan: #5eeaff;+ --sun: #ffd23f;+ --brand: linear-gradient(90deg, var(--pink), var(--violet) 52%, var(--cyan));+ --ease: cubic-bezier(0.4, 0, 0.2, 1);+ --sans: 'Archivo', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;+ --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;+ --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;+ --gut: clamp(16px, 3.2vw, 40px);+ --max: 1480px;+ color-scheme: dark;+}++*, *::before, *::after { box-sizing: border-box; }+html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--void); } /* never a white page, even before body paints */+html.lenis, html.lenis body { height: auto; }+.lenis.lenis-smooth { scroll-behavior: auto !important; }+body {+ margin: 0;+ background: var(--void);+ color: var(--ink);+ font-family: var(--sans);+ font-size: 17px;+ line-height: 1.55;+ font-stretch: 100%;+ -webkit-font-smoothing: antialiased;+ overflow-x: hidden;+}+body::before { /* the panel's own soft blue wash from the top */+ content: '';+ position: fixed; inset: 0 0 auto 0; height: 70vh;+ background: radial-gradient(60% 100% at 50% 0%, rgba(47, 129, 247, 0.07), transparent 70%);+ pointer-events: none; z-index: 0;+}+img, video, canvas, svg { display: block; max-width: 100%; }+img { height: auto; }+a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }+a:hover { text-decoration-color: var(--sun); }+::selection { background: var(--violet); color: #fff; }+:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }+button { font: inherit; color: inherit; }++.skip { position: fixed; left: 12px; top: 10px; z-index: 100; background: var(--ink); color: var(--void); padding: 10px 14px; border-radius: 8px; font-size: 14px; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s var(--ease); }+.skip:not(:focus) { clip-path: inset(50%); }+.skip:focus { transform: none; outline: 2px solid var(--sun); outline-offset: 2px; }++.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }+.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }++/* ---------- type ---------- */+.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; letter-spacing: 0; }+.idx { font-family: var(--mono); font-size: 12.5px; color: var(--dim); display: flex; gap: 14px; align-items: baseline; }+.idx b { color: var(--ink); font-weight: 400; }+.display {+ font-weight: 820;+ font-stretch: 78%;+ line-height: 0.86;+ letter-spacing: -0.02em;+ margin: 0;+}+.h-xl { font-size: clamp(56px, 10.4vw, 188px); }+.h-l { font-size: clamp(44px, 6.6vw, 112px); }+.h-m { font-weight: 760; font-stretch: 86%; font-size: clamp(30px, 3.4vw, 54px); line-height: 0.98; letter-spacing: -0.015em; margin: 0; }+.serif { font-family: var(--serif); font-weight: 380; font-optical-sizing: auto; }+.stand { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.32; font-weight: 380; color: var(--ink); margin: 0; max-width: 34ch; }+.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--mute); max-width: 56ch; }+.small { font-size: 14px; color: var(--mute); }+.dim { color: var(--dim); }+p { margin: 0 0 1em; }++/* ---------- live dot ---------- */+.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.6); vertical-align: middle; }+.dot.pulse { animation: pulse 1.6s var(--ease) infinite; }+@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(255, 210, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); } }++/* ---------- buttons ---------- */+.btn {+ display: inline-flex; align-items: center; gap: 12px;+ background: var(--ink); color: var(--void);+ font-family: var(--sans); font-weight: 700; font-stretch: 92%; font-size: 17px;+ padding: 15px 22px 15px 20px; border-radius: 3px; text-decoration: none;+ transition: background 0.25s var(--ease), transform 0.25s var(--ease);+ border: 0; cursor: pointer;+}+.btn:hover { background: #fff; transform: translateY(-1px); }+.btn .mono { color: #4b5577; font-size: 12px; }+.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }+.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--mute); }+.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; }+.link:hover { text-decoration-color: var(--sun); }+.link-btn { background: none; border: 0; padding: 6px 0; color: var(--mute); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.3em; }+.link-btn:hover { color: var(--ink); text-decoration-color: var(--sun); }+/* demo tab rows + segmented controls (home demos) */+.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 6px; background: rgba(240,244,251,0.04); box-shadow: inset 0 0 0 1px var(--line); }+.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 4px; background: none; color: var(--mute); cursor: pointer; font-size: 14px; white-space: nowrap; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }+.seg button:hover { color: var(--ink); }+.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--ink); color: var(--void); font-weight: 600; }++/* ---------- header ----------+ At the top the header is not a bar: it is type laid straight on the film (or on the page's void),+ on the same edges as the content, with only a soft scrim behind it. It never hides and never+ comes back. Scrolling flips ONE state, once, with hysteresis (on past 72px, off under 24px):+ a (default) · the row gathers into a small floating capsule, centred+ b · the row stays put and settles onto a solid void sheet with a hairline+ c · the row scrolls away with the page; a small dock rises at the bottom+ ?header=a|b|c picks one for the session. Phones (<= 1000px) share one calm bar + full menu sheet. */+.site-head {+ --hh: 64px;+ position: fixed; inset: 0 0 auto 0; z-index: 60;+ pointer-events: none;+}+.site-head .bar, .site-head .sheet { pointer-events: auto; }+.site-head .bar {+ position: relative;+ display: flex; align-items: center; gap: 4px;+ height: var(--hh); width: 100%; max-width: var(--max);+ margin: 0 auto; padding: 0 var(--gut);+ border-radius: 0;+ background-color: rgba(3, 10, 36, 0);+ box-shadow: 0 0 0 1px rgba(44, 53, 99, 0);+ transition:+ max-width 0.5s var(--ease), height 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease),+ border-radius 0.5s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);+}+.site-head a, .site-head button { -webkit-tap-highlight-color: transparent; }+.site-head :is(a, button):focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }++.site-head .logo { display: flex; align-items: center; flex: none; height: 40px; padding: 0 6px; margin-left: -6px; border-radius: 4px; text-decoration: none; }+.site-head .logo .mark { display: block; flex: none; width: 34px; height: 34px; transition: transform 0.6s var(--ease); }+.site-head .logo:hover .mark { transform: rotate(30deg); }+.site-head .logo .word-clip { display: block; overflow: hidden; width: 129px; transition: width 0.5s var(--ease), opacity 0.3s var(--ease); }+.site-head .logo .word { display: block; width: 120px; height: 20px; max-width: none; margin-left: 9px; }++.site-head .nav { margin-left: auto; }+.site-head .nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }+.site-head .nav a {+ position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 4px;+ font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em; color: rgba(240, 244, 251, 0.78); text-decoration: none;+ text-shadow: 0 1px 14px rgba(0, 6, 26, 0.55);+ transition: color 0.2s var(--ease), background-color 0.2s var(--ease);+}+.site-head .nav a:hover { color: var(--ink); background-color: rgba(240, 244, 251, 0.07); }+.site-head .nav a[aria-current='page'] { color: var(--ink); }+.site-head .nav a[aria-current='page']::after {+ content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sun);+}++.site-head .tail { display: flex; align-items: center; gap: 8px; margin-left: 10px; }+/* GitHub + live stars: one quiet chip, split like GitHub's own button */+.site-head .gh {+ display: inline-flex; align-items: stretch; height: 32px; border-radius: 4px; overflow: hidden;+ box-shadow: inset 0 0 0 1px rgba(240, 244, 251, 0.16);+ color: var(--mute); text-decoration: none; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;+ transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);+}+.site-head .gh > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; }+.site-head .gh .gh-star { border-left: 1px solid rgba(240, 244, 251, 0.12); min-width: 6.4ch; justify-content: center; }+.site-head .gh .gh-star svg { color: var(--sun); transform: translateY(-0.5px); }+.site-head .gh:hover { color: var(--ink); background-color: rgba(240, 244, 251, 0.06); box-shadow: inset 0 0 0 1px rgba(240, 244, 251, 0.3); }+/* the CTA: confident, not shouting. Hairline at rest, fills on hover */+.site-head .cta {+ display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 4px;+ color: var(--ink); background: rgba(240, 244, 251, 0.08); box-shadow: inset 0 0 0 1px rgba(240, 244, 251, 0.32);+ text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap;+ transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);+}+.site-head .cta:hover { background: var(--ink); color: var(--void); box-shadow: inset 0 0 0 1px var(--ink); }+.site-head .cta:active { background: #fff; }+.site-head .cta:focus-visible { outline-offset: 3px; }++.site-head .menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 10px; }+.site-head .menu-btn .bars { position: relative; display: block; width: 20px; height: 12px; margin: 0 auto; }+.site-head .menu-btn i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.32s var(--ease), top 0.32s var(--ease); }+.site-head .menu-btn i:first-child { top: 2px; }+.site-head .menu-btn i:last-child { top: 9px; }+.site-head.open .menu-btn i:first-child { top: 5.5px; transform: rotate(45deg); }+.site-head.open .menu-btn i:last-child { top: 5.5px; transform: rotate(-45deg); }+.site-head .sheet { display: none; }+.site-head .dock { display: none; }++/* a · the capsule */+html[data-header='a'] .site-head.on .bar {+ max-width: 870px; height: 50px; margin-top: 12px; padding: 0 8px 0 12px; border-radius: 8px;+ background-color: rgba(3, 10, 36, 0.8);+ box-shadow: 0 0 0 1px rgba(44, 53, 99, 0.85), 0 12px 32px -12px rgba(0, 0, 0, 0.6);+ -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);+}+html[data-header='a'] .site-head.on .logo .word-clip { width: 0; opacity: 0; }+html[data-header='a'] .site-head.on .nav a { text-shadow: none; }++/* b · stays put, settles on a solid sheet */+html[data-header='b'] .site-head::before {+ content: ''; position: absolute; inset: 0 0 auto 0; height: var(--hh);+ background: rgba(0, 6, 26, 0.94); box-shadow: 0 1px 0 var(--line-soft);+ opacity: 0; transition: opacity 0.4s var(--ease), height 0.5s var(--ease);+}+html[data-header='b'] .site-head.on { --hh: 56px; }+html[data-header='b'] .site-head.on::before { opacity: 1; }+html[data-header='b'] .site-head.on .nav a { text-shadow: none; }++/* c · the row scrolls away with the page; a dock rises at the bottom */+@media (min-width: 1001px) {+ html[data-header='c'] .site-head { position: absolute; }+ html[data-header='c'] .site-head .dock {+ display: flex; align-items: center; gap: 4px; position: fixed; left: 50%; bottom: 20px; z-index: 60;+ height: 50px; padding: 0 8px 0 10px; border-radius: 8px; pointer-events: auto;+ background-color: rgba(3, 10, 36, 0.86); box-shadow: 0 0 0 1px rgba(44, 53, 99, 0.85), 0 18px 40px -14px rgba(0, 0, 0, 0.7);+ -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);+ opacity: 0; visibility: hidden; transform: translate(-50%, 14px);+ transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;+ }+ html[data-header='c'] .site-head.on .dock { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }+ .site-head .dock ul { display: flex; gap: 2px; list-style: none; margin: 0 6px 0 4px; padding: 0; }+ .site-head .dock a.lnk { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 4px; font-size: 14px; font-weight: 500; color: rgba(240, 244, 251, 0.78); text-decoration: none; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }+ .site-head .dock a.lnk:hover { color: var(--ink); background-color: rgba(240, 244, 251, 0.07); }+ .site-head .dock a.lnk[aria-current='page'] { color: var(--ink); }+ .site-head .dock .mk { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; }+}++@media (max-width: 1180px) {+ .site-head .nav a { padding: 0 9px; font-size: 14px; }+}+@media (max-width: 1000px) {+ .site-head { --hh: 56px; }+ .site-head .bar { transition: none; }+ .site-head .logo .word-clip { width: 117px; }+ .site-head .logo .word { width: 108px; height: 18px; }+ .site-head .logo .mark { width: 30px; height: 30px; }+ .site-head .nav, .site-head .gh { display: none; }+ .site-head .tail { margin-left: auto; gap: 4px; }+ .site-head .cta { height: 32px; padding: 0 12px; font-size: 13.5px; }+ .site-head .menu-btn { display: block; }+ /* every variant on phones: one calm bar that fades onto the void once you scroll */+ .site-head::before {+ content: ''; position: absolute; inset: 0 0 auto 0; height: var(--hh);+ background: rgba(0, 6, 26, 0.94); box-shadow: 0 1px 0 var(--line-soft);+ opacity: 0; transition: opacity 0.35s var(--ease);+ }+ html[data-header] .site-head.on::before, .site-head.open::before { opacity: 1; }+ html[data-header] .site-head.on .bar { max-width: var(--max); height: var(--hh); margin: 0 auto; padding: 0 var(--gut); border-radius: 0; background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }+ html[data-header] .site-head.on .logo .word-clip { width: 117px; opacity: 1; }+ .site-head.open::before { transition: none; }+ .site-head .sheet {+ display: block; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh));+ overflow-y: auto; overscroll-behavior: contain;+ background: var(--void); opacity: 0; visibility: hidden; transition: opacity 0.26s var(--ease), visibility 0s linear 0.26s;+ }+ .site-head .sheet[hidden] { display: none; }+ .site-head.open .sheet { opacity: 1; visibility: visible; transition: opacity 0.26s var(--ease); }+ .site-head .sheet nav { display: flex; flex-direction: column; min-height: 100%; padding-top: 12px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }+ .site-head .sheet ul { list-style: none; margin: 0; padding: 0; }+ .site-head .sheet li, .site-head .sheet-cta, .site-head .sheet-foot { opacity: 0; transform: translateY(8px); transition: opacity 0.34s var(--ease), transform 0.34s var(--ease); transition-delay: calc(var(--i) * 32ms + 40ms); }+ .site-head.open .sheet li, .site-head.open .sheet-cta, .site-head.open .sheet-foot { opacity: 1; transform: none; }+ .site-head .sheet li a {+ display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line-soft);+ font-size: 26px; font-weight: 700; font-stretch: 84%; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;+ }+ .site-head .sheet li a::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: transparent; }+ .site-head .sheet li a[aria-current='page']::after { background: var(--sun); }+ .site-head .sheet li a:active { color: var(--mute); }+ .site-head .sheet .sheet-cta { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 28px; border-radius: 4px; background: var(--ink); color: var(--void); font-size: 17px; font-weight: 700; text-decoration: none; }+ .site-head .sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 32px; font-size: 13px; color: var(--mute); }+ .site-head .sheet-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mute); text-decoration: none; }+}+@media (prefers-reduced-motion: reduce) {+ .site-head, .site-head *, .site-head::before { transition: none !important; }+}+html.menu-open, html.menu-open body { overflow: hidden; }++/* ---------- sections ---------- */+section { position: relative; }+.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }+.sec { padding: clamp(80px, 11vw, 168px) 0; }+.sec-tight { padding: clamp(48px, 6vw, 88px) 0; }+.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }+.sec-head .idx { grid-column: 1 / span 2; align-self: start; padding-top: 0.9em; }+.sec-head h2 { grid-column: 3 / span 8; }+.sec-head .aside { grid-column: 3 / span 6; margin-top: 22px; }+@media (max-width: 860px) {+ .sec-head .idx, .sec-head h2, .sec-head .aside { grid-column: 1 / -1; }+ .sec-head .idx { margin-bottom: 18px; padding-top: 0; }+}++/* ---------- media ---------- */+.frame { position: relative; overflow: hidden; background: #000; }+.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }+.cap { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }+.cap b { color: var(--mute); font-weight: 400; }++/* ---------- reveal (JS adds .in) ---------- */+.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }+.js .rv.in { opacity: 1; transform: none; }+/* scroll entrances (src/scripts/motion.ts): the masks SplitText wraps around lines and words while they rise.+ A little room above and below so ascenders and descenders aren't cut by the tight display line-height. */+.mx-l-mask, .mx-w-mask { padding-block: 0.1em 0.16em; margin-block: -0.1em -0.16em; }+.mx-w-mask { padding-inline: 0.02em; margin-inline: -0.02em; }++/* ---------- footer ---------- */+.site-foot { border-top: 1px solid var(--line-soft); padding: 72px 0 40px; position: relative; z-index: 1; }+.site-foot .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }+.site-foot h2 { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 400; margin: 0 0 14px; }+.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }+.site-foot a { text-decoration: none; color: var(--mute); font-size: 15px; }+.site-foot a:hover { color: var(--ink); }+.site-foot .huge { margin-top: 80px; width: 100%; opacity: 0.95; }+/* Footer mark: each ring turns its own way and breathes slightly, very slowly. */+.foot-logo { display: flex; align-items: center; gap: 3.4%; }+.foot-logo .foot-mark { width: 20.6%; height: auto; flex: none; overflow: visible; animation: fm-hue 48s ease-in-out infinite alternate; }+.foot-logo .foot-word { width: 76%; height: auto; flex: none; }+.foot-mark g { transform-box: fill-box; transform-origin: center; }+.fm-spin { animation: fm-turn var(--t) linear infinite var(--dir); }+.fm-morph { animation: fm-breathe var(--b) ease-in-out infinite alternate; animation-delay: var(--bd); }+.fm-s0 { --t: 70s; --dir: normal; }+.fm-s1 { --t: 95s; --dir: reverse; }+.fm-s2 { --t: 120s; --dir: normal; }+.fm-s3 { --t: 150s; --dir: reverse; }+.fm-s4 { --t: 185s; --dir: normal; }+.fm-s5 { --t: 230s; --dir: reverse; }+.fm-m0 { --b: 9s; --bd: 0s; }+.fm-m1 { --b: 11s; --bd: -3s; }+.fm-m2 { --b: 13s; --bd: -7s; }+.fm-m3 { --b: 10s; --bd: -2s; }+.fm-m4 { --b: 14s; --bd: -9s; }+.fm-m5 { --b: 12s; --bd: -5s; }+.fm-core { animation: fm-glow 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }+@keyframes fm-turn { to { transform: rotate(360deg); } }+@keyframes fm-breathe {+ 0% { transform: scale(1, 1); }+ 35% { transform: scale(1.035, 0.975) rotate(4deg); }+ 70% { transform: scale(0.975, 1.03) rotate(-3deg); }+ 100% { transform: scale(1.015, 1.015); }+}+@keyframes fm-glow { from { transform: scale(0.85); opacity: 0.85; } to { transform: scale(1.15); opacity: 1; } }+@keyframes fm-hue { from { filter: hue-rotate(-14deg); } to { filter: hue-rotate(18deg) saturate(1.15); } }+/* Header mark: same idea as the footer, three rings, slow. */+.site-head .logo .mark { animation: fm-hue 48s ease-in-out infinite alternate; }+.site-head .mark .hm-spin, .site-head .mark .hm-morph, .site-head .mark .hm-core { transform-box: fill-box; transform-origin: center; }+.hm-spin { animation: fm-turn var(--t) linear infinite var(--dir); }+.hm-morph { animation: fm-breathe var(--b) ease-in-out infinite alternate; animation-delay: var(--bd); }+.hm-s0 { --t: 34s; --dir: reverse; }+.hm-s1 { --t: 24s; --dir: normal; }+.hm-s2 { --t: 16s; --dir: reverse; }+.hm-m0 { --b: 12s; --bd: -4s; }+.hm-m1 { --b: 10s; --bd: -1s; }+.hm-m2 { --b: 9s; --bd: -6s; }+.hm-core { animation: fm-glow 6s ease-in-out infinite alternate; }+@media (prefers-reduced-motion: reduce) {+ .foot-mark, .foot-mark g, .fm-core, .site-head .logo .mark, .site-head .mark circle, .site-head .mark g { animation: none !important; }+}+.site-foot .legal { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--dim); }+@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }++/* ---------- prose (blog, legal) ---------- */+.prose { max-width: 680px; font-size: 18px; line-height: 1.65; color: #dfe5f1; }+.prose h2 { font-weight: 760; font-stretch: 86%; font-size: 34px; line-height: 1.05; margin: 2.2em 0 0.6em; color: var(--ink); letter-spacing: -0.01em; }+.prose h3 { font-weight: 700; font-size: 21px; margin: 1.8em 0 0.4em; color: var(--ink); }+.prose a { color: var(--ink); text-decoration-color: var(--violet); }+.prose code { font-family: var(--mono); font-size: 0.82em; background: var(--panel); padding: 2px 6px; border-radius: 3px; }+.prose pre { background: var(--panel); border: 1px solid var(--line-soft); padding: 18px; overflow-x: auto; border-radius: 4px; font-size: 14px; }+.prose pre code { background: none; padding: 0; }+.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }+.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }+.prose th { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--dim); }+.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--sun); font-family: var(--serif); font-size: 22px; color: var(--ink); }+.prose img, .prose video { border-radius: 2px; margin: 1.6em 0; width: 100%; height: auto; }+.prose ul, .prose ol { padding-left: 1.2em; }+.prose li { margin: 0.3em 0; }++/* ---------- page hero (inner pages) ---------- */+.page-hero { padding: clamp(130px, 16vw, 220px) 0 clamp(48px, 6vw, 88px); }+.page-hero .idx { margin-bottom: 26px; }++@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }+ .js .rv { opacity: 1; transform: none; }+}++/* ---------- docs body (synced markdown from the Phosphene repo) ---------- */+.docs-body { max-width: 760px; font-size: 16.5px; }+.docs-body h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 2em 0 0.5em; scroll-margin-top: 90px; }+.docs-body h3 { font-size: 18.5px; scroll-margin-top: 90px; }+.docs-body .docs-anchor { display: block; position: relative; top: -90px; visibility: hidden; }+.docs-body kbd, .docs-body .kbd { display: inline-block; min-width: 1.6em; padding: 0 5px; margin: 0 1px; border-radius: 3px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); font-family: var(--mono); font-size: 0.78em; line-height: 1.7; text-align: center; color: var(--ink); }+.docs-body .sc-chord { white-space: nowrap; }+.docs-body .sc-or { color: var(--dim); padding: 0 3px; }+.docs-body .docs-keys { display: table; width: 100%; }+.docs-body .docs-keys td { font-size: 14.5px; }+.docs-body .docs-keys-k { width: 1%; white-space: nowrap; padding-right: 18px; }+.docs-body .docs-muted { color: var(--dim); font-size: 14px; }+.docs-body .docs-icon { color: var(--mute); }+.docs-body pre { font-size: 13px; line-height: 1.55; }+.docs-body table { font-size: 14.5px; }+.prose .tbl { overflow-x: auto; margin: 1.4em 0; }+.prose .tbl table { display: table; margin: 0; }+.docs-body td code, .docs-body th code { white-space: nowrap; }diff --git a/docs/design-reference/site/index.astro b/docs/design-reference/site/index.astronew file mode 100644index 0000000..ad07313--- /dev/null+++ b/docs/design-reference/site/index.astro@@ -0,0 +1,453 @@+---+// HOME (was /lab/one v3): "THE CUTTING ROOM". A full-screen showcase in Phosphene's Editor language+// (scroll = playhead, Space plays the page with sound), ending on LAST TAKE's last line,+// then the normal site: every shot as text, numbers, memory, plans, open source, FAQ.+// Drop-in ready for src/pages/index.astro (see LAB_REPORT for the exact diff).+import Base from '../layouts/Base.astro';+import Numbers from '../components/Numbers.astro';+import DownloadCTA from '../components/DownloadCTA.astro';+import GetStarted from '../components/GetStarted.astro';+import Plans from '../components/Plans.astro';+import MoreMade from '../components/MoreMade.astro';+import MemoryPicker from '../components/MemoryPicker.astro';+import MORE from '../data/more.json';+import '../lab/one/one.css';+import Tunnel from '../components/tunnel/Tunnel.astro';+import TunnelGate from '../components/tunnel/TunnelGate.astro';+import TunnelPanel from '../components/tunnel/TunnelPanel.astro';+import T from '../components/tunnel/copy.json';+import PC from '../data/pricing-copy.json';+import C from '../lab/copy/one.json';+import E from '../lab/one/edit.json';+import { CREDITS, UPSTREAM, SITE, STATS, FAQ, GALLERY } from '../data/site';+// The home page. Title and description are the home's own (unchanged); the canonical is SITE.url + '/'.+const homeTitle = 'Phosphene · Free AI video with sound, on your Mac. Offline.';+const homeDescription = 'Your Mac can make AI video with sound. Phosphene is a free, open-source local AI video generator for Apple Silicon. Run LTX-2.5 and Hailuo H3 offline. Nothing uploaded.';++const TITLES = C.titles as any[];+const TOTAL = TITLES[TITLES.length - 1].end;+const pad = (n: number) => String(n).padStart(2, '0');+const clock = (s: number) => `${Math.floor(s / 60)}:${pad(Math.floor(s % 60))}.${pad(Math.round((s % 1) * 100) % 100)}`;+const trackOf = (eng: string) => (eng.includes('H3') ? 'v2' : 'v1');+const MUSIC = new Set(['lt_pushin', 'lt_lights', 'neonmile', 'lt_projector', 'lt_lastline']);+const notes = C.clips as Record<string, string>;+const A = C.app as Record<string, string>;+const hero = TITLES[0];+const AG = C.agent as any;+// The agent demo replays a real job: "Order up" (Hailuo H3 image to video, High + Fast, 10 s, seed 72001, 1133 s on an+// M4 Max). Prompt excerpts are cut from the exact payload (overnight-2026-10-19/site/showcase2/diner_jobs_snapshot.json).+const DINER = {+ prompt: "Live-action, cinematic, a medium close-up inside a 1950s all-night diner at three in the morning. A short-order cook with curly dark hair, a thick black handlebar mustache and a pointed black goatee, wearing a white short-sleeved cook's shirt and a red neckerchief, stands behind a hot steel griddle where a burger patty sizzles, a metal spatula in his right hand. Behind him: mint-green tiles, chrome, cherry-red stools and a dark window streaked with rain, under flat fluorescent light with steam rising from the griddle. He faces the camera the whole time. The camera pushes in toward his face with small amplitude at slow speed. He is the only person in the shot. No text appears at any point. Every line is spoken in a natural talking voice, not sung. Every hand in the shot is bare, with no rings or jewellery on any finger.",+ w1: "…(S1), in a dry, deadpan baritone, says: <d>[English] Your order's almost ready.</d> …",+ w2: "…(S1) says flatly: <d>[English] It's been almost ready since nineteen fifty-six.</d> …",+};+const short = (t: string, n: number) => (t.length > n ? t.slice(0, n).replace(/\s+\S*$/, '') + '…' : t);+const API_DOCS = `${SITE.repo}/blob/main/docs/API.md`;+const AGENT_DOCS = `${SITE.repo}/blob/main/docs/AGENT_API.md`;+const v2n = E.cuts.filter((c) => trackOf(c.engine) === 'v2').length;+const v1n = E.cuts.length - v2n;+// ---------- SEO ----------+const abs = (p: string) => `${SITE.url}${p}`;+const iso = (s: number) => `PT${Math.round(s)}S`;+const uploaded = (src: string) => (src.includes('last_take') ? '2026-10-11' : src.includes('/sc_') || src.startsWith('mac/') ? '2026-10-20' : '2026-10-19');+const description = homeDescription;+const jsonld = [+ {+ '@context': 'https://schema.org',+ '@type': 'SoftwareApplication',+ name: 'Phosphene',+ applicationCategory: 'MultimediaApplication',+ applicationSubCategory: 'AI video generator',+ operatingSystem: 'macOS (Apple Silicon)',+ softwareVersion: SITE.version,+ datePublished: STATS.firstRelease,+ dateModified: SITE.versionDate,+ description,+ url: SITE.url,+ downloadUrl: `${SITE.url}/download/`,+ codeRepository: SITE.repo,+ license: 'https://opensource.org/licenses/MIT',+ isAccessibleForFree: true,+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' },+ author: { '@type': 'Person', name: SITE.author },+ image: `${SITE.url}/og/home.jpg`,+ screenshot: `${SITE.url}/media/ui/panel_418.webp`,+ featureList: 'Text to video, image to video, keyframes, extend, lip-sync, add sound, songs with vocals, image generation and editing, character LoRA training, timeline editor, local HTTP API for agents',+ memoryRequirements: '16 GB unified memory minimum',+ storageRequirements: '40 GB',+ },+ {+ '@context': 'https://schema.org',+ '@type': 'VideoObject',+ name: 'LAST TAKE, a Phosphene film',+ description: 'A 64-second film made entirely on one Mac with Phosphene: LTX-2.5 and Hailuo H3 for picture and sound, the Music Studio for the song.',+ thumbnailUrl: `${SITE.url}/media/posters/last_take_cover.webp`,+ contentUrl: `${SITE.url}/media/last_take.mp4`,+ uploadDate: '2026-10-11',+ duration: 'PT1M5S',+ },+ {+ '@context': 'https://schema.org',+ '@type': 'FAQPage',+ mainEntity: FAQ.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })),+ },+ {+ '@context': 'https://schema.org',+ '@type': 'VideoObject',+ name: 'The Cutting Room: a Phosphene cut made on one Mac',+ description: TITLES.map((t) => t.h).join(' '),+ thumbnailUrl: abs('/lab/one/poster.webp'),+ contentUrl: abs('/lab/one/edit_960.mp4'),+ uploadDate: '2026-10-20',+ duration: iso(E.duration),+ hasPart: E.cuts.map((c) => ({ '@type': 'Clip', name: c.name, startOffset: Math.round(c.start), endOffset: Math.round(c.end) })),+ },+ ...E.cuts.map((c) => ({+ '@context': 'https://schema.org',+ '@type': 'VideoObject',+ name: c.name,+ description: `${notes[c.id] || ''} ${c.engine} · ${c.mode}. Rendered locally on a Mac with Phosphene.`.trim(),+ thumbnailUrl: abs(`/lab/one/bin_${c.id}.webp`),+ contentUrl: abs(`/media/${c.src}`),+ uploadDate: uploaded(c.src),+ duration: iso(c.end - c.start),+ })),+ ...(MORE.items as any[]).map((m) => ({+ '@context': 'https://schema.org',+ '@type': 'VideoObject',+ name: m.title,+ description: `${m.line} ${m.engine} · ${m.mode}, rendered locally on a Mac with Phosphene in ${m.render}.`,+ thumbnailUrl: abs(`/media/mac/${m.id}.webp`),+ contentUrl: abs(`/media/mac/${m.id}.mp4`),+ uploadDate: '2026-10-20',+ duration: iso(m.sec),+ })),+];+---+<Base title={homeTitle} description={description} jsonld={jsonld}>+ <Fragment slot="head">+ <link rel="preload" href="/fonts/archivo-latin-wdth-normal.woff2" as="font" type="font/woff2" crossorigin />+ <link rel="preload" as="image" href="/lab/one/poster.webp" media="(min-width: 821px)" fetchpriority="high" />+ <link rel="preload" as="image" href="/lab/one/poster_m.webp" media="(max-width: 820px)" fetchpriority="high" />+ <script is:inline>+ (function () { var d = document.documentElement; if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) { d.classList.add('ed-on'); if (window.innerWidth > 820 && window.scrollY < 50) d.classList.add('in-cut'); } })();+ </script>+ </Fragment>++ <!-- ============ THE SHOWCASE: a full-screen editor, scroll = playhead ============ -->+ <section class="cr" id="cut" style={`--total:${TOTAL}`} aria-label="Phosphene video demo. Scroll to preview, or press Play.">+ <div class="cr-pin">+ <div class="ed" id="ed">+ <div class="ed-head">+ <a href="/" class="ed-logo" aria-label="Phosphene home">+ <svg class="ed-mark" width="26" height="26" viewBox="0 0 26 26" aria-hidden="true">+ <g fill="none" transform="rotate(-90 13 13)">+ <circle cx="13" cy="13" r="11" stroke="#5EEAFF" stroke-width="2" stroke-dasharray="1.15 1.73" />+ <circle cx="13" cy="13" r="7.7" stroke="#B14AFF" stroke-width="2.1" stroke-dasharray="1.1 1.59" />+ <circle cx="13" cy="13" r="4.5" stroke="#FF2E9F" stroke-width="2" stroke-dasharray="1 1.36" />+ </g>+ <circle cx="13" cy="13" r="1.5" fill="#FFD23F" />+ </svg>+ <img class="ed-word" src="/brand/[email protected]" srcset="/brand/[email protected] 2x, /brand/[email protected] 3x" width="120" height="20" alt="Phosphene" />+ </a>+ <span class="chip chip-seq">LAST TAKE</span>+ <span class="sent pill"><i class="pdot" aria-hidden="true"></i>{C.app.sent} <b>0 B</b></span>+ <span class="grow"></span>+ <nav class="ed-nav" aria-label="Site">+ <a href="/features/">Features</a><a href="/gallery/">Gallery</a><a href="/docs/">Docs</a><a href="/changelog/">Changelog</a><a href="/pricing/">Pricing</a>+ <a class="gh" href={SITE.repo} rel="noopener" aria-label={`Phosphene on GitHub, ${STATS.stars} stars`}><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><b data-gh="stars">{STATS.stars.toLocaleString('en-US')}</b></a>+ </nav>+ <a class="gbtn" href="/gallery/">{A.textVersion}</a>+ <a class="primary" href="/download/"><span>{A.render}</span></a>+ </div>++ <aside class="pool" aria-label={A.pool}>+ <div class="pool-h"><span class="cap">{A.pool}</span><span class="chip is-on">{A.poolTab}</span></div>+ <ul class="pool-list">+ {E.cuts.map((c) => (+ <li>+ <button class="pcard" data-seek={c.start} data-clip={c.id}>+ <img src={`/lab/one/bin_${c.id}.webp`} alt="" width="48" height="27" loading="lazy" decoding="async" />+ <span class="pn">{c.name}</span>+ <span class="pm">{c.engine.replace('Hailuo ', '')} · {(c.end - c.start).toFixed(1)}s</span>+ </button>+ </li>+ ))}+ </ul>+ <p class="pool-note">{A.poolNote}</p>+ <div class="now" aria-live="polite">+ <div class="now-tabs"><span class="tab is-on">{A.now}</span></div>+ <div class="now-card idle" id="nowCard">+ <div class="ttl" id="nowTtl">{A.idle}</div>+ <div class="pbar"><i id="nowBar"></i></div>+ <div class="meta" id="nowMeta">{A.idleMeta}</div>+ </div>+ </div>+ </aside>++ <section class="mon" id="mon" aria-label={A.program}>+ <div class="frame" id="frame">+ <picture>+ <source media="(max-width: 820px)" srcset="/lab/one/poster_m.webp" />+ <img class="poster" id="poster" src="/lab/one/poster.webp" width="960" height="540" alt="Bizarro under stage lights in LAST TAKE, a film made with Phosphene" fetchpriority="high" />+ </picture>+ <video id="vid" muted playsinline preload="none" aria-hidden="true" tabindex="-1"></video>+ <i class="vig" aria-hidden="true"></i>+ </div>+ <div class="titles" id="titles">+ {TITLES.map((t, i) => (+ <article class={`ti ti--${t.style}${i === 0 ? ' on' : ''}`} data-id={t.id} data-start={t.start} data-end={t.end}>+ {t.style === 'hero' ? (+ <>+ <h1 class="display">{t.h}</h1>+ <p class="ti-p">{t.p}</p>+ <div class="ti-act">+ <DownloadCTA label={t.cta} />+ <a class="get-started-link" href="#get-started">Get started <span aria-hidden="true">↓</span></a>+ <span class="hint-chip"><kbd>Scroll</kbd><kbd>Space</kbd><span class="h-desk">{t.hint}</span><span class="h-touch">{t.hintTouch}</span></span>+ </div>+ </>+ ) : (+ <>+ <p class="display">{t.h}</p>+ {t.p && <p class="ti-p">{t.p}</p>}+ </>+ )}+ </article>+ ))}+ </div>+ </section>++ <aside class="insp" aria-label={C.app.inspector}>+ <div class="pool-h"><span class="cap">{C.app.inspector}</span></div>+ <div class="icard">+ <div class="i-name" id="iName">{E.cuts[0].name}</div>+ <dl class="kv">+ <div><dt>{C.app.engine}</dt><dd id="iEng">{E.cuts[0].engine}</dd></div>+ <div><dt>{C.app.mode}</dt><dd id="iMode">{E.cuts[0].mode}</dd></div>+ <div><dt>{C.app.length}</dt><dd id="iLen">{(E.cuts[0].end - E.cuts[0].start).toFixed(2)}s</dd></div>+ <div id="iRenderRow" hidden><dt>{(C.app as any).renderTime}</dt><dd id="iRender"></dd></div>+ <div><dt>{C.app.rendered}</dt><dd>{C.app.renderedValue}</dd></div>+ <div><dt>{C.app.uploaded}</dt><dd class="ok">{C.app.uploadedValue}</dd></div>+ </dl>+ <p class="i-note" id="iNote">{notes[E.cuts[0].id]}</p>+ </div>+ <div class="icard rendered">+ <div class="cap">Demo viewed</div>+ <div class="pbar brand"><i id="rbar"></i></div>+ <div class="meta"><b id="rpct">0%</b> · {A.onMac}</div>+ </div>+ </aside>++ <nav class="toolrow" aria-label="Playback controls">+ <button class="gbtn tb-play" id="play" data-act="play" aria-label={C.hints.playLabel}><svg class="i-play" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 2l10 6-10 6z"/></svg><svg class="i-pause" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 2h3v12H4zM9 2h3v12H9z"/></svg><span>{C.hints.playLabel}</span></button>+ <span class="tgroup">+ <button class="gbtn ib" data-act="home" aria-label="Go to start"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 3h2v10H3zM13 3v10L6 8z"/></svg></button>+ <button class="gbtn ib" data-act="prev" aria-label="Previous shot"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10L2 8zM14 3v10L8 8z"/></svg></button>+ <button class="gbtn ib" data-act="next" aria-label="Next shot"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10l6-5zM2 3v10l6-5z"/></svg></button>+ <button class="gbtn ib" data-act="end" aria-label="Go to the last shot"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M11 3h2v10h-2zM3 3v10l7-5z"/></svg></button>+ </span>+ <output class="time mono" id="tc" aria-label="Timecode">00:00:00:00</output>+ <span class="tclip"><span class="cap">{A.program}</span> <b id="monClip">{E.cuts[0].name}</b> <span class="mono dimx" id="monTc">{clock(0)} / {clock(TOTAL)}</span></span>+ <span class="hint"><b>{C.hints.scrub}</b> · {C.hints.play} <span class="keys">· {C.hints.keys}</span></span>+ <a class="gbtn ib txt" href="/gallery/" aria-label={A.textVersion}>Aa</a>+ </nav>++ <div class="tl" id="tl" aria-hidden="true">+ <div class="heads">+ <div class="h-ruler"></div>+ <div class="h t1"><span class="tid">T1</span><span class="tn">{C.tracks.t1}</span></div>+ <div class="h v2"><span class="tid">V2</span><span class="tn">{C.tracks.v2}<small>{v2n} clips</small></span></div>+ <div class="h v1"><span class="tid">V1</span><span class="tn">{C.tracks.v1}<small>{v1n} clips</small></span></div>+ <div class="h a1"><span class="tid">A1</span><span class="tn">{C.tracks.a1}</span></div>+ <div class="h a2"><span class="tid">A2</span><span class="tn">{C.tracks.a2}</span></div>+ </div>+ <div class="lanes" id="lanes">+ <div class="tl-in" id="tlin">+ <div class="ruler" id="ruler"><div class="rbar"><b id="rdone"></b></div></div>+ <div class="lane t1">+ {TITLES.map((t) => <div class="clip c-title" data-s={t.start} data-e={t.end}><span class="cn">{t.h}</span></div>)}+ </div>+ <div class="lane v2">+ {E.cuts.filter((c) => trackOf(c.engine) === 'v2').map((c) => (+ <div class="clip c-vid" data-s={c.start} data-e={c.end} data-clip={c.id} data-thumb={`/lab/one/bin_${c.id}.webp`}><span class="cn">{c.name}</span><span class="cm">{c.srcIn.toFixed(2)}→{(c.srcIn + ((c as any).srcLen ?? (c.end - c.start))).toFixed(2)} · {(c.end - c.start).toFixed(2)}s</span></div>+ ))}+ </div>+ <div class="lane v1">+ {E.cuts.filter((c) => trackOf(c.engine) === 'v1').map((c) => (+ <div class="clip c-vid" data-s={c.start} data-e={c.end} data-clip={c.id} data-thumb={`/lab/one/bin_${c.id}.webp`}><span class="cn">{c.name}</span><span class="cm">{c.srcIn.toFixed(2)}→{(c.srcIn + ((c as any).srcLen ?? (c.end - c.start))).toFixed(2)} · {(c.end - c.start).toFixed(2)}s</span></div>+ ))}+ </div>+ <div class="lane a1"><canvas id="wave"></canvas></div>+ <div class="lane a2">+ {E.cuts.filter((c) => MUSIC.has(c.id)).map((c) => <div class="clip c-mus" data-s={c.start} data-e={c.end}><span class="cn">Song · Music Studio</span></div>)}+ </div>+ </div>+ <div class="playhead" id="ph"><i></i></div>+ </div>+ </div>+ </div>+ </div>+ </section>++ <!-- ============ THE NORMAL SITE ============ -->+ <div class="after">+ <GetStarted />++ <Tunnel>+ <TunnelGate to="tunnel" entry kicker={T.gates.entry.kicker} caption={T.gates.entry.line} />+ <TunnelPanel scene="tunnel" bleed>+ <Numbers />+ </TunnelPanel>++ <TunnelGate to="maze" kicker={T.gates.maze.kicker} caption={T.gates.maze.line} />++ <TunnelPanel scene="maze">+ <MemoryPicker idx="01 / 06" />+ </TunnelPanel>++ <TunnelGate to="maze" kicker={T.gates.pricing.kicker} caption={T.gates.pricing.line} />+ <TunnelPanel scene="maze">+ <section class="sec plans" id="pricing" aria-labelledby="pricing-h">+ <div class="wrap">+ <div class="sec-head">+ <div class="idx"><b>02</b> / 06</div>+ <h2 class="h-m" id="pricing-h">Free app.<br/>Support open source.</h2>+ <p class="aside lead">{PC.lead}</p>+ </div>+ <Plans source="home" />+ </div>+ </section>+ </TunnelPanel>+++ <TunnelGate to="maze" kicker={T.gates.agent.kicker} caption={T.gates.agent.line} />+ <TunnelPanel scene="maze">+ <section class="sec agent" id="agent" aria-labelledby="agent-h">+ <div class="wrap">+ <div class="sec-head">+ <div class="idx"><b>03</b> / 06</div>+ <h2 class="h-m" id="agent-h">{AG.h}</h2>+ <p class="aside lead">{AG.p}</p>+ </div>+ <div class="ag" data-agent>+ <div class="term" role="group" aria-label="An agent session driving Phosphene">+ <div class="term-bar" aria-hidden="true"><i></i><i></i><i></i><span>agent · ~/films</span></div>+ <ol class="term-lines">+ <li class="l-ask"><span class="pr" aria-hidden="true">›</span><span>{AG.ask}</span></li>+ <li class="l-note"><span class="pr" aria-hidden="true">⏺</span><span>{AG.reading}</span></li>+ <li class="l-cmd"><span class="pr" aria-hidden="true">$</span><code>curl -s 127.0.0.1:8198/status</code></li>+ <li class="l-out"><code>{'{"running": false, "current": null, "queue": [], …}'}</code></li>+ <li class="l-cmd"><span class="pr" aria-hidden="true">$</span><code>curl -s -X POST 127.0.0.1:8198/queue/add \+ -d mode=i2v -d engine=h3 -d h3_quality=high -d h3_tristep=1 -d h3_length=10s -d seed=72001 \+ --data-urlencode image=$HOME/films/diner.png \+ --data-urlencode "prompt={short(DINER.prompt, 120)}" \+ --data-urlencode "h3_chain_prompts=[\"{DINER.w1}\", \"{DINER.w2}\"]"</code></li>+ <li class="l-out"><code>{'{"ok": true, "id": "j-7f3c…"}'}</code></li>+ <li class="l-cmd"><span class="pr" aria-hidden="true">$</span><code>curl -s 127.0.0.1:8198/status <span class="dimx"># {AG.poll}</span></code></li>+ <li class="l-out l-prog"><code>"phase_label": "Window <b data-step data-max="2">1</b>/2 · Denoising video + audio", "pct": <b data-pct>41</b></code></li>+ <li class="l-out"><code>{'{"status": "done", "elapsed_sec": 1133, "output_path": "…/mlx_outputs/Live_action_cinematic_a_medium_close_h3_720p.mp4"}'}</code></li>+ <li class="l-done"><span class="pr" aria-hidden="true">⏺</span><span>{AG.done}</span></li>+ </ol>+ <button class="term-replay" type="button" data-agent-replay>{AG.replay}</button>+ </div>+ <figure class="ag-out">+ <div class="ag-frame">+ <video data-agent-vid muted playsinline loop preload="none" poster="/media/posters/sc_diner.webp" width="960" height="540" aria-label={`${AG.result}: ${AG.clip}`}>+ <source src="/media/clips/sc_diner.mp4" type="video/mp4" />+ </video>+ <button class="ag-sound" type="button" data-agent-sound aria-pressed="false">{AG.sound}</button>+ </div>+ <figcaption><span class="mono dim">{AG.result}</span> <b>{AG.clip}</b> <span class="mono dim">· Hailuo H3 · image to video · 10 s</span></figcaption>+ </figure>+ </div>+ <div class="doors">+ <h3 class="doors-h">{AG.doorsH}</h3>+ <ul>+ {AG.doors.map((d: any) => <li><code>{d.code}</code><p>{d.t}</p></li>)}+ </ul>+ <p class="manuals">{AG.manuals}</p>+ <p class="act"><a class="btn ghost" href={API_DOCS} rel="noopener">{AG.docs}</a> <a class="link" href={AGENT_DOCS} rel="noopener">{AG.docs2}</a></p>+ </div>+ </div>+ </section>+ </TunnelPanel>++ <TunnelGate to="room" kicker={T.gates.room.kicker} caption={T.gates.room.line} />+ <TunnelPanel scene="room">+ <section class="sec os" id="open-source" aria-labelledby="os-h">+ <div class="wrap grid">+ <div class="osl">+ <div class="idx"><b>04</b> / 06</div>+ <h2 class="display h-l" id="os-h">Free and<br/>open source.</h2>+ <p class="stand">Mr Bizarro made Phosphene. People trying things on their own Macs keep making it better. The app is open source under MIT. Read the code, fix a bug, or take it somewhere unexpected.</p>+ <dl class="nums mono">+ <div><dt>GitHub stars</dt><dd data-gh="stars">{STATS.stars.toLocaleString('en-US')}</dd></div>+ <div><dt>code forks</dt><dd data-gh="forks">{STATS.forks.toLocaleString('en-US')}</dd></div>+ <div><dt>releases</dt><dd>{STATS.releases}</dd></div>+ <div><dt>licence</dt><dd>MIT</dd></div>+ </dl>+ <div class="act">+ <a class="btn ghost" href={SITE.repo} rel="noopener">Take a look on GitHub</a>+ <a class="link" href="/open-source/">How to contribute</a>+ </div>+ </div>+ <div class="roll" aria-label="Community credits">+ <div class="roll-in">+ <p class="mono dim rh">contributors</p>+ <ul>{CREDITS.map((c) => <li><b>{c.handle}</b><span>{c.did}</span></li>)}</ul>+ <p class="mono dim rh">models and tools</p>+ <ul>{UPSTREAM.map((u) => <li><b>{u.who}</b><span>{u.what}</span></li>)}</ul>+ <p class="mono dim rh">created by</p>+ <ul><li><b>Mr Bizarro</b><span>creator of Phosphene</span></li></ul>+ </div>+ </div>+ </div>+ </section>+ </TunnelPanel>++ <TunnelPanel scene="room">+ <section class="sec faq" id="faq" aria-labelledby="faq-h">+ <div class="wrap grid">+ <div class="fq-h">+ <div class="idx"><b>05</b> / 06</div>+ <h2 class="h-m" id="faq-h">Frequently asked questions</h2>+ </div>+ <div class="fq">+ {FAQ.map((f) => (+ <details>+ <summary>{f.q}</summary>+ <p>{f.a}</p>+ </details>+ ))}+ </div>+ </div>+ </section>+ </TunnelPanel>+ <TunnelGate to="room" />+ </Tunnel>++ <MoreMade />++ <section class="end-cta">+ <div class="wrap">+ <p class="display h-xl">{C.after.endH}</p>+ <div class="act">+ <a class="btn" href="/download/">{C.after.endCta} <span class="mono">{C.after.endCtaSub}</span></a>+ <a class="link" href="/gallery/">{C.after.endLink}</a>+ </div>+ </div>+ </section>+ </div>++ <script>+ import { boot } from '../lab/one/editor';+ boot();+ </script>+</Base>++<style>+ .get-started-link { font-size: 14px; font-weight: 600; text-underline-offset: 5px; }+ .ti--hero .hint-chip { flex-basis: auto; }+ .ti--hero .ti-p { max-width: 52ch; }+</style>diff --git a/docs/pro/shots/card-pro-speed-chip.png b/docs/pro/shots/card-pro-speed-chip.pngnew file mode 100644index 0000000..bfc266aBinary files /dev/null and b/docs/pro/shots/card-pro-speed-chip.png differdiff --git a/docs/pro/shots/header-pro-mark-1600.png b/docs/pro/shots/header-pro-mark-1600.pngnew file mode 100644index 0000000..8883fc3Binary files /dev/null and b/docs/pro/shots/header-pro-mark-1600.png differdiff --git a/docs/pro/shots/pro-modal-compare-1600.png b/docs/pro/shots/pro-modal-compare-1600.pngnew file mode 100644index 0000000..3b44dadBinary files /dev/null and b/docs/pro/shots/pro-modal-compare-1600.png differdiff --git a/docs/pro/shots/studio-pro-1600.png b/docs/pro/shots/studio-pro-1600.pngnew file mode 100644index 0000000..672f380Binary files /dev/null and b/docs/pro/shots/studio-pro-1600.png differdiff --git a/fake_crash.py b/fake_crash.pynew file mode 100644index 0000000..d4e11d3--- /dev/null+++ b/fake_crash.py@@ -0,0 +1,49 @@+"""Make a test child LOOK like it died from a signal, without really crashing.++WHY. A child that really aborts (sends itself SIGABRT, calls abort(),+a segfault) makes macOS ReportCrash write a DiagnosticReports file and pop a+"Python quit unexpectedly" dialog on the Mac running the suite. A full-suite+run fired five of them in a row on the owner's Mac (4 Nov 2026), on every run.+RLIMIT_CORE=0 only stops the core file, not the dialog.++HOW. The child exits normally with a sentinel status (FAKE_SIGNAL_EXIT); the+Popen subclass below rewrites that one status to -signal when it is reaped, so+poll(), wait() and .returncode all report "killed by SIGABRT" (-6) exactly as+a real crash would. Everything else (pipes, timing, other exit codes) is the+real child's. test_no_real_crash_signals.py keeps real crash signals out of+the suite.+"""+from __future__ import annotations++import signal+import subprocess++#: Exit status a child uses to say "pretend I was killed by a signal".+FAKE_SIGNAL_EXIT = 86++#: Python lines that end a child "by SIGABRT" without a real abort.+CHILD_FAKE_ABORT = f"import os; os._exit({FAKE_SIGNAL_EXIT})\n"+++def popen_class(sig: int = signal.SIGABRT):+ """A Popen subclass that reports FAKE_SIGNAL_EXIT as death by ``sig``."""+ base = subprocess.Popen+ # Patching subprocess.Popen with our own class and calling popen_class()+ # again must not stack subclasses of the fake.+ while getattr(base, "_fake_crash_base", None) is not None:+ base = base._fake_crash_base++ class FakeSignalPopen(base):+ _fake_crash_base = base++ def _handle_exitstatus(self, *args, **kwargs):+ super()._handle_exitstatus(*args, **kwargs)+ if self.returncode == FAKE_SIGNAL_EXIT:+ self.returncode = -int(sig)++ return FakeSignalPopen+++def popen(*args, sig: int = signal.SIGABRT, **kwargs):+ """subprocess.Popen(...) whose FAKE_SIGNAL_EXIT reads as -sig."""+ return popen_class(sig)(*args, **kwargs)diff --git a/h3_prompt_guards.py b/h3_prompt_guards.pyindex be13047..92df8c1 100644--- a/h3_prompt_guards.py+++ b/h3_prompt_guards.py@@ -224,6 +224,11 @@ def _append_to_description(prompt: str, sentences: list[str]) -> str:return body + (trail if rest else "") + rest+def append_to_description(prompt: str, sentences: list[str]) -> str:+ """Public form of the description-field append (reference images use it)."""+ return _append_to_description(prompt, sentences)++def apply_guards(prompt: str, mode: str = "t2v",enabled=DEFAULT_GUARDS) -> tuple[str, list[str]]:"""``(guarded prompt, guards applied)``. ``enabled`` limits which guardsdiff --git a/image_diagnostics.py b/image_diagnostics.pynew file mode 100644index 0000000..693f60c--- /dev/null+++ b/image_diagnostics.py@@ -0,0 +1,199 @@+"""Bounded local image evidence. No raw worker text, telemetry or network I/O.++Only literal recognized native phrases survive; this intentionally sacrifices+unknown exception prose rather than trying to blacklist every possible secret.+"""+import json+import math+import os+from pathlib import Path+import queue+import threading+import time++FILENAME = 'image-diagnostics.json'+MAX_RECORDS = 16+MAX_BYTES = 32768+MODELS = {'Qwen/Qwen-Image-Edit-2511', 'Qwen/Qwen-Image-Edit-2509',+ 'Runpod/FLUX.2-klein-4B-mflux-4bit', 'qwen', 'qwen-edit',+ 'cocktailpeanut/ideogram-4-fp8', 'filipstrand/Z-Image-Turbo-mflux-4bit'}+PRESETS = {'auto', 'qwen_edit_lightning_inline', 'qwen_edit_inline',+ 'qwen_edit_high_inline', 'flux2_klein_inline', 'ideogram4_inline'}+PHASES = {'unknown', 'download', 'load', 'render'}+OUTCOMES = {'unknown', 'completed', 'failed', 'cancelled', 'timeout'}+# Exact excerpts, never surrounding text or captured groups.+NATIVE = ('std::bad_alloc', 'out of memory', 'failed to allocate',+ 'insufficient memory', 'std::runtime_error', 'SIGABRT',+ 'MTLCommandBufferErrorDomain', 'command buffer execution failed',+ 'libc++abi: terminating', 'Abort trap')+++def sanitize(record):+ """Allowlist again at persistence AND export, including tampered files."""+ if not isinstance(record, dict):+ return {}+ out = {}+ for key, allowed in [('model', MODELS), ('preset', PRESETS),+ ('phase', PHASES), ('outcome', OUTCOMES)]:+ value = record.get(key)+ out[key] = value if isinstance(value, str) and value in allowed else 'unknown'+ for key, low, high in [('width', 1, 16384), ('height', 1, 16384),+ ('references', 0, 3), ('quantization', 0, 16),+ ('steps', 1, 1000), ('exit_status', -255, 255),+ ('admission_available_gib', 0, 4096),+ ('spawn_available_gib', 0, 4096), ('started_unix', 0, 4102444800)]:+ v = record.get(key)+ out[key] = (v if type(v) in (int, float) and math.isfinite(v)+ and low <= v <= high else None)+ excerpts = record.get('native_excerpt')+ out['native_excerpt'] = [v for v in excerpts[:8] if type(v) is str and v in NATIVE] if isinstance(excerpts, list) else []+ return out+++def read_records(directory):+ try:+ with (Path(directory) / FILENAME).open('rb') as f:+ raw = f.read(MAX_BYTES + 1)+ if len(raw) > MAX_BYTES:+ return []+ data = json.loads(raw)+ return [sanitize(r) for r in data[-MAX_RECORDS:] if isinstance(r, dict)] if isinstance(data, list) else []+ except Exception:+ return []+++def memory_available():+ try:+ import hostinfo+ value = hostinfo.available_bytes()+ return round(value / 1024**3, 2) if value > 0 else None+ except Exception:+ return None+++class Writer:+ """One daemon and a small queue. Full/broken storage drops evidence, never jobs."""+ def __init__(self):+ self.pending = queue.Queue(maxsize=8)+ self.started = False+ self.lock = threading.Lock()++ def submit(self, directory, record, enabled):+ try:+ if not self.lock.acquire(blocking=False):+ return+ try:+ if not self.started:+ threading.Thread(target=self.run, daemon=True, name='image-diagnostics').start()+ self.started = True+ finally:+ self.lock.release()+ self.pending.put_nowait((directory, sanitize(record), enabled))+ except Exception:+ pass++ def run(self):+ while True:+ directory, record, enabled = self.pending.get()+ try:+ if enabled():+ self.persist(directory, record)+ except Exception:+ pass+ finally:+ self.pending.task_done()++ def persist(self, directory, record):+ directory = Path(directory)+ records = (read_records(directory) + [sanitize(record)])[-MAX_RECORDS:]+ data = json.dumps(records, separators=(',', ':')).encode()+ if len(data) > MAX_BYTES:+ return+ directory.mkdir(parents=True, exist_ok=True)+ target = directory / FILENAME+ temp = directory / (FILENAME + '.tmp')+ fd = os.open(temp, os.O_WRONLY | os.O_CREAT | os.O_TRUNC | os.O_NOFOLLOW, 0o600)+ with os.fdopen(fd, 'wb') as f:+ os.fchmod(f.fileno(), 0o600)+ f.write(data)+ os.replace(temp, target)+++WRITER = Writer()+++class Context:+ def __init__(self, directory, preset, enabled):+ self.directory, self.enabled = directory, enabled+ self.record = sanitize({'preset': preset, 'admission_available_gib': memory_available(), 'started_unix': int(time.time())})+ self.secrets = ()+ self.finished = False++ def prepare(self, prompt, refs, width, height):+ # Secrets live only during this job. Never passed to the writer.+ self.secrets = tuple(x for x in [prompt, *(refs or [])] if x)+ self.record.update(width=width, height=height, references=len(refs or []))++ def spawn(self, cmd):+ def arg(*keys):+ for key in keys:+ if key in cmd:+ return cmd[cmd.index(key) + 1]+ return None+ self.record['model'] = arg('--model')+ for key, flags in [('quantization', ('-q', '--quantize')), ('steps', ('--steps',))]:+ try:+ self.record[key] = int(arg(*flags))+ except (ValueError, TypeError):+ self.record[key] = None+ self.record['spawn_available_gib'] = memory_available()++ def line(self, line):+ # Bound work even for a malicious single-line worker log.+ line = line[:4096]+ for secret in self.secrets:+ line = line.replace(secret, '')+ lower = line.lower()+ # Positive markers only. Starting a child is NOT evidence of model load.+ if lower.startswith(('fetching ', 'downloading ')):+ self.record['phase'] = 'download'+ elif lower.startswith(('loading model', 'loading weights', 'loading checkpoint')):+ self.record['phase'] = 'load'+ elif lower.startswith(('denoising', 'generating image', 'rendering image')):+ self.record['phase'] = 'render'+ for phrase in NATIVE:+ if phrase in line and phrase not in self.record['native_excerpt']:+ self.record['native_excerpt'] = (self.record['native_excerpt'] + [phrase])[-8:]++ def finish(self, outcome, exit_status=None):+ if self.finished:+ return+ self.finished = True+ self.record.update(outcome=outcome, exit_status=exit_status)+ self.secrets = ()+ WRITER.submit(self.directory, self.record, self.enabled)+++def attempt(context, method, *args):+ """Diagnostic faults must never change the worker result."""+ try:+ if context is not None:+ getattr(context, method)(*args)+ except Exception:+ pass+++def begin(directory, preset, enabled):+ try:+ return Context(directory, preset, enabled) if enabled() else None+ except Exception:+ return None+++def bundle_lines(directory, enabled):+ try:+ if enabled():+ return ['[image-diagnostics] ' + json.dumps(r, separators=(',', ':')) for r in read_records(directory)]+ except Exception:+ pass+ return []diff --git a/image_engine.py b/image_engine.pyindex 9b2801c..217e28f 100644--- a/image_engine.py+++ b/image_engine.py@@ -68,6 +68,12 @@ import urllib.requestfrom dataclasses import asdict, dataclass, fieldfrom pathlib import Path+import image_diagnostics++_DIAGNOSTIC_BEGIN = None+_MFLUX_STALL_SECONDS = 1800.0+_MFLUX_WATCHDOG_POLL = 15.0+import distribution as _dist # Pinokio vs the Mac app wording@@ -552,7 +558,7 @@ def generate(*, prompt: str, n: int, output_dir: Path,refs: list[str] | None = None,config: ImageEngineConfig,on_log: "callable | None" = None,- install_env: dict | None = None) -> list[dict]:+ diagnostic=None, install_env: dict | None = None) -> list[dict]:"""Generate `n` candidate images for one shot. Saves under `output_dir`.Args:@@ -606,7 +612,20 @@ def generate(*, prompt: str, n: int, output_dir: Path,if config.kind == "mock":return _generate_mock(prompt, n, width, height, output_dir, base_seed, refs=refs)if config.kind == "mflux":- return _generate_mflux(prompt, n, width, height, output_dir, base_seed, config, refs=refs, on_log=on_log)+ if diagnostic is None and _DIAGNOSTIC_BEGIN is not None:+ try:+ diagnostic = _DIAGNOSTIC_BEGIN()+ except Exception:+ pass+ image_diagnostics.attempt(diagnostic, "prepare", prompt, refs, width, height)+ try:+ return _generate_mflux(prompt, n, width, height, output_dir, base_seed, config, refs=refs, on_log=on_log, diagnostic=diagnostic)+ except ImageJobCancelled:+ image_diagnostics.attempt(diagnostic, "finish", "cancelled")+ raise+ except Exception:+ image_diagnostics.attempt(diagnostic, "finish", "failed")+ raiseif config.kind == "bfl":return _generate_bfl(prompt, n, width, height, output_dir, base_seed, config)if config.kind == "hidream":@@ -1235,7 +1254,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,output_dir: Path, base_seed: int | None,config: ImageEngineConfig,refs: list[str] | None = None,- on_log: "callable | None" = None) -> list[dict]:+ on_log: "callable | None" = None, diagnostic=None) -> list[dict]:"""Subprocess the right `mflux-generate-*` binary ONCE for all `n` seeds.Pre-2026-05-08 this spawned one subprocess per candidate, paying the@@ -1664,6 +1683,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,last_lines: collections.deque[str] = collections.deque(maxlen=64)stderr_tail = ""timed_out = False+ image_diagnostics.attempt(diagnostic, "spawn", cmd)_spawned_at = time.time()proc = subprocess.Popen(cmd,@@ -1678,8 +1698,8 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,start_new_session=True,)# Register before the wait loop so /stop can find this proc.- _register_active_proc(proc)try:+ _register_active_proc(proc)# Activity-based (stall) timeout, NOT a fixed total deadline: the model# download runs INSIDE this subprocess, and on a slow connection a# 20-34 GB first-run pull can exceed any fixed render budget. The old@@ -1689,7 +1709,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,# stream per file; render emits step lines every few seconds), so we# only abort on a genuine STALL — no output for `stall_budget`. A# generous absolute cap is the runaway backstop.- stall_budget = 1800.0 # 30 min of silence = stuck+ stall_budget = _MFLUX_STALL_SECONDS # 30 min of silence = stuckhard_cap = time.time() + max(timeout_s, 14400.0) # 4 h absolute backstop# The download writes to disk for many minutes while its stdout is# silent OR floods \r-progress that readline() blocks on — either way@@ -1726,7 +1746,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,_wd_killed = [False]def _watchdog() -> None:_last = _dl_gb()- while not _wd_stop.wait(15.0):+ while not _wd_stop.wait(_MFLUX_WATCHDOG_POLL):_sz = _dl_gb()# Compared with the LAST SAMPLE, not the largest one seen# (4.19.18): the Xet downloader restarts an unfinished file@@ -1771,6 +1791,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,line = raw.rstrip("\n")if line:_alive[0] = time.time() # render/output activity → alive+ image_diagnostics.attempt(diagnostic, "line", line)last_lines.append(line)if on_log is not None:try:@@ -1817,6 +1838,7 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,)rc = proc.wait(timeout=30)except subprocess.TimeoutExpired as e:+ timed_out = Truetry:proc.kill()except OSError:@@ -1833,6 +1855,14 @@ def _generate_mflux(prompt: str, n: int, width: int, height: int,proc.stdout.close()except OSError:pass+ try:+ cancelled = bool(_CANCEL_CHECK and _CANCEL_CHECK())+ except Exception:+ cancelled = False+ image_diagnostics.attempt(diagnostic, "finish",+ "cancelled" if cancelled else "timeout" if timed_out else+ "completed" if getattr(proc, "returncode", None) == 0 else "failed",+ getattr(proc, "returncode", None))_unregister_active_proc(proc)# Ideogram's temp --prompt-file outlives the child (read during# model setup); remove it now that the subprocess has exited.diff --git a/install.js b/install.jsindex 24fb131..7b6d9e4 100644--- a/install.js+++ b/install.js@@ -1,41 +1,11 @@-// Phosphene install — idempotent.-//-// Pinokio will re-run this whenever the user clicks "Install" or "Resume-// Install" (the latter fires when env_ready && !base_models_ready, see-// pinokio.js). Every step below is safe to repeat:-//-// - clone: skipped if ltx-2-mlx/.git exists-// - venv: reused when its interpreter actually runs; rebuilt when-// it doesn't (self-healing — see that step's note)-// - uv pip: idempotent (already-installed packages are no-ops)-// - patch: patch_ltx_codec.py is idempotent + fails loud on drift-// - downloads: resume partial files, skip intact ones-//-// 4.20 - START COMES FIRST. This script now downloads only what a first render-// needs (~27.5 GB: required_files.json -> install.before_start) and then ends,-// so Pinokio offers Start. Gemma 3 (Enhance + the Storyboard planner) and the-// IC-LoRAs (~10.7 GB, install.after_start) are queued in-// state/install_deferred.json and the PANEL downloads them in the background-// after the first boot - resumable, one at a time, with progress in the panel.-// Until 4.20 all ~38 GB came first, with no size, no time and no disk check,-// and about 4 in 5 Pinokio install starts never reached a first boot.-//-// If the user's first install died after the venv was created but before-// the model downloads, hitting Resume Install picks up exactly where it-// left off without re-downloading the working pieces.-//-// IMPORTANT: we do NOT use Pinokio's `venv: "env"` directive to CREATE the-// venv — that uses conda-base's Python (currently 3.10 on the macOS bundle)-// which fails the ltx-core-mlx Python>=3.11 constraint. We force 3.11 with-// `uv venv --python 3.11` and then use `--python env/bin/python` on every-// pip step. The hf download steps still use `venv: "env"` for activation-// only (sourcing the existing 3.11 venv to put `hf` on PATH).-+// Install the tested runtime first. Models are requested inside the app.+// Engine pin: v0.14.19+ltx25.7, shared with Update in ltx_checkout.sh.+// fs.link keeps models, outputs and settings across Reset. All steps resume.module.exports = {- // Pulls in `huggingface-cli`/`hf`, `ffmpeg`, `git`, `uv`, `python3.11` etc.- requires: { bundle: "ai" },+ requires: {+ bundle: "ai"+ },run: [- // ---- Apple Silicon gate ------------------------------------------------{when: "{{platform !== 'darwin' || arch !== 'arm64'}}",method: "notify",@@ -44,53 +14,21 @@ module.exports = {},next: null},-- // ---- Persistent storage via fs.link (Y1.004+) -------------------------- // Pinokio's fs.link maps these directories to a virtual drive that- // lives OUTSIDE the panel install dir, so a Reset (which deletes- // and re-clones the install) leaves the heavy assets intact. After- // Reset → Install, fs.link re-creates the symlinks back into the- // fresh clone and the drive is rediscovered automatically.- //- // What's in the drive:- // mlx_models/ LTX 2.3 weights (~36 GB), Gemma encoder, LoRAs- // mlx_outputs/ generated videos- // panel_uploads/ user-uploaded reference images- // state/ panel_settings.json, panel_queue.json, panel_hidden.json- //- // What's NOT linked:- // ltx-2-mlx/env/ — venv has historically been buggy under fs.link- // (Python-version-restricted, pip mismatches);- // rebuilds in ~5 min anyway. Models are the- // expensive thing to lose, not the venv.- //- // First-run merge: if real folders already exist with content (e.g.- // an upgrade from Y1.003-), fs.link merges them INTO the drive- // before replacing them with symlinks. Idempotent on repeat runs.{method: "fs.link",params: {drive: {- mlx_models: "mlx_models",- mlx_outputs: "mlx_outputs",+ mlx_models: "mlx_models",+ mlx_outputs: "mlx_outputs",panel_uploads: "panel_uploads",- state: "state"+ state: "state"}}},-- // ---- Size, time and disk, BEFORE anything big (4.20) -------------------- // Say what is coming, then check the disk can hold it. The numbers in this- // notify are the install plan's own (install_plan.py over- // required_files.json -> install); test_install_deferred.py fails the- // build when they drift. The preflight runs after fs.link on purpose: it- // measures the drive mlx_models/ really lands on, which fs.link may have- // put on another volume. It stops the install (exit 1) only when the free- // space is KNOWN to be short, and says by how much.{method: "notify",params: {- html: "<b>Installing Phosphene.</b> About <b>27.5 GB</b> downloads before you can click Start: <b>~37 min at 100 Mbps</b>, ~12 min at 300 Mbps, ~4 min at 1 Gbps, plus a few minutes to set up Python. Needs about <b>32.5 GB free</b> - the next step checks.<br><br>After Start, <b>10.7 GB</b> more (what Enhance and the Storyboard planner run on, and the Upscale & Face Fix, Control, Ingredients and Colorize adapters) downloads in the background inside the panel while you work. Everything resumes if interrupted."+ html: "<b>Installing Phosphene.</b> The app opens after Python and its engine packages are ready, usually in a few minutes. <b>No models download before Start.</b> Setup needs about <b>18.0 GB free</b>, including 15 GB kept free for your work.<br><br>Choose what to make inside the app. Each feature shows its model size before you download it. Interrupted downloads resume."}},{@@ -99,43 +37,23 @@ module.exports = {message: "bash scripts/pinokio/install_preflight.sh"}},-- // ---- Clone ltx-2-mlx (skip if already cloned) -------------------------- // Re-running install when the clone exists used to fail with- // "destination path 'ltx-2-mlx' already exists and is not an empty- // directory", aborting the whole install. Guard with `when:` so the- // step is a no-op on Resume Install.{when: "{{!exists('ltx-2-mlx/.git')}}",method: "shell.run",params: {- message: ["git clone https://github.com/dgrauet/ltx-2-mlx.git ltx-2-mlx"]+ message: [+ "git clone https://github.com/dgrauet/ltx-2-mlx.git ltx-2-mlx"+ ]}},-- // ---- STOP LOUDLY if that clone did not land ---------------------------- // Everything below this point assumes ltx-2-mlx/ exists: the version pin- // runs with `path: "ltx-2-mlx"`, the venv is built inside it, every pip- // step targets it. When the clone fails — no network, a VPN/proxy, GitHub- // unreachable, a full disk — none of those steps abort the run. Each one- // just spawns a shell into a directory that isn't there, prints nothing- // useful, and the install marches on for another dozen steps before dying- // for a reason that has long since scrolled off screen.- //- // That silence is what made the v3.5.0 restart loop unreadable: the- // console filled with anonymous "Starting Shell / Terminated Shell" pairs- // (Pinokio gives every command in a `message` array its own shell) and the- // single line that explained anything was thousands of lines up. Fail- // here, name the cause, and stop.{when: "{{!exists('ltx-2-mlx/.git')}}",method: "notify",params: {- html: "<b>Install stopped: the video engine could not be downloaded.</b><br>Phosphene needs to download <code>github.com/dgrauet/ltx-2-mlx</code> and that step did not finish.<br><br>This is almost always a network problem (no connection, a VPN or proxy, or GitHub blocked) or a full disk. Check your connection and free space, then click <b>Install</b> again — anything already downloaded is kept and will not be downloaded twice."+ html: "<b>Install stopped: the video engine could not be downloaded.</b><br>Phosphene needs to download <code>github.com/dgrauet/ltx-2-mlx</code> and that step did not finish.<br><br>This is almost always a network problem (no connection, a VPN or proxy, or GitHub blocked) or a full disk. Check your connection and free space, then click <b>Install</b> again. Anything already downloaded is kept and will not be downloaded twice."},next: null},-// ---- ltx-2-mlx version: PIN to v0.14.19 (2026-08-11 catch-up). dgrauet asked on// 2026-05-12 to lock onto a tag because he pushes breaking changes// upstream to sync with the official Lightricks repo. Without a@@ -245,24 +163,6 @@ module.exports = {message: "bash scripts/pinokio/ltx_checkout.sh"}},-- // ---- Force Python 3.11 venv (SHIP-BLOCKER fix) ------------------------- // Pinokio's `venv: "env"` shortcut creates a venv using whatever python is- // on `conda activate base` — on machines where conda's base env is Python- // 3.10 (the current macOS bundle reality), that venv has no python3.11 and- // the MLX packages refuse to install ("ltx-core-mlx depends on- // Python>=3.11"). Worse, that error doesn't abort the install — Pinokio- // happily downloads 35 GB of weights into a broken venv. So we create the- // venv with `uv venv --python 3.11` before any pip step.- //- // 3.8.3 — THIS IS THE STEP THAT HUNG PINOKIO (#56, and #50 reopened).- // It was a "\n"-joined STRING, which kernel/shells.js launch() dispatches- // as ONE write to the pty: 1,417 chars, the exact number @davidaircloud- // measured on 3.8.0. Its source lines were all under 110 chars, so v3.6.2's- // per-line rule reported it clean — the rule was right, the measurement was- // wrong. The body (self-healing venv probe, macOS preflight, diagnostics,- // rebuild) now lives in scripts/pinokio/ltx_venv.sh with its full- // rationale. Gate: scripts/check_pinokio_scripts.js.{method: "shell.run",params: {@@ -270,7 +170,6 @@ module.exports = {message: "bash ../scripts/pinokio/ltx_venv.sh"}},-// ---- Install MLX pipeline packages into the 3.11 venv -----------------// `--python env/bin/python` pins the install to the venv we just made// (avoids any conda-base interference). uv pip install is idempotent —@@ -382,50 +281,14 @@ module.exports = {message: "bash scripts/pinokio/ltx_engine_env.sh"}},-- // ---- Apply patches (idempotent, fails loud on upstream drift) ---------- // Codec → yuv444p crf 0 (lossless), I2V OOM cleanup before VAE decode.- // Patch script exits non-zero if it can't find expected text — that- // surfaces upstream-restructure problems instead of silently shipping- // broken installs to users (deep-review recommendation).- //- // 4.20 - ...in a shell Pinokio actually obeys: Pinokio 8.2 ignores a step's- // exit code and stops only on /error:/i or /errno /i in its OUTPUT, and the- // patch's failure banner has neither. scripts/pinokio/must.sh runs the- // command unchanged and adds a "FATAL error:" line when it exits non-zero.- // (Every script this file dispatches does the same for its own refusals;- // scripts/check_pinokio_scripts.js fails the build for a call that cannot.){method: "shell.run",params: {- message: ["bash scripts/pinokio/must.sh 'The video codec patch did not apply - click Install again; if it repeats, report the lines above' ./ltx-2-mlx/env/bin/python3.11 patch_ltx_codec.py"]+ message: [+ "bash scripts/pinokio/must.sh 'The video codec patch did not apply - click Install again; if it repeats, report the lines above' ./ltx-2-mlx/env/bin/python3.11 patch_ltx_codec.py"+ ]}},-- // ---- Sanity-import the pipeline packages (v2.0.2+) --------------------- // SHIP-BLOCKER guard: at least one user (KTDS, May 4) reported a- // "ModuleNotFoundError: No module named 'ltx_pipelines_mlx'" after a- // green Pinokio install — the upstream pip step had silently failed- // mid-install but the patch script's i2v target check tolerates a- // missing ltx_pipelines_mlx file (demotes MISSING → ALREADY for that- // specific patch), so the install reported success and the user only- // learned about the breakage when they clicked Generate.- //- // This step imports both packages explicitly. If either is missing- // the Python call exits non-zero, Pinokio marks the install step as- // failed, and the user sees an actionable error instead of a 30 GB- // download into a broken venv. Idempotent — costs ~300ms on a working- // install.- //- // v2.0.5: stripped the print('venv OK: ...') decoration. KTDS (and one- // other Twitter user) hit a SyntaxError on v2.0.4 where the literal- // `OK:` was being mangled out of the Python string by something between- // install.js and the executed shell line — `OK:` got cut from inside- // and `OK` got appended after the closing shell quote, so Python saw- // `...importable')OK` and bailed. The exit code from a successful- // `import` is already the only success signal `shell.run` needs; the- // print was decorative. Keeping the line minimal sidesteps whatever the- // rewriter is doing.{method: "shell.run",params: {@@ -434,133 +297,16 @@ module.exports = {]}},-- // ---- Download Q4 LTX 2.3 (~20 GB, resumable) --------------------------- // `hf download` is the v1+ name (huggingface_hub deprecated `huggingface-cli`).- // Resume + verify is built-in; --local-dir avoids the HF cache store so- // the panel can point at the path directly with no symlink chase.- // On Resume Install with base files already complete, this is a fast- // verify pass (~seconds) — `hf` checks each file's hash and skips.- //- // Y1.024: explicit --include allowlist. dgrauet's Q4 repo hosts multiple- // transformer variants (transformer-distilled, -distilled-1.1, -dev),- // duplicate distilled LoRAs (-384, -384-1.1), and the x1.5/temporal- // upscalers we don't use. Without filters `hf download` grabs the full- // 56 GB tree; the panel only needs ~20 GB. Keep this list in sync with- // required_files.json → repos[q4].download_include.-- // ---- (no transformer.safetensors symlink needed on HEAD — 0.2.0 reads- // split_model.json to resolve transformer-distilled.safetensors.- // Symlink was a workaround for the dcd639e pin we no longer use.) ------ // ---- Gemma 3 is NOT downloaded here any more (4.20) --------------------- // It was the first big download of every install (8.07 GB measured, the- // registry said 6) and nothing RENDERS with it: it is LTX-2.3's text- // encoder and what Enhance and the Storyboard planner run on. It is- // install.after_start now - the panel fetches it in the background after- // the first boot, and Enhance / the planner say "downloading" (or offer- // Download now) until it lands instead of failing.-- // ---- Download LTX-2.5, the DEFAULT generation (~28 GB) ----------------- // SHIP-BLOCKER, closed 2026-08-12. LTX-2.5 became the default generation- // while nothing in this file downloaded it: `q4_25` and `gemma4_25` name- // `mrbizarro/...` HuggingFace repos that DO NOT EXIST (our HF token is- // read-only, and these packs are our own quantisation of a gated upstream).- // On the machine that built them the default lane worked; on a FRESH- // INSTALL there were no weights at all for the generation the panel boots- // into. That is what these two steps fix.- //- // Not `hf download`: the packs are mirrored as assets on a release of the- // public repo, the same lane the sample-character LoRA takes. Files over- // GitHub's 2 GiB asset cap are published as 1.9 GB shards;- // scripts/fetch_pack_release.py downloads them, checks each shard's- // sha256, reassembles, and only renames a file into place once the- // whole-file sha256 matches the published manifest. It is resumable and- // idempotent, so Resume Install re-runs it for the price of a read pass- // and re-downloads only what is actually missing.- //- // Both packs are REQUIRED, not optional. 2.5 conditions on its own Gemma 4- // fine-tune and cannot use the Gemma 3 encoder above — the mismatch does- // not raise, it silently encodes wrongly — so the two are fetched together- // and the install stops if either fails, instead of marching on to a panel- // that cannot render.- //- // 3.8.3: body moved to scripts/pinokio/ltx25_weights.sh. It was a- // "\n"-joined string — ONE 748-char dispatch, not the short lines the old- // note here claimed, because that is not what Pinokio writes to the pty.- {- method: "notify",- params: {- html: "<b>Downloading LTX-2.5 (27.5 GB)…</b><br>The engine and its text encoder — this is what the panel renders with, and the last big download before Start. Resumable: if this stops, run Install again and it picks up where it left off.<br><br><b>LTX-2.3 is not downloaded</b> — it is only needed to TRAIN a character, and the panel offers it in Settings → Models the moment you want it."- }- },- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/ltx25_weights.sh"- }- },-- // ---- Image-engine pack (mflux: Ideogram 4 + Qwen-Edit) ----------------- // 2026-06-13: Ideogram 4 + the visual text-placement editor are headline- // features now, so the mflux image-engine runner ships by default instead- // of only behind the optional "Install Qwen-Image-Edit" action. (Reported- // by cocktailpeanut: token saved + regions drawn but Generate stayed- // disabled because mflux — and thus mflux-generate-ideogram4 — was absent.)- // Safe to bundle: install.js already pins huggingface-hub to a range mflux- // requires, and mflux lives in the same venv as the LTX stack. BEST-EFFORT —- // a pip hiccup must not fail the core (video) install; the panel surfaces a- // one-click "Reinstall image engines" path if it didn't land. Two-step- // (with-deps then --no-deps) mirrors install_qwen.js so transitive deps- // resolve, then the version is locked + the FBCache patch applied.- //- // 3.8.3: body moved to scripts/pinokio/mflux_pack.sh (529-char dispatch).- // update.js keeps its own near-identical copy inline at 498 — under the- // ceiling, and deliberately left alone rather than merged here in a hotfix.{method: "shell.run",params: {message: "bash scripts/pinokio/mflux_pack.sh"}},-- // ---- Vocal separation for Lip-sync (~15 MB + 80 MB weights) ------------ // "Listen to the voice only" is ON by default in the Lip-sync form, and- // until 4.17 nothing installed what it needs, so every render asked for- // the voice and got the full mix. demucs goes into the engine venv with- // torch pinned to the copy the image pack above just installed; the- // htdemucs weights land in mlx_models/demucs. BEST-EFFORT: a hiccup must- // not fail the video install — the Lip-sync form offers the same step.- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/a2v_stems_deps.sh ./ltx-2-mlx || echo 'WARN: vocal separation did not install - video works; the Lip-sync form offers Install.'"- }- },-- // ---- Queue the extras for the panel (4.20) ------------------------------- // The three IC-LoRA fetches that stood here (Colorize 0.33 GB, Ingredients- // 1.31 GB, Control 0.65 GB - used by roughly 1-6% of renderers) are- // install.after_start now, with Gemma 3 and the Upscale & Face Fix adapter.- // This step writes state/install_deferred.json naming whichever of them is- // not on disk; the panel downloads them in the background after the first- // boot, one at a time, never taking the drive below 10 GB free. The marker- // is the ONLY trigger: Update never writes one, so an existing install is- // never handed a download it did not ask for. Each mode still self-serves- // on first use (and Settings -> Models offers every pack) if a background- // fetch has not landed. Never fails the install.- {- method: "shell.run",- params: {- message: "./ltx-2-mlx/env/bin/python3.11 install_plan.py defer || echo 'WARN: could not queue the extras - Settings -> Models offers each one.'"- }- },-- // ---- Done -------------------------------------------------------------{method: "notify",params: {- html: "<b>Phosphene is ready.</b> Click <b>Start</b>, then <b>Open Panel</b> - you can render right away.<br>The extras (Enhance and the Storyboard planner, plus the Upscale & Face Fix, Control, Ingredients and Colorize adapters) download in the background inside the panel; it shows their progress and says when each one is ready."+ html: "<b>Phosphene is ready.</b> Click <b>Start</b>, then <b>Open Panel</b>. Choose video, images or songs inside the app. Models download only when you ask for them."}}]diff --git a/install_music.js b/install_music.jsindex fe1b2c8..aaef6d8 100644--- a/install_music.js+++ b/install_music.js@@ -8,7 +8,7 @@ module.exports = {requires: { bundle: "ai" },run: [{ method: "notify", params: {- html: "<b>Installing YuE2 (the music engine, ~11 GB).</b><br>Writes a full song — vocals, arrangement and all — from lyrics and a style description, and sits beside LTX and Hailuo H3 as a peer. Needs a 24 GB+ Apple Silicon Mac. Resumable if interrupted."+ html: "<b>Installing YuE2 (the music engine, ~11 GB).</b><br>Writes a full song — vocals, arrangement and all — from lyrics and a style description, and sits beside LTX and Hailuo H3 as a peer. Needs a 16 GB+ Apple Silicon Mac. Resumable if interrupted."} },// Pinokio 8.2 ignores a step's exit code and stops only on /error:/i or// /errno /i in its output: every script here (and music_fetch.py, in itsdiff --git a/install_plan.py b/install_plan.pyindex 5460a45..9bb67f1 100644--- a/install_plan.py+++ b/install_plan.py@@ -1,31 +1,10 @@-"""What a fresh install downloads before Start, what it leaves for later, and-whether this Mac has the room. Stdlib only.--WHY THIS EXISTS (4.20). Until 4.20, install.js downloaded every weight pack-(~38 GB: the LTX-2.5 engine and its text encoder, Gemma 3 for Enhance and the-Storyboard planner, four IC-LoRAs) before Start appeared. On a 100 Mbps line-that is close to an hour of a scrolling terminal, with no size, no time and no-disk check up front - and the fleet says about 4 in 5 Pinokio install starts-never reach a first panel boot. Now:-- * `before_start` (required_files.json -> install) is all install.js fetches:- what a first render needs, ~27.5 GB.- * `after_start` is fetched by the panel in the background after the first- boot (mlx_ltx_panel.py, deferred_fetch_*), resumable, one pack at a time.- * install.js runs `preflight` FIRST: needed GB against free GB, in plain- words, and it stops in second one instead of minute forty when the disk- cannot hold the download.--Two callers, one module:- * install.js, before the engine venv exists, under Pinokio's conda Python- (3.10): `python3 install_plan.py preflight` and, at the end,- `install_plan.py defer`. Keep this file importable on 3.8+.- * the panel imports it for the marker and the disk numbers.--The marker (`<state>/install_deferred.json`) is the ONLY thing that makes the-panel download in the background. install.js writes it; Update never does. So-an existing install that updates behaves exactly as before: nothing is-fetched, nothing removed.+"""Runtime-only install preflight and persistent, requested model queues.++The registry's before_start and after_start lists are empty: opening the app+never opts into model downloads. A feature request writes the queue; restart+resumes that request. Legacy install.js markers are retained but ignored.+The compatibility `defer` command never adds models to a queue.+Stdlib only, so Pinokio can run the preflight before creating the venv."""from __future__ import annotations@@ -123,7 +102,7 @@ def remaining_bytes(root: Path, repo: dict, min_b: int = 1024) -> int:Only the pack's DECLARED files count as present, so three IC-LoRAs sharingone directory never credit each other. Partial downloads in a downloader's- own cache are not counted - the estimate errs toward asking for more room.+ own local staging cache count toward resumable progress."""if not repo_missing(root, repo, min_b):return 0@@ -135,7 +114,13 @@ def remaining_bytes(root: Path, repo: dict, min_b: int = 1024) -> int:# The mirror fetcher appends shards to `<name>.partial` and resumes# from it, so a half-downloaded file's bytes are bytes NOT to fetch# again (Codex, ov-install: Resume was asked for the whole file).- for cand in (base / name, base / (name + ".partial")):+ rel = Path(name)+ # Hugging Face stages local-dir files beside their download metadata.+ # Count that resumable file too, or a multi-GB transfer reads as 0 GB.+ cache = base / ".cache" / "huggingface" / "download" / rel.parent+ candidates = [base / name, base / (name + ".partial")]+ candidates.extend(cache.glob(rel.name + ".*.incomplete"))+ for cand in candidates:try:n = max(n, cand.stat().st_size)except OSError:@@ -154,13 +139,13 @@ def peak_overhead(repo: dict) -> int:return SHARD_BYTES if (repo.get("mirror") or {}).get("kind") == "github-release" else 0-def models_volume_probe(root: Path) -> Path:+def models_volume_probe(root: Path, *, models_dir: Path | None = None) -> Path:"""The nearest existing directory on the volume the weights land on.mlx_models/ is an fs.link symlink into Pinokio's drive on a real install,which may sit on another volume than the app folder - measure THAT one."""- p = Path(root) / "mlx_models"+ p = Path(models_dir) if models_dir is not None else Path(root) / "mlx_models"try:p = p.resolve()except OSError:@@ -170,9 +155,9 @@ def models_volume_probe(root: Path) -> Path:return p-def free_bytes(root: Path) -> int | None:+def free_bytes(root: Path, *, models_dir: Path | None = None) -> int | None:try:- return int(shutil.disk_usage(str(models_volume_probe(root))).free)+ return int(shutil.disk_usage(str(models_volume_probe(root, models_dir=models_dir))).free)except OSError:return None@@ -257,7 +242,9 @@ def preflight_report(p: dict) -> tuple[int, list]:names_before = ", ".join(f"{r['name']} {fmt_gb(r['size'])}" for r in p["before"])names_after = ", ".join(r["name"] for r in p["after"])lines = [bar, "PHOSPHENE INSTALL - what downloads, how long, how much room"]- if not p["before_left"]:+ if not p["before"]:+ lines.append("Before Start: no model downloads. Choose a feature inside the app.")+ elif not p["before_left"]:lines.append(f"Before Start: already on disk ({names_before})")elif p["before_left"] < p["before_total"]:lines.append(f"Before Start: {fmt_gb(p['before_left'])} still to download "@@ -349,6 +336,22 @@ def write_marker(sdir: Path, data: dict) -> None:raise+def request_packs(sdir: Path, keys: list) -> list:+ """Persist only explicit choices. Old automatic queues are not consent."""+ with MARKER_LOCK:+ old = read_marker(sdir) or {}+ pending = old.get("pending", []) if old.get("created_by") == "feature-request" else []+ pending = list(dict.fromkeys(pending + keys))+ write_marker(sdir, {"schema": 1, "created_by": "feature-request",+ "created_ts": time.time(), "pending": pending})+ return pending+++def stop_requested_packs(sdir: Path) -> None:+ with MARKER_LOCK:+ write_marker(sdir, {"schema": 1, "created_by": "feature-request", "pending": []})++def drop_from_marker(sdir: Path, key: str) -> list:"""Remove one key; the marker file goes when nothing is left. Returns pending."""with MARKER_LOCK:@@ -378,41 +381,12 @@ def prioritize_in_marker(sdir: Path, key: str) -> bool:def defer(root: Path | str | None = None, sdir: Path | None = None) -> list:- """install.js's last step: mark the after_start packs that are not on disk.+ """Compatibility for an older install.js already loaded by Pinokio.- Merges with an existing marker (a second Install keeps what the first one- queued) and keeps the registry's order.+ No automatic downloads, and no changes to a queue the user requested."""- root = Path(root) if root else HERE- reg = load_registry(root)- blk = install_block(reg)- by_key = repos_by_key(reg)- mb = min_bytes(reg)- sdir = Path(sdir) if sdir else state_dir(root)- old = read_marker(sdir) or {}- # Union with what an earlier Install queued, re-checked against the disk:- # a pack that landed since (a click, an Update) is not queued again.- wanted = set(old.get("pending") or []) | set(blk["after_start"])- pending = [k for k in blk["after_start"]- if k in wanted and k in by_key and repo_missing(root, by_key[k], mb)]- if not pending:- try:- (sdir / MARKER_NAME).unlink()- except OSError:- pass- return []- try:- version = (root / "VERSION").read_text(encoding="utf-8").strip()- except OSError:- version = ""- write_marker(sdir, {- "schema": 1,- "created_by": "install.js",- "created_ts": old.get("created_ts") or time.time(),- "version": version,- "pending": pending,- })- return pending+ marker = read_marker(Path(sdir) if sdir else state_dir(root)) or {}+ return marker.get("pending", []) if marker.get("created_by") == "feature-request" else []# ---- CLI ---------------------------------------------------------------------@@ -440,16 +414,13 @@ def _main(argv: list) -> int:"background after Start: " + ", ".join(by_key[k].get("name") or kfor k in pending if k in by_key))else:- print("Every optional pack is already on disk - nothing to download after Start.")+ print("Models download when you choose a feature inside Phosphene.")return 0try:p = plan(root)except Exception as exc: # noqa: BLE001 - fail openprint(f"Install preflight skipped - could not read the install plan ({exc}).")return 0- if not p["before"]:- print("Install preflight skipped - required_files.json has no install plan.")- return 0if a.command == "show":print(json.dumps(p, indent=2))return 0diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.pyindex 18f0b60..a2ba749 100644--- a/mlx_ltx_panel.py+++ b/mlx_ltx_panel.py@@ -32,6 +32,7 @@ import signalimport structimport subprocessimport sys+import tempfileimport threadingimport timeimport unicodedata@@ -41,6 +42,7 @@ from email.message import Message as _EmailMessagefrom email.parser import BytesParserfrom http.server import BaseHTTPRequestHandler, ThreadingHTTPServerfrom pathlib import Path+from scripts import model_path_guardimport urllib.errorimport urllib.parseimport urllib.request@@ -83,12 +85,20 @@ import install_plan# internal caption schema. Faithful Python port of the panel's JS canvas# serializer (ideoBuildCaption / ideoSynthDesc / ideoRectToBbox).import ideogram_caption+import model_capabilitiesimport model_licences# Pinokio or the Phosphene Mac app (PHOSPHENE_DISTRIBUTION / _EDITION). Every# user-facing sentence that names Pinokio picks its Mac-app variant through# distribution.say(); unset (Pinokio) keeps every sentence as it was.import distribution as _distimport agent_discovery+# Remote Control (Pro): the Mac side of the iPhone app lives in the PRIVATE Pro tree and ships+# inside the Pro pack as pro_remote.py. This studio only offers the left-menu page and the+# routes behind it; with no pro_remote module next to it, Remote Control is "comes with Pro".+try:+ import pro_remote+except ImportError:+ pro_remote = None# Storyboard — the layer ABOVE the video modes: one concept in, a film's worth# of shots out. `storyboard` is the spine (schema, validation, scheduling,@@ -102,6 +112,7 @@ import storyboard_planner# failures (lines sung, invented rings, dialogue nouns on screen, ellipses).# Pure stdlib; applied in run_h3_job_inner right before the runner argv.import h3_prompt_guards+import clip_title# --- Paths -------------------------------------------------------------------# Everything below is overridable via env vars so the panel can be cloned and@@ -1581,7 +1592,9 @@ def _settings_defaults() -> dict:# film's own quiet sound under every cut it invents, so cuts do not# drop to silence. On by default (owner, 2026-09-17); one switch off,# in the Editor's Room tone card.- "room_tone_auto": True,+ # OFF unless the user turns it on (owner, 2 Nov: the automatic bed "is+ # really bad"). A cut made by an agent or by hand never gets one.+ "room_tone_auto": False,# Memory/speed policy. Defaults to Auto so 5 s clips keep the fast# full-decode path while long/high-pressure renders stay protected.# Live preview. On by default: it costs ~0.2 % of the render,@@ -2054,7 +2067,7 @@ def get_settings_public() -> dict:"spicy_mode": bool(s.get("spicy_mode", False)) and not _dist.is_mac_app(),"live_preview": str(s.get("live_preview", "on")),"notify_done": bool(s.get("notify_done", True)),- "room_tone_auto": bool(s.get("room_tone_auto", True)),+ "room_tone_auto": bool(s.get("room_tone_auto", False)),# Push: can the panel send at all, and how many browsers listen."push_available": push_available(),"push_subscriptions": len(_push_subs()),@@ -2379,7 +2392,8 @@ CURATED_LORAS: dict[str, dict] = {def _safe_loras_dir() -> Path:"""Ensure mlx_models/loras/ exists. Idempotent."""- LORAS_DIR.mkdir(parents=True, exist_ok=True)+ model_path_guard.prepare_directory(MODELS_DIR, LORAS_DIR,+ allow_new=MODELS_DIR == _DEFAULT_MODELS_DIR and not os.environ.get("LTX_MODELS_DIR"))return LORAS_DIR@@ -5693,6 +5707,13 @@ def parse_loras_from_form(form: dict) -> list[dict]:return out+def model_path_problem(repo=None, *, write=False):+ target = repo_dir(repo) if repo else MODELS_DIR+ return model_path_guard.problem(+ MODELS_DIR, target, write=write,+ allow_new=MODELS_DIR == _DEFAULT_MODELS_DIR and not os.environ.get("LTX_MODELS_DIR"))++def _repos() -> list[dict]:"""All repo entries from required_files.json (list, in order)."""return list(_REQUIRED.get("repos", []))@@ -5899,6 +5920,8 @@ def _repo_missing(repo: dict) -> list[str]:"""Files missing or zero-byte for one repo, expressed as bare filenames(relative to the repo's local_dir). Bare names are friendlier in the UIthan full paths."""+ if model_path_problem(repo):+ return list(repo.get("files", []))return pack_files_missing(repo_dir(repo), repo)@@ -6163,6 +6186,8 @@ def _repo_effective_missing(repo: dict) -> list[str]:Now both call this, so the blocker card and the Models modal cannot contradict eachother again — the card is a rendering of the modal's answer, not a second opinion."""+ if model_path_problem(repo):+ return list(repo.get("files", []))quant = _quant_for_repo_key(repo.get("key"))local_missing = pack_missing_files(quant) if quant else _repo_missing(repo)if not local_missing:@@ -6574,6 +6599,9 @@ def ltx_pack_preflight(quant: str, feature: str,truth: the canonical layout, a registered pack, and the files absentfrom BOTH the pack directory and the HF cache. Anything else returnssilently and the job proceeds exactly as it did before."""+ reason = model_path_problem(pack_repo(quant, version_id))+ if reason:+ raise RuntimeError(reason)if not _canonical_layout():returnrepo = pack_repo(quant, version_id)@@ -6673,7 +6701,12 @@ def repo_status_list() -> list[dict]:total = len(r.get("files", []))local_present = total - len(local_missing)- cache_missing = _repo_missing_in_cache(r)+ path_error = model_path_problem(r)+ write_error = model_path_problem(r, write=True)+ if path_error:+ local_missing = list(r.get("files", []))+ local_present = 0+ cache_missing = None if path_error else _repo_missing_in_cache(r)cache_present = (total - len(cache_missing)) if cache_missing is not None else 0# Pick the layer with more files present — ties go to local_dir@@ -6704,6 +6737,8 @@ def repo_status_list() -> list[dict]:"present_files": present,"missing_files": missing,"complete": not missing,+ "availability": "unavailable" if path_error else ("read_only" if write_error else "available"),+ "path_message": path_error or write_error,# Does this row's download need the `hf` binary?## The 2.3 packs come from HuggingFace via `hf download`; the 2.5@@ -6945,19 +6980,37 @@ def storage_rows() -> list[dict]:return rows+def storage_inventory_args():+ repos = _repos()+ known = [repo_dir(r) for r in repos] + [H3_MODELS, MUSIC_MODELS]+ protected = [OUTPUT, UPLOADS, LORAS_DIR, MODELS_DIR / "characters",+ MODELS_DIR / "styles", MODELS_DIR / "yue2-loras"]+ required = [repo_dir(r) / f for r in repos for f in r.get("files", [])]+ return {"known": known, "protected": protected, "required": required,+ "extra": known}++def storage_payload() -> dict:- rows = storage_rows()- reclaimable = sum(r["bytes"] for r in rows if r["removable"])- try:- free = shutil.disk_usage(OUTPUT).free+ import model_storage+ reason = model_path_problem()+ write_reason = model_path_problem(write=True)+ result = (dict(rows=[], reclaimable=0, confirmation="") if reason else+ model_storage.inventory(MODELS_DIR, **storage_inventory_args()))+ result.update(availability="unavailable" if reason else ("read_only" if write_reason else "available"),+ message=reason or write_reason)+ if write_reason:+ result.update(reclaimable=0, confirmation="")+ for row in result["rows"]:+ row["size"] = _fmt_gb(row["bytes"])+ row["note"] = row["status"]+ if row["superseded_bytes"]:+ row["note"] += " (" + _fmt_gb(row["superseded_bytes"]) + " removable)"+ result["reclaimable_label"] = _fmt_gb(result["reclaimable"])+ try:+ result["free_label"] = _fmt_gb(shutil.disk_usage(MODELS_DIR).free)except OSError:- free = 0- return {- "rows": rows,- "reclaimable": reclaimable,- "reclaimable_label": _fmt_gb(reclaimable),- "free_label": _fmt_gb(free),- }+ result["free_label"] = "Unknown"+ return resultdef _repo_generation(repo_key: str | None) -> str | None:@@ -7335,6 +7388,10 @@ def _model_integrity(force: bool = False) -> dict:Returns {"ok": bool, "bad": [{"repo","file","reason"}], "checked": int,"scanned_ts": float}."""+ unavailable = [model_path_problem(r) for r in _repos()]+ if any(unavailable):+ return {"ok": False, "bad": [], "checked": 0, "scanned_ts": time.time(),+ "availability": "unavailable", "message": next(x for x in unavailable if x)}now = time.time()with _INTEGRITY_LOCK:cached = _INTEGRITY_CACHE["data"]@@ -7812,10 +7869,23 @@ def _download_thread(repo: dict) -> str:is a second downloader that drifts from this one."""repo_id = repo["repo_id"]target = repo_dir(repo)- target.mkdir(parents=True, exist_ok=True)+ reason = model_path_problem(repo, write=True)+ if reason:+ with DOWNLOAD_LOCK:+ DOWNLOAD.update(active=False, key=None, repo_id=None, proc=None, pgid=None,+ background=False, error=reason, last_line="", started_ts=None)+ return "failed"+ try:+ model_path_guard.prepare_directory(MODELS_DIR, target,+ allow_new=MODELS_DIR == _DEFAULT_MODELS_DIR and not os.environ.get("LTX_MODELS_DIR"))+ except OSError:+ with DOWNLOAD_LOCK:+ DOWNLOAD.update(active=False, error=model_path_guard.REMEDY)+ return "failed"mirror = repo.get("mirror") or {}is_release_mirror = mirror.get("kind") == "github-release"env = os.environ.copy()+ env["LTX_MODELS_DIR"] = str(MODELS_DIR)if is_release_mirror:# sys.executable, not HF_BIN: the fetcher is stdlib-only and runs under@@ -7824,7 +7894,8 @@ def _download_thread(repo: dict) -> str:# reassembled sha256 matches the published manifest.dl_tag = "mirror"cmd = [sys.executable, str(ROOT / "scripts" / "fetch_pack_release.py"),- "--repo-key", str(repo.get("key") or ""), "--root", str(ROOT)]+ "--repo-key", str(repo.get("key") or ""), "--root", str(ROOT),+ "--dest", str(target)]push(f"[mirror] {repo.get('key')} → {target} (~{repo.get('size_gb','?')} GB) "f"from the {mirror.get('release_repo')} release "f"{mirror.get('tag')} — sharded, sha256-verified, resumable")@@ -7867,6 +7938,9 @@ def _download_thread(repo: dict) -> str:dl_label = (f"{repo.get('key')} ({mirror.get('tag')})"if is_release_mirror else repo_id)+ failure_lines = []+ with DOWNLOAD_LOCK:+ DOWNLOAD["error"] = ""max_attempts = 3backoff_sec = 5# 4.20: what happened, for the background fetcher: "ok" | "cancelled" |@@ -7882,6 +7956,10 @@ def _download_thread(repo: dict) -> str:breakif attempt > 1:push(f"[{dl_tag}] {dl_label} attempt {attempt}/{max_attempts} — resuming from where the previous attempt stopped.")+ reason = model_path_problem(repo, write=True)+ if reason:+ failure_lines.append(reason)+ breaktry:proc = subprocess.Popen(cmd,@@ -7911,6 +7989,7 @@ def _download_thread(repo: dict) -> str:line = buf.strip()buf = ""if line:+ failure_lines = (failure_lines + [line])[-12:]with DOWNLOAD_LOCK:DOWNLOAD["last_line"] = line[:200]push(f"[{dl_tag}:{repo['key']}] {line[:300]}")@@ -7954,6 +8033,8 @@ def _download_thread(repo: dict) -> str:push(f"[{dl_tag}] {dl_label} crashed: {exc}")finally:with DOWNLOAD_LOCK:+ if outcome == "failed":+ DOWNLOAD["error"] = model_download_failure_message(" ".join(failure_lines))DOWNLOAD["active"] = FalseDOWNLOAD["key"] = NoneDOWNLOAD["repo_id"] = None@@ -7966,6 +8047,22 @@ def _download_thread(repo: dict) -> str:return outcome+def model_download_failure_message(detail: str) -> str:+ """Keep a useful remedy after the downloader's live log disappears."""+ detail = detail.lower()+ if "same path" in detail:+ return "Model folder unavailable for download. " + model_path_guard.REMEDY+ if any(word in detail for word in ("sha256 mismatch", "assembled sha256", "hash mismatch")):+ return ("The download failed its safety check. Try again to fetch a clean copy. "+ "Other completed files are kept.")+ if "no space" in detail or "disk full" in detail:+ return "The disk is full. Free some space, then try again. Downloaded parts are kept."+ if any(word in detail for word in ("urlopen", "http error", "timed out", "connection", "network", "manifest at")):+ return ("The download server could not be reached. Check your connection, "+ "then try again. Downloaded parts are kept.")+ return "The download did not finish. Try again to resume. Downloaded parts are kept."++def _kill_active_download() -> None:"""Best-effort kill the running hf process group. Called by atexit andby the /models/cancel endpoint."""@@ -7987,23 +8084,14 @@ def _kill_active_download() -> None:atexit.register(_kill_active_download)-# ---- Background downloads after the first boot (4.20) -------------------------# install.js used to download ~38 GB before Start appeared. Since 4.20 it stops-# at what a first render needs (required_files.json -> install.before_start,-# ~27.5 GB) and writes state/install_deferred.json naming the rest-# (install.after_start: Gemma 3 for Enhance and the Storyboard planner, the-# Upscale & Face Fix adapter, the three 2.3 IC-LoRAs). This fetcher works-# through that list after the panel boots:-# * one pack at a time, through the SAME slot and downloader as a click on-# Download (_download_thread), so progress, Cancel and resume are the ones-# the Models page already has;-# * never taking the models drive below install.background_floor_gb free --# renders need room too; it waits and re-checks instead;-# * a pack the user cancels is dropped from the list (they said no; the-# Models page still offers it); a failure backs off and retries;-# * ONLY when the marker exists. Update never writes one, so an existing-# install that updates is never handed a download it did not ask for.+# ---- Explicit model download queue ------------------------------------------+# A feature request queues its packs in state/install_deferred.json. One worker+# uses the shared download slot, resumes across restarts, and retries failures.+# Stop clears the requested queue and keeps partial files for a later retry.+# Legacy install.js queues never start downloads on their own.DEFERRED_LOCK = threading.Lock()+DEFERRED_RUN_LOCK = threading.Lock()+DEFERRED_WAKE = threading.Event()DEFERRED: dict = {"state": "idle", # idle | starting | downloading | waiting | waiting_disk | retry_wait | failed | done"key": None, # the pack being worked on@@ -8029,14 +8117,76 @@ def _deferred_repo(key: str) -> dict | None:def deferred_marker_keys() -> list[str]:- """The keys install.js queued that the registry still knows, in order."""+ """Explicitly requested keys that the registry still knows, in order."""m = install_plan.read_marker(STATE_DIR)- if not m:+ if not m or m.get("created_by") != "feature-request":return []known = {r.get("key") for r in _repos()}return [k for k in m["pending"] if k in known]+def model_download_free_bytes():+ return install_plan.free_bytes(ROOT, models_dir=MODELS_DIR)+++def model_download_room(repos: list[dict]) -> str:+ """Refuse before starting, including the mirror's temporary shard."""+ for repo in repos:+ reason = model_path_problem(repo, write=True)+ if reason:+ return reason+ need = sum(install_plan.remaining_bytes(ROOT, _plan_repo(r), _MIN_FILE_BYTES)+ for r in repos)+ need += max((install_plan.peak_overhead(r) for r in repos), default=0)+ need += _deferred_floor_bytes()+ free = model_download_free_bytes()+ if free is None:+ return "Could not check free disk space. Check the models drive and try again."+ if free < need:+ return (f"This download needs {install_plan.fmt_gb(need)} free, including "+ f"15 GB kept free for your work. This drive has {install_plan.fmt_gb(free)}. "+ "Free some space, then try again. Existing downloads are kept.")+ return ""+++def request_video_models() -> tuple[int, dict]:+ """One click requests the active generation's complete first-render set."""+ cap = (_REQUIRED.get("capabilities") or {}).get("render") or {}+ keys = (cap.get("repos_by_version") or {}).get(ACTIVE_MODEL_VERSION, [])+ repos = [_deferred_repo(k) for k in keys]+ if not keys or any(r is None for r in repos):+ return 400, {"error": "The video model is not listed. Open Models to choose a model."}+ for repo in repos:+ reason = model_path_problem(repo)+ if reason:+ return 409, {"error": reason}+ repos = [r for r in repos if _deferred_missing(r)]+ for repo in repos:+ reason = model_path_problem(repo, write=True)+ if reason:+ return 409, {"error": reason}+ if any(app_models_owns(r) for r in repos):+ return 409, {"error": "The app is already downloading this model."}+ if repos:+ reason = model_download_room(repos)+ if reason:+ return 507, {"error": reason}+ install_plan.request_packs(STATE_DIR, [r["key"] for r in repos])+ with DEFERRED_LOCK:+ DEFERRED["failures"].clear()+ DEFERRED["retry_at"].clear()+ DEFERRED["last_error"] = ""+ DEFERRED_WAKE.set()+ threading.Thread(target=deferred_fetch_loop, args=(False,), daemon=True).start()+ return 202, {"ok": True, "pending": deferred_pending_keys()}+++def model_download_progress(repo: dict) -> dict:+ total = install_plan.expected_bytes(repo)+ left = install_plan.remaining_bytes(ROOT, _plan_repo(repo), _MIN_FILE_BYTES)+ return {"bytes_done": max(0, total - left), "bytes_total": total}++def _deferred_missing(repo: dict | None) -> bool:"""Missing from THIS install's own folder. Deliberately not the HF-cachefallback _repo_effective_missing() also accepts: Enhance, the planner and@@ -8058,13 +8208,15 @@ def deferred_pack_state(key: str) -> str:"""What the fetcher is doing about ONE pack: downloading | queued |waiting_disk | missing (not queued at all) | ready."""repo = _deferred_repo(key)+ if repo is not None and model_path_problem(repo):+ return "unavailable"if repo is not None and not _deferred_missing(repo):return "ready"with DOWNLOAD_LOCK:if DOWNLOAD["active"] and DOWNLOAD.get("key") == key:return "downloading"if key in deferred_pending_keys():- free = install_plan.free_bytes(ROOT)+ free = model_download_free_bytes()left = (install_plan.remaining_bytes(ROOT, _plan_repo(repo), _MIN_FILE_BYTES)+ install_plan.peak_overhead(repo or {}))if free is not None and free < left + _deferred_floor_bytes():@@ -8116,16 +8268,24 @@ def deferred_fetch_step() -> float | None:candidates = [k for k in live if fails.get(k, 0) < DEFERRED_MAX_FAILURES]if not candidates:_deferred_set(state="failed", key=None,- message="The background downloads kept failing - Settings -> Models "- "offers each one, and they resume where they stopped.")+ message=DEFERRED.get("last_error") or "The download did not finish. Try again to resume.")return Noneready_now = [k for k in candidates if retry_at.get(k, 0) <= now]if not ready_now:_deferred_set(state="retry_wait", key=None,- message="A background download failed; retrying in a few minutes.")+ message=DEFERRED.get("last_error") or "The download did not finish. Try again, or wait for an automatic retry.")return max(5.0, min(retry_at.get(k, now) for k in candidates) - now)- free = install_plan.free_bytes(ROOT)+ for pending_key in ready_now:+ reason = model_path_problem(_deferred_repo(pending_key), write=True)+ if reason:+ _deferred_set(state="waiting_path", key=pending_key, message=reason)+ return DEFERRED_DISK_RECHECK_SEC+ free = model_download_free_bytes()floor = _deferred_floor_bytes()+ if free is None:+ _deferred_set(state="waiting_disk", key=None,+ message="Could not check free disk space. Check the models drive; downloads will resume when it is available.")+ return DEFERRED_DISK_RECHECK_SEC# The first pack in order that FITS. A big one that does not (Gemma 3 on a# nearly full 256 GB Mac) must not hold back the small ones behind it.key = None@@ -8157,6 +8317,9 @@ def deferred_fetch_step() -> float | None:"open it again to rerun setup."))return 1.0with DOWNLOAD_LOCK:+ # Stop can clear the queue after selection but before slot acquisition.+ if key not in deferred_marker_keys():+ return 0.0if DOWNLOAD["active"]:busy = Trueelse:@@ -8170,7 +8333,7 @@ def deferred_fetch_step() -> float | None:return DEFERRED_SLOT_WAIT_SEC_deferred_set(state="downloading", key=key, message="")push(f"[background] downloading {repo.get('name') or key} "- f"(~{install_plan.fmt_gb(left)}) - you can render meanwhile.")+ f"(~{install_plan.fmt_gb(left)}) - you can keep exploring the app.")outcome = _download_thread(repo)if not _deferred_missing(repo):install_plan.drop_from_marker(STATE_DIR, key)@@ -8188,36 +8351,50 @@ def deferred_fetch_step() -> float | None:message="Another download is writing this model; waiting for it.")return DEFERRED_SLOT_WAIT_SECif outcome == "cancelled":- install_plan.drop_from_marker(STATE_DIR, key)+ # Stop already cleared the request. A new Retry may have queued this+ # key while the old process was exiting; never erase that new request.push(f"[background] {repo.get('name') or key} skipped - Settings -> Models "f"offers it whenever you want it.")return 1.0with DEFERRED_LOCK:+ DEFERRED["last_error"] = DOWNLOAD.get("error") or model_download_failure_message("")n = DEFERRED["failures"].get(key, 0) + 1DEFERRED["failures"][key] = nDEFERRED["retry_at"][key] = time.time() + DEFERRED_RETRY_SECreturn 1.0-def deferred_fetch_loop() -> None:- """Background thread body. Started at boot only when the marker exists."""- _deferred_set(state="starting", message="")- time.sleep(max(0.0, DEFERRED_START_DELAY_SEC))- while True:- try:- wait = deferred_fetch_step()- except Exception as exc: # noqa: BLE001 - never take the panel down- push(f"[background] download queue error: {exc}")- wait = DEFERRED_RETRY_SEC- if wait is None:- return- time.sleep(wait)+def deferred_fetch_loop(boot: bool = True) -> None:+ """Only one consumer, even when a double click races a resumed queue."""+ if not DEFERRED_RUN_LOCK.acquire(blocking=False):+ return+ try:+ _deferred_set(state="starting", message="")+ if boot:+ DEFERRED_WAKE.wait(max(0.0, DEFERRED_START_DELAY_SEC))+ while True:+ DEFERRED_WAKE.clear()+ try:+ wait = deferred_fetch_step()+ except Exception as exc: # noqa: BLE001+ push(f"[background] download queue problem: {exc}")+ _deferred_set(state="failed", message="Download did not finish. Open Models to retry.")+ return+ if wait is None:+ return+ DEFERRED_WAKE.wait(wait)+ finally:+ DEFERRED_RUN_LOCK.release()+ # A request can arrive while this consumer is leaving its empty queue.+ if DEFERRED_WAKE.is_set() and deferred_pending_keys():+ threading.Thread(target=deferred_fetch_loop, args=(False,), daemon=True).start()def deferred_fetch_enabled() -> bool:if (os.environ.get("LTX_DEFERRED_DOWNLOADS") or "").strip().lower() in ("0", "off", "false", "no"):return False- return bool(deferred_marker_keys())+ marker = install_plan.read_marker(STATE_DIR) or {}+ return marker.get("created_by") == "feature-request" and bool(deferred_marker_keys())def deferred_prioritize(key: str) -> bool:@@ -8240,15 +8417,14 @@ def pack_needed_payload(key: str, feature: str, what: str) -> dict:msg = (f"{feature} needs {what} ({size}), which is queued to download in the "f"background. Click Download now to fetch it first.")elif state == "waiting_disk":- free = install_plan.free_bytes(ROOT) or 0+ free = model_download_free_bytes() or 0floor = _deferred_floor_bytes()left = (install_plan.remaining_bytes(ROOT, _plan_repo(repo), _MIN_FILE_BYTES)+ install_plan.peak_overhead(repo))msg = (f"{feature} needs {what} ({size}). Its background download is paused: "f"Phosphene keeps {install_plan.fmt_gb(floor)} free for your renders and this "f"drive has {install_plan.fmt_gb(free)}. Free up "- f"{install_plan.fmt_gb(max(0, left + floor - free))} and it starts by itself"- f" - or click Download now to fetch it anyway.")+ f"{install_plan.fmt_gb(max(0, left + floor - free))} and it starts by itself.")else:msg = f"{feature} needs {what} ({size}), which is not downloaded yet."return {"ok": False, "error": msg, "needs_pack": key,@@ -8686,6 +8862,8 @@ STATE: dict = {# /stop and the atexit hook kill it by pgid, same contract as train_pgid."h3_pgid": None,"music_pgid": None,+ # Audio → Speech runner (speech_engine / scripts/speech/speech_run.py).+ "speech_pgid": None,}LOCK = threading.RLock()QUEUE_COND = threading.Condition(LOCK)@@ -9375,6 +9553,26 @@ H3_TRISTEP_NOTE = ("Fast: 3 steps — about 4× faster, great for drafts and mos"Turbo is never stacked on it.")# Canvases that offer it, and the ones where it is the default once installed.H3_TRISTEP_QUALITIES = ("draft", "preview", "fast_hd", "standard", "high")++# ---- Clean up sound: re-voice a Fast render's sound (4.20) -----------------+# The speed adapter's SOUND has been reported harsh, thin and echo-like (a+# third-party Mac developer, Oct 2026). The runner's `--revoice-steps` keeps+# the finished picture, switches the adapter off and re-makes only the sound+# with the base model: one full forward stores the keys/values of every row+# that does not change (int8), then each audio step runs the audio rows alone+# (~4.5% of a forward each, measured 1.9 s vs 43 s at Draft on an M4 Max).+# Character LoRAs stay on (a trained voice keeps its voice); only the Fast+# adapter is dropped. Measurements: PM hub review-2026-10-19-h3/H3_WEEK_REPORT.+H3_REVOICE_POINTS = 9 # sigma points -> 8 audio steps+H3_REVOICE_STEP_SHARE = 0.045 # one audio-only step, as a share of a forward+H3_REVOICE_DEFAULT = False # decided by the ear test (see report)+H3_REVOICE_LABEL = "Clean up sound"+# The store holds 2 x rows x 7168 values x 50 blocks at int8 (+ one scale and+# bias per 128): ~0.74 MB per packed row. Peak = the Fast render's own peak+# plus that; offered only where it fits the budget the runner is given.+H3_REVOICE_KV_BYTES_PER_ROW = 2 * 7168 * 50 * (1 + 4 / 128)+H3_REVOICE_PEAK_Q8_GIB = 26.0 # Q8 lane's measured run peak (25.6 GiB)+H3_REVOICE_PEAK_BF16_GIB = 43.0 # bf16 lane (42.2 GiB)H3_TRISTEP_DEFAULT_QUALITIES = H3_TRISTEP_QUALITIES# End-to-end wall clocks for TriStep cells, M4 Max, keyed (quality, length).# Keyed (quality, length, mode). All with the character + vh5tape LoRAs on top@@ -9513,6 +9711,45 @@ H3_FLEX_MEASURED_ETA: dict[tuple[str, str, str], tuple[float, str]] = {("draft", "5s", "t2v"): (5.0, "~5 min"),("high", "5s", "t2v"): (16.3, "~16 min"),}++# ---- H3 Flex Turbo (5.0, Pro, preview) ---------------------------------------+# akhaliq's Pika H3 Flex Turbo LoRA: Pika H3 Flex fused (exact rank concat) with+# LightX2V's MiniMax-H3 Turbo distill, so ONE file renders Flex's motion in four+# forwards. We run the "lite r32" FL2VA file as published (no re-hosting, no+# rebuild): the runner re-orders its fused q/k/v and fc1 halves at load time+# (--lora-qkv-permute --lora-fc1-swap). Sampler: euler, knots 1000,750,500,250,0+# (4 forwards), video shift 6, audio shift 3. Measured on an M4 Max 64 GB, Q8 DiT+# (R&D Lab L4, PM hub today-2026-10-30/l4): High 1024x576 5 s 613-712 s against+# Flex's 928-1003 s on the same seeds (1.4-1.5x), Draft 640x384 5 s 213 s; faces,+# speech (Whisper-identical line) and the rally scene hold. Pro: our own speed-up+# (owner rule: our speed-ups ship in Pro); the gate is h3_flex_turbo_allowed().+# Credit: akhaliq (the fused LoRA), LightX2V (Turbo distill), Pika Labs (Flex),+# MiniMax (H3); weights under the MiniMax H3 Community License.+H3_FLEX_TURBO_REPO = "akhaliq/Pika-H3-Flex-Turbo-LoRA"+H3_FLEX_TURBO_REVISION = "dcacd93a50f714ba1cd61c7ca2cc5f65e9a1ec60"+H3_FLEX_TURBO_SOURCE_FILE = "pika_h3_flex_turbo_4step_fl2va_lite_r32.safetensors"+H3_FLEX_TURBO_URL = ("https://huggingface.co/" + H3_FLEX_TURBO_REPO + "/resolve/"+ + H3_FLEX_TURBO_REVISION + "/" + H3_FLEX_TURBO_SOURCE_FILE)+H3_FLEX_TURBO_SHA256 = "7c60a2ff31f7f56c1f59020c2441fa0532c7b3fd8a510fbd0f806327021f5367"+H3_FLEX_TURBO_BYTES = 310189392+H3_FLEX_TURBO_FILE = "pika_h3_flex_turbo4_fl2va_lite_r32.safetensors"+H3_FLEX_TURBO_KNOTS = (1000, 750, 500, 250, 0)+H3_FLEX_TURBO_STEPS = len(H3_FLEX_TURBO_KNOTS) # knots incl. 0 -> 4 forwards+H3_FLEX_TURBO_FORWARDS = H3_FLEX_TURBO_STEPS - 1+H3_FLEX_TURBO_VIDEO_SHIFT = 6.0+H3_FLEX_TURBO_AUDIO_SHIFT = 3.0+H3_FLEX_TURBO_DOWNLOAD_GB = 0.31+H3_FLEX_TURBO_DISK_NEED_GB = 1.5+H3_FLEX_TURBO_NAME = "H3 Flex Turbo"+H3_FLEX_TURBO_LABEL = "H3 Flex Turbo (preview, Pro) · 4 steps"+H3_FLEX_TURBO_CREDIT = ("H3 Flex Turbo: Pika H3 Flex Turbo LoRA by akhaliq, fusing Pika H3 Flex "+ "(Pika Labs) with LightX2V's MiniMax-H3 Turbo distill, running natively "+ "on Apple Silicon (MLX) in Phosphene. Powered by MiniMax H3. "+ "Weights: MiniMax H3 Community License.")+H3_FLEX_TURBO_MEASURED_ETA: dict[tuple[str, str, str], tuple[float, str]] = {+ ("draft", "5s", "t2v"): (3.6, "~3.5 min"),+ ("high", "5s", "t2v"): (11.0, "~11 min"),+}# Upscale & Face Fix (1 refine step from the clip, ×2) after a 5 s render, by# source canvas. 640×384 → 1280×768 measured 2.5–2.8 min; 1024×576 measured# 8.2–9.9 min (panel history, 2026-09-16/17); 768×448 is interpolated between@@ -10142,6 +10379,7 @@ def _job_fleet_baseline_min(job: dict) -> tuple[str, float] | None:hit = fleet_estimate_range("h3", "t2v", key, cell["frames"],speed="fast" if fast else"flex" if p.get("h3_flex") else+ "flex_turbo" if p.get("h3_flex_turbo") else"v13" if p.get("h3_v13") else "best")else:if str(p.get("schedule_preset") or "").strip().lower() == "fast":@@ -11080,6 +11318,89 @@ def h3_estimate_minutes(w: int, h: int, window_frames: int, windows: int,return (windows * max(0, int(forwards)) * per_fwd + windows * fixed) / 60.0 * _h3_speed_factor(windows)+def h3_memory_budget(total_ram_gb: float | None = None) -> tuple[float, float]:+ """(memory_gb, wired_gb) for THIS Mac, leaving the user room to keep using it.++ THE BUG THIS FIXES. The runner's defaults are `--wired-gb 50` and+ `--memory-gb 58`, and it clamps them with++ memory_bytes = min(memory_gb * GiB, device.memory_size - 1 GiB)++ so on ANY Mac below 59 GB the 58 never binds and the clamp does: MLX is+ allowed everything except ONE gigabyte. Measured across the sizes people+ actually own:++ 32 GB Mac -> limit 31.0 GB, 1.0 GB left for the user+ 36 GB Mac -> limit 35.0 GB, 1.0 GB left+ 48 GB Mac -> limit 47.0 GB, 1.0 GB left+ 64 GB Mac -> limit 58.0 GB, 6.0 GB left (the dev machine, where it was tuned)++ One gigabyte is not enough to keep a browser open, which is exactly the+ owner's complaint: "when it's tight, you cannot use your Mac, so this is+ bad." The defaults were shaped by the machine they were written on.++ This costs no render speed and changes no output, because H3 does not need+ the memory it was being handed: the measured Q8 peak is 25.63 GiB and bf16+ is 42.17 GiB. The smallest Mac we serve H3 on (the 46 GB Q8 floor, i.e. a+ 48 GB machine) keeps 42 GB of budget against a 25.63 GiB peak - a limit+ that was never the binding constraint, standing in front of headroom that+ was.++ Headroom is the larger of 6 GB and an eighth of RAM: a fixed number starves+ a big machine of nothing and a proportional one leaves a small machine too+ little, so take whichever is kinder.+ """+ ram = float(total_ram_gb if total_ram_gb is not None else SYSTEM_RAM_GB)+ if ram <= 0:+ return (0.0, 0.0)+ headroom = max(6.0, ram / 8.0)+ memory_gb = max(8.0, ram - headroom)+ # Wired memory cannot be paged out at all, so it gets a wider margin than+ # the overall limit. The runner clamps this again to the device's own+ # max_recommended_working_set_size, which is the real ceiling.+ wired_gb = max(4.0, memory_gb - max(4.0, ram / 16.0))+ return (round(memory_gb, 1), round(wired_gb, 1))+++def h3_revoice_minutes(w: int, h: int, window_frames: int, windows: int) -> float:+ """What Clean up sound adds to a render of this shape: one full forward per+ window (the key/value store) plus the audio-only steps."""+ windows = max(1, int(windows))+ per_fwd = _h3_forward_seconds(_h3_packed_rows(w, h, window_frames))+ fwd_equiv = 1.0 + H3_REVOICE_STEP_SHARE * (H3_REVOICE_POINTS - 2)+ return windows * fwd_equiv * per_fwd / 60.0 * _h3_speed_factor(windows)+++def h3_revoice_extra_rows(w: int, h: int, *, keyframes: int = 0, history: bool = False,+ reference: bool = False) -> int:+ """Conditioning rows the re-voice store also holds: one latent frame per+ keyframe (a chained window's carried hand-over is one), the 17 carried+ frames (5 latent frames) of a continuing window, and a Face to keep+ reference block with its vision tokens."""+ per_frame = (int(w) // 32) * (int(h) // 32)+ return (per_frame * (int(keyframes) + (5 if history else 0))+ + (H3_REFERENCE_ROWS if reference else 0))+++def h3_revoice_fits(w: int, h: int, window_frames: int,+ total_ram_gb: float | None = None,+ dit_kind: str | None = None,+ extra_rows: int = 0) -> tuple[bool, str]:+ """Whether the re-voice store fits beside this render on this Mac. The+ tier table prices the Q8 lane (what AUTO renders on); make_job re-checks+ with the engine this install will really use."""+ kind = dit_kind or h3_dit_choice()[0]+ base = H3_REVOICE_PEAK_BF16_GIB if kind == "bf16" else H3_REVOICE_PEAK_Q8_GIB+ kv = ((_h3_packed_rows(w, h, window_frames) + max(0, int(extra_rows)))+ * H3_REVOICE_KV_BYTES_PER_ROW / 1024 ** 3)+ budget, _ = h3_memory_budget(total_ram_gb)+ need = base + kv+ if budget and need > budget:+ return False, (f"Clean up sound needs about {need:.0f} GB at {w}×{h}; this Mac "+ f"gives H3 {budget:.0f} GB.")+ return True, ""++def _fmt_eta(minutes: float) -> str:""""~9 min", "~38 min · batch", "~2h 16m · batch". No decimals: the model isgood to a few percent and "~18.4 min" would claim precision it doesn't@@ -11115,6 +11436,21 @@ def _fmt_eta_range(p25_min: float, p75_min: float) -> str:return f"~{lo}–{hi} min{tail}"+# Pro estimate while Pro render times per Mac are unmeasured (owner ruling 2026-10-27): the fleet's p75 times+# the WORST (slowest-gain) measured Pro/Free wall-time ratio per engine, from today-2026-10-26/PRO_SPEED.md+# (H3 602.93/893.49 = 0.675, LTX 0.79 per owner (measured 0.78-0.79); FLUX 9.59/14.76 = 0.65).+# Other engines get no Pro number. Always labelled an estimate.+PRO_EST_RATIOS = {"h3": 0.675, "ltx": 0.79, "image": 0.65, "flux": 0.65, "mflux": 0.65}+++def pro_estimate(engine: str, p75_min: float) -> dict | None:+ ratio = PRO_EST_RATIOS.get(str(engine or "").lower())+ if ratio is None or not isinstance(p75_min, (int, float)) or p75_min <= 0:+ return None+ mins = round(p75_min * ratio, 2)+ return {"ratio": ratio, "p75_min": mins, "label": "\u2248 " + _fmt_eta(mins).replace(" \u00b7 batch", "").lstrip("~") + " est."}++def fleet_calibrated_range(engine: str, mode: str, tier: str, frames,chip: str | None = None, ram: float | None = None,speed: str = "") -> dict | None:@@ -11144,6 +11480,9 @@ def fleet_calibrated_range(engine: str, mode: str, tier: str, frames,"basis": hit["basis"] + ", adjusted for this Mac's own renders"}hit["eta_range"] = _fmt_eta_range(hit["p25_min"], hit["p75_min"])hit["eta_mid"] = _fmt_eta(hit["p50_min"])+ pro = pro_estimate(engine, hit["p75_min"])+ if pro:+ hit["pro_est"] = proreturn hit@@ -11158,6 +11497,22 @@ def fleet_calibrated_range(engine: str, mode: str, tier: str, frames,# prints a measurement taken at its own sampler depth: when a canvas's Auto step# count moves (High 8 -> 15 forwards, 2026-09-16), its old wall clock must stop# being shown as "measured" and the model prices the new depth instead.+# Face to keep at the panel's 1024 short edge: one reference block of this+# many rows (a 3:4 photo -> 86x64 latent -> 1,376), the same count of vision+# tokens, and a fixed encode cost. Measured +67 s on a Standard Fast render.+H3_REFERENCE_ROWS = 2 * 1376+H3_REFERENCE_FIXED_SEC = 20.0+++def h3_reference_extra_minutes(w: int, h: int, window_frames: int, windows: int,+ forwards: int) -> float:+ """What a Face to keep reference adds to a render of this shape."""+ windows = max(1, int(windows))+ rows = _h3_packed_rows(w, h, window_frames)+ per = _h3_forward_seconds(rows + H3_REFERENCE_ROWS) - _h3_forward_seconds(rows)+ return windows * (max(0, int(forwards)) * per + H3_REFERENCE_FIXED_SEC) / 60.0 * _h3_speed_factor(windows)++H3_MEASURED_ETA: dict[tuple[str, str, bool], tuple[float, str, int]] = {("draft", "3s", False): (3.0, "~3 min", 8),("standard", "5s", False): (9.1, "~9 min", 8),@@ -11468,6 +11823,13 @@ def _build_h3_tiers() -> dict[str, dict]:tristep["tristep_min" + suffix] = round(m_min, 2)tristep["tristep_eta" + suffix] = m_etatristep["tristep_measured" + suffix] = m_meas+ # Clean up sound: what re-voicing this cell's sound adds, and+ # whether its key/value store fits this Mac at this canvas.+ tristep["revoice_min"] = round(+ h3_revoice_minutes(w, h, window_frames, windows), 2)+ _rv_ok, _rv_why = h3_revoice_fits(w, h, window_frames, dit_kind="q8")+ tristep["revoice_fits"] = _rv_ok+ tristep["revoice_note"] = _rv_why# The Upscale & Face Fix pass, priced beside the render so the# checkbox can say what both cost together.ff = FACE_FIX_5S_MIN.get(q["key"])@@ -11513,6 +11875,17 @@ def _build_h3_tiers() -> dict[str, dict]:flex.update({"flex_min": round(f_min, 2), "flex_eta": f_eta,"flex_measured": f_meas, "flex_steps": H3_FLEX_STEPS,"flex_forwards": windows * H3_FLEX_FORWARDS})+ # H3 Flex Turbo (Pro): 4 forwards at Flex's per-forward cost.+ t_min = h3_estimate_minutes(+ w, h, window_frames, windows, H3_FLEX_TURBO_FORWARDS) * H3_FLEX_FORWARD_COST+ t_eta, t_meas = _fmt_eta(t_min), False+ hit = H3_FLEX_TURBO_MEASURED_ETA.get((q["key"], ln["key"], "t2v"))+ if hit:+ t_min, t_meas = hit[0] * hw, True+ t_eta = hit[1] if hw == 1.0 else _fmt_eta(t_min)+ flex.update({"flex_turbo_min": round(t_min, 2), "flex_turbo_eta": t_eta,+ "flex_turbo_measured": t_meas, "flex_turbo_steps": H3_FLEX_TURBO_STEPS,+ "flex_turbo_forwards": windows * H3_FLEX_TURBO_FORWARDS})spec = f"{w}×{h} · {frames}f"if windows > 1:spec += f" · {windows}×5s"@@ -11553,6 +11926,11 @@ def _build_h3_tiers() -> dict[str, dict]:_h3_forward_seconds(_h3_packed_rows(w, h, window_frames)) * hw, 2),"fixed_sec": round(_h3_fixed_seconds(w, h, window_frames) * hw, 2),"packed_rows": _h3_packed_rows(w, h, window_frames),+ # Face to keep: what the reference adds, on Best and on Fast.+ "reference_min": round(h3_reference_extra_minutes(+ w, h, window_frames, windows, win_fwd), 2),+ "reference_min_fast": round(h3_reference_extra_minutes(+ w, h, window_frames, windows, H3_TRISTEP_FORWARDS), 2),"blurb": f"{q['blurb']} {ln['blurb']}",# The honest artefact warnings, joined: a Draft 10 s clip owes# the user BOTH the 0.25 MP caveat and the per-window prompt one.@@ -12625,6 +13003,11 @@ def _live_preview_params(job: dict, p: dict) -> dict:if ((p.get("mode") or "").strip().lower() not in LTX_LIVE_PREVIEW_MODESor not live_preview_enabled()):return {}+ # Phosphene Bench: the preview decodes a frame per step, and whether it+ # runs is a Setting, not suite data. Off for every Bench render, so the+ # same suite does the same work on every Mac.+ if (p.get("source") or "") == "bench":+ return {}cell = LTX_QUALITIES.get(p.get("quality") or "", {})return {"live_preview_dir": str(live_preview_dir(job["id"])),@@ -12922,10 +13305,10 @@ def job_recipe_minutes(params: dict, *, calibration: bool = False) -> tuple[str,None (never a guess) when the recipe can't be priced reliably."""p = params or {}mode = str(p.get("mode") or "t2v").strip().lower()- if mode in ("image", "train", "upscale", "sharp_export", "music"):+ if mode in ("image", "train", "upscale", "sharp_export", "music", "speech"):return Noneengine = str(p.get("engine") or "ltx").strip().lower()- if engine == "music":+ if engine in ("music", "speech"):return Noneif engine == "h3":key = h3_resolve_tier(str(p.get("h3_tier") or "")) or h3_compose_tier(@@ -12951,6 +13334,8 @@ def job_recipe_minutes(params: dict, *, calibration: bool = False) -> tuple[str,minutes = cell.get("turbo_min")elif p.get("h3_flex") and cell.get("flex_min") is not None:minutes = cell.get("flex_min")+ elif p.get("h3_flex_turbo") and cell.get("flex_turbo_min") is not None:+ minutes = cell.get("flex_turbo_min")elif p.get("h3_v13") and cell.get("v13_min") is not None:# lightx2v v1.3 on Best at High: its own measured number, so a# 15-minute recipe never calibrates against the 33-minute one.@@ -15009,6 +15394,50 @@ def _set_h3_tristep_dl(**kw) -> None:_h3_tristep_dl_state.update(kw)+# ---- Face to keep: a reference image on H3 (4.20) -------------------------+# The runner's `--reference` packs a still as MiniMax's ref2va image block on+# our FL2VA model (its own canvas and grid, one clock slot before the clip,+# <Picture n> to the vision tower). Measured on a Standard Fast text-only cafe+# scene against the 41-still Mr Bizarro centroid (the reference photo itself+# excluded): ArcFace median 0.365 with no reference, 0.709 with it, 0.736 when+# the same photo is the FIRST FRAME (which also fixes the composition), 0.491+# with the character LoRA. The Ref Patch (lihaoyun6, 148 MB) did not help+# (0.691) and is not used. Size: the reference's short edge; 1024 adds 1,376+# rows and 1,376 vision tokens at Standard: 234 -> 301 s on a Standard Fast+# render (+67 s, measured).+H3_REFERENCE_SIZE = 1024+H3_REFERENCE_MODES = ("t2v", "i2v")+H3_REFERENCE_SENTENCE = ("The person from <Picture {n}> is in this shot, with the same "+ "face, hair and facial hair.")+++def h3_supports_reference() -> bool:+ """Whether the INSTALLED runner takes `--reference`."""+ return _h3_runner_has_flag("--reference")+++def h3_reference_prompt(prompt: str, picture_index: int) -> str:+ """Name the reference in the prompt unless the prompt already names a picture."""+ if "<picture" in (prompt or "").lower():+ return prompt+ return h3_prompt_guards.append_to_description(+ prompt, [H3_REFERENCE_SENTENCE.format(n=int(picture_index))])+++def h3_supports_revoice() -> bool:+ """Whether the INSTALLED runner can re-voice (`--revoice-steps`)."""+ return h3_supports_sigma_subset() and _h3_runner_has_flag("--revoice-steps")+++def h3_revoice_status() -> dict:+ return {+ "supported": h3_supports_revoice(),+ "default": H3_REVOICE_DEFAULT,+ "points": H3_REVOICE_POINTS,+ "label": H3_REVOICE_LABEL,+ }++def h3_tristep_status() -> dict:"""/status + BOOT block for the Draft sampler. Same three answers asTurbo's: can the runner take it, is the file here, so is it offered."""@@ -15218,6 +15647,172 @@ def h3_flex_argv(paths: dict | None = None) -> list[str]:return [H3_FLEX_RUNNER_FLAG, "--lora", f"{resolved['lora']}:1.0"]+def h3_flex_turbo_paths() -> dict:+ """The Turbo LoRA as published, at its exact size, beside the Flex adapter."""+ directory = _h3_flex_dir()+ candidate = directory / H3_FLEX_TURBO_FILE+ try:+ ok = candidate.is_file() and candidate.stat().st_size == H3_FLEX_TURBO_BYTES+ except OSError:+ ok = False+ if ok:+ return {"dir": directory, "lora": candidate, "files_ok": True, "missing": []}+ return {"dir": directory, "lora": None, "files_ok": False,+ "missing": [f"Turbo LoRA ({H3_FLEX_TURBO_FILE}, a ~{H3_FLEX_TURBO_DOWNLOAD_GB:g} GB download)"]}+++def h3_supports_flex_turbo() -> bool:+ """The runner takes a schedule by knots, per-modality shifts and the load-time+ re-order of a fused (diffusers-layout) LoRA."""+ return (h3_supports_lora_stack() and _h3_runner_has_flag("--sigma-knots")+ and _h3_runner_has_flag("--audio-shift") and _h3_runner_has_flag("--lora-qkv-permute")+ and _h3_runner_has_flag("--lora-fc1-swap"))+++def h3_flex_turbo_allowed() -> bool:+ """THE Pro gate for H3 Flex Turbo (Pro ledger row h3-flex-turbo)."""+ return bool(pro_status().get("active"))+++def h3_flex_turbo_argv(paths: dict | None = None) -> list[str]:+ """The runner argv fragment: euler over five knots (four forwards), shifts 6/3,+ and the LoRA at 1.0, re-ordered at load (q/k/v per head, fc1 [gate; value])."""+ resolved = paths or h3_flex_turbo_paths()+ if not resolved.get("files_ok") or resolved.get("lora") is None:+ raise RuntimeError("the H3 Flex Turbo LoRA is not available")+ return ["--sampler", "euler", "--sigma-knots", ",".join(str(k) for k in H3_FLEX_TURBO_KNOTS),+ "--steps", str(H3_FLEX_TURBO_STEPS),+ "--video-shift", f"{H3_FLEX_TURBO_VIDEO_SHIFT:g}", "--audio-shift", f"{H3_FLEX_TURBO_AUDIO_SHIFT:g}",+ "--lora", f"{resolved['lora']}:1.0", "--lora-qkv-permute", "--lora-fc1-swap"]+++_h3_flex_turbo_dl_lock = threading.Lock()+_h3_flex_turbo_dl_state: dict = {"status": "idle", "mb": 0, "total_mb": 0, "error": None}+++def h3_flex_turbo_status() -> dict:+ supported = h3_supports_flex_turbo()+ paths = h3_flex_turbo_paths()+ downloaded = bool(paths["files_ok"])+ pro = h3_flex_turbo_allowed()+ return {+ "available": bool(supported and downloaded and pro),+ "supported": supported,+ "downloaded": downloaded,+ "pro": True,+ "pro_active": pro,+ "reason": ("runner_too_old" if not supported else "pro_required" if not pro+ else "not_downloaded" if not downloaded else "ok"),+ "steps": H3_FLEX_TURBO_STEPS,+ "forwards": H3_FLEX_TURBO_FORWARDS,+ "modes": list(H3_FLEX_MODES),+ "download_gb": H3_FLEX_TURBO_DOWNLOAD_GB,+ "disk_need_gb": H3_FLEX_TURBO_DISK_NEED_GB,+ "repo": H3_FLEX_TURBO_REPO,+ "license": H3_FLEX_LICENSE,+ "name": H3_FLEX_TURBO_NAME,+ "label": H3_FLEX_TURBO_LABEL,+ "credit": H3_FLEX_TURBO_CREDIT,+ "notice": H3_FLEX_NOTICE,+ "adapter": str(paths["lora"]) if paths["lora"] else None,+ "install_available": bool(supported and pro),+ "installing": _h3_flex_turbo_dl_state.get("status") == "downloading",+ "download": dict(_h3_flex_turbo_dl_state),+ }+++def _h3_flex_turbo_fetch_bg(target_dir, push_log, opener=None) -> None:+ """Download the published file at the pinned revision (resumable .part),+ verify size + sha256, then rename into place. Never re-hosted, never rebuilt."""+ import hashlib+ import urllib.request+ target_dir = Path(target_dir)+ part = target_dir / (H3_FLEX_TURBO_FILE + ".part")+ total_mb = H3_FLEX_TURBO_BYTES // (1 << 20)+ try:+ push_log(f"[h3:flex-turbo] fetching {H3_FLEX_TURBO_SOURCE_FILE} from {H3_FLEX_TURBO_REPO} @ "+ f"{H3_FLEX_TURBO_REVISION[:7]} (~{total_mb} MB, {H3_FLEX_LICENSE})")+ have = part.stat().st_size if part.exists() else 0+ if have > H3_FLEX_TURBO_BYTES:+ part.unlink()+ have = 0+ if have < H3_FLEX_TURBO_BYTES:+ req = urllib.request.Request(H3_FLEX_TURBO_URL, headers={"User-Agent": "Phosphene"})+ if have:+ req.add_header("Range", f"bytes={have}-")+ with (opener or urllib.request.urlopen)(req, timeout=60) as r, open(part, "ab" if have and getattr(r, "status", 200) == 206 else "wb") as fh:+ if not (have and getattr(r, "status", 200) == 206):+ have = 0+ while True:+ b = r.read(1 << 20)+ if not b:+ break+ fh.write(b)+ have += len(b)+ with _h3_flex_turbo_dl_lock:+ _h3_flex_turbo_dl_state.update(status="downloading", mb=have >> 20, total_mb=total_mb, error=None)+ if part.stat().st_size != H3_FLEX_TURBO_BYTES:+ raise RuntimeError(f"download stopped at {part.stat().st_size} of {H3_FLEX_TURBO_BYTES} bytes")+ h = hashlib.sha256()+ with open(part, "rb") as fh:+ for b in iter(lambda: fh.read(1 << 22), b""):+ h.update(b)+ if h.hexdigest() != H3_FLEX_TURBO_SHA256:+ part.unlink()+ raise RuntimeError("the downloaded file does not match its checksum - try again")+ part.replace(target_dir / H3_FLEX_TURBO_FILE)+ push_log(f"[h3:flex-turbo] installed -> {target_dir / H3_FLEX_TURBO_FILE}")+ with _h3_flex_turbo_dl_lock:+ _h3_flex_turbo_dl_state.clear()+ _h3_flex_turbo_dl_state.update(status="done", mb=total_mb, total_mb=total_mb, error=None)+ except Exception as e: # noqa: BLE001+ with _h3_flex_turbo_dl_lock:+ _h3_flex_turbo_dl_state.clear()+ _h3_flex_turbo_dl_state.update(status="error", mb=0, total_mb=total_mb, error=str(e)[:200])+ push_log(f"[h3:flex-turbo] FAILED: {e}")+++def _h3_install_flex_turbo(push_log, fetch_fn=None) -> dict:+ """On-demand download of the H3 Flex Turbo LoRA (Pro, one at a time)."""+ if not h3_flex_turbo_allowed():+ return {"ok": False, "pro_required": True,+ "error": "H3 Flex Turbo is part of Phosphene Pro."}+ paths = h3_paths()+ if paths["missing"]:+ return {"ok": False,+ "error": "H3 Flex Turbo is an add-on to the Hailuo H3 pack, and "+ "H3 isn't fully installed yet: " + "; ".join(paths["missing"])}+ if not h3_supports_flex_turbo():+ return {"ok": False,+ "error": _dist.say(+ "This Hailuo H3 runner predates H3 Flex Turbo. Run 'Update Hailuo H3 "+ "runner' from the Phosphene sidebar in Pinokio - your weights stay.",+ "This Hailuo H3 runner predates H3 Flex Turbo. Update Phosphene to get it.")}+ resolved = h3_flex_turbo_paths()+ target = resolved["dir"]+ if resolved["files_ok"]:+ return {"ok": True, "started": False, "already_installed": True, "dir": str(target)}+ try:+ target.mkdir(parents=True, exist_ok=True)+ free_gb = shutil.disk_usage(target).free / 1e9+ except OSError:+ free_gb = None+ if free_gb is not None and free_gb < H3_FLEX_TURBO_DISK_NEED_GB:+ return {"ok": False,+ "error": f"H3 Flex Turbo needs about {H3_FLEX_TURBO_DISK_NEED_GB:g} GB free "+ f"(a 0.3 GB download). This disk has {free_gb:.1f} GB free."}+ with _h3_flex_turbo_dl_lock:+ if _h3_flex_turbo_dl_state.get("status") == "downloading":+ return {"ok": False, "error": "an H3 Flex Turbo download is already active"}+ _h3_flex_turbo_dl_state.clear()+ _h3_flex_turbo_dl_state.update(status="downloading", mb=0,+ total_mb=H3_FLEX_TURBO_BYTES // (1 << 20), error=None)+ fn = fetch_fn or _h3_flex_turbo_fetch_bg+ threading.Thread(target=fn, args=(target, push_log), daemon=True,+ name="h3-flex-turbo-fetch").start()+ return {"ok": True, "started": True, "dir": str(target)}++_h3_flex_dl_lock = threading.Lock()_h3_flex_dl_state: dict = {"status": "idle", "mb": 0, "total_mb": 0, "error": None}@@ -17203,50 +17798,6 @@ def h3_supports_memory_limits() -> bool:and _h3_runner_has_flag("--wired-gb"))-def h3_memory_budget(total_ram_gb: float | None = None) -> tuple[float, float]:- """(memory_gb, wired_gb) for THIS Mac, leaving the user room to keep using it.-- THE BUG THIS FIXES. The runner's defaults are `--wired-gb 50` and- `--memory-gb 58`, and it clamps them with-- memory_bytes = min(memory_gb * GiB, device.memory_size - 1 GiB)-- so on ANY Mac below 59 GB the 58 never binds and the clamp does: MLX is- allowed everything except ONE gigabyte. Measured across the sizes people- actually own:-- 32 GB Mac -> limit 31.0 GB, 1.0 GB left for the user- 36 GB Mac -> limit 35.0 GB, 1.0 GB left- 48 GB Mac -> limit 47.0 GB, 1.0 GB left- 64 GB Mac -> limit 58.0 GB, 6.0 GB left (the dev machine, where it was tuned)-- One gigabyte is not enough to keep a browser open, which is exactly the- owner's complaint: "when it's tight, you cannot use your Mac, so this is- bad." The defaults were shaped by the machine they were written on.-- This costs no render speed and changes no output, because H3 does not need- the memory it was being handed: the measured Q8 peak is 25.63 GiB and bf16- is 42.17 GiB. The smallest Mac we serve H3 on (the 46 GB Q8 floor, i.e. a- 48 GB machine) keeps 42 GB of budget against a 25.63 GiB peak — a limit- that was never the binding constraint, standing in front of headroom that- was.-- Headroom is the larger of 6 GB and an eighth of RAM: a fixed number starves- a big machine of nothing and a proportional one leaves a small machine too- little, so take whichever is kinder.- """- ram = float(total_ram_gb if total_ram_gb is not None else SYSTEM_RAM_GB)- if ram <= 0:- return (0.0, 0.0)- headroom = max(6.0, ram / 8.0)- memory_gb = max(8.0, ram - headroom)- # Wired memory cannot be paged out at all, so it gets a wider margin than- # the overall limit. The runner clamps this again to the device's own- # max_recommended_working_set_size, which is the real ceiling.- wired_gb = max(4.0, memory_gb - max(4.0, ram / 16.0))- return (round(memory_gb, 1), round(wired_gb, 1))--def h3_supports_prompt_cache() -> bool:"""Whether the INSTALLED runner accepts `--prompt-cache`.@@ -17671,6 +18222,11 @@ def h3_status() -> dict:"dir": str(_h3_turbo_dir()), "missing": [],"note": H3_TURBO_NOTE, "label": "Turbo"}),# Speed switch "Fast" (TaoMate 3-step adapter). Same three-cause shape as Turbo.+ "reference": {"supported": bool(available and h3_supports_reference()),+ "modes": list(H3_REFERENCE_MODES), "size": H3_REFERENCE_SIZE},+ "revoice": (h3_revoice_status() if available else+ {"supported": False, "default": H3_REVOICE_DEFAULT,+ "points": H3_REVOICE_POINTS, "label": H3_REVOICE_LABEL}),"tristep": (h3_tristep_status() if available else{"available": False, "supported": False, "downloaded": False,"reason": "h3_" + paths["reason"],@@ -17694,6 +18250,17 @@ def h3_status() -> dict:"name": H3_V13_NAME, "label": H3_V13_LABEL, "credit": H3_V13_CREDIT,"adapter": None, "install_available": False, "installing": False,"download": {}, "dir": str(_h3_turbo_dir()), "missing": []}),+ # H3 Flex Turbo (Pro) — the four-step Flex. Same shape as Flex.+ "flex_turbo": (h3_flex_turbo_status() if available else+ {"available": False, "supported": False, "downloaded": False, "pro": True,+ "pro_active": h3_flex_turbo_allowed(), "reason": "h3_" + paths["reason"],+ "steps": H3_FLEX_TURBO_STEPS, "forwards": H3_FLEX_TURBO_FORWARDS,+ "modes": list(H3_FLEX_MODES), "download_gb": H3_FLEX_TURBO_DOWNLOAD_GB,+ "disk_need_gb": H3_FLEX_TURBO_DISK_NEED_GB, "repo": H3_FLEX_TURBO_REPO,+ "license": H3_FLEX_LICENSE, "name": H3_FLEX_TURBO_NAME,+ "label": H3_FLEX_TURBO_LABEL, "credit": H3_FLEX_TURBO_CREDIT,+ "notice": H3_FLEX_NOTICE, "adapter": None, "install_available": False,+ "installing": False, "download": {}}),# P-H3-Image (Images lane). Its own block: the lane needs the H3 pack but is not a video choice."ph3image": ph3image_status(),# Pika H3 Flex — a Speed choice of its own. Same three-cause shape.@@ -17844,11 +18411,22 @@ def h3_status() -> dict:# Draft 8 steps: 120.0 s song in 64.2 s# Score planning + resident loads ≈ 12 s per song; peak process footprint# 11.0 GB (MLX peak 10.5 GiB) on every length. 24 GB Macs are known to work-# (yue2-studio's M5 Pro 24 GB receipts), hence the floor.+# (yue2-studio's M5 Pro 24 GB receipts).+# The floor is 16 GB since 4.19.12. On a 16 GB Mac the runner's own budget is+# 12 GiB of process footprint (yue2_run.default_budget_gib: total - 4 GiB OS+# headroom is the engine's ceiling) and the engine sets MLX's advisory limit+# to budget - 5 = 7 GiB with a 128 MiB cache (lyra/measure.py), so the song+# runs on a tighter MLX limit than on a big Mac. Proved under a+# simulated 16 GB Mac (psutil total = 16 GiB, MLX ceiling 15.2 GB) with real+# short, full, instrumental and cover songs: every WAV byte-identical to the+# 64 GB run, MLX peak 8.2-8.4 GiB, process peak 9.2-9.9 GiB (docs/MUSIC_ENGINE.md).+# What a simulation cannot show is a real 16 GB Mac's free memory with apps+# open; the runner's guard stops a song cleanly (exit 3) when the system runs+# short, and run_music_job_inner says what to do about it.# Wall ≈ MUSIC_FIXED_SEC + audio seconds × rate, scaled for other chips by the# LTX speed table (both are MLX GPU work). The slider is a ceiling, so this# prices a song that runs to Max length; most songs end sooner.-MUSIC_MIN_RAM_GB = 24.0+MUSIC_MIN_RAM_GB = 16.0MUSIC_SAMPLE_RATE = 48000MUSIC_CHANNELS = 2MUSIC_QUALITY_STEPS = {"draft": 8, "final": 32}@@ -18764,6 +19342,37 @@ def _stop_music_proc(grace: float = 8.0, pgid: int | None = None) -> None:atexit.register(_stop_music_proc)+#: yue2_run.py's exit code when its memory guard stopped the song (see its+#: docstring: 0 ok · 2 bad input · 3 memory guard · 130 stopped · 1 other).+MUSIC_RC_MEMORY_GUARD = 3+++def music_memory_guard_message(tail) -> str:+ """The error a song stopped by the runner's memory guard shows: the cause+ and the remedy first, the runner's own line after it."""+ lines = [str(x) for x in (tail or []) if str(x).strip()]+ cause = next((x for x in reversed(lines) if "memory guard" in x), lines[-1] if lines else "")+ return ("Music Studio stopped your song because your Mac was running low on memory, "+ "and nothing was saved. Close other apps and browser tabs, then compose again."+ + (f" ({cause.strip()})" if cause else ""))+++def music_guard_cleanup(output: Path, artifacts: Path) -> None:+ """Remove what a song stopped by the memory guard left behind. Only this+ job's paths: `artifacts` is music_artifacts_dir(job id), never a parent's+ (a take/sound variation READS its parent's folder and must keep it)."""+ for leftover in (output, Path(str(output) + ".json"),+ output.with_name(output.stem + ".partial" + output.suffix)):+ try:+ leftover.unlink()+ except OSError:+ pass+ # yue2_run.py puts a cover's transcription BESIDE the artifacts folder.+ for folder in (artifacts, artifacts.parent / (artifacts.name + ".transcription")):+ if folder.is_dir() and folder.resolve().is_relative_to(MUSIC_ARTIFACTS.resolve()):+ shutil.rmtree(folder, ignore_errors=True)++def run_music_job_inner(job: dict) -> None:p = music_params(job["params"])paths = music_paths()@@ -18856,6 +19465,18 @@ def run_music_job_inner(job: dict) -> None:except OSError:passraise JobStopped("Music stopped")+ if rc == MUSIC_RC_MEMORY_GUARD:+ # The runner's memory guard stopped the song before the Mac ran out+ # (exit 3): a 16 GB Mac with a browser and other apps open is where+ # this lands. Say what happened and what to do; keep its own line.+ # The guard samples during GPU work, so the song is normally never+ # published; drop whatever this job did write anyway (the WAV and+ # its sidecar, the .partial, this job's own artifacts folder and a+ # cover's transcription beside it), so "nothing was saved" is true.+ # (The folder music_argv handed the runner: music_artifacts_dir()+ # called now would name a NEW one, since that one is not empty.)+ music_guard_cleanup(output, Path(cmd[cmd.index("--artifacts") + 1]))+ raise RuntimeError(music_memory_guard_message(tail))if rc != 0:raise RuntimeError(f"YuE2 exited with code {rc}: " + " · ".join(tail))if not output.is_file() or not Path(str(output) + ".json").is_file():@@ -18882,6 +19503,415 @@ def run_music_job_inner(job: dict) -> None:_music_release_gpu(gpu_token)+# ---- Speech (Audio → Speech): text to speech in preset or character voices --+# The logic lives in speech_engine.py (pure, testable); this block is the+# queue glue and the in-panel install, the same shape as Music's above.+# docs/SPEECH.md is the reference: model choice, memory, the safety rule.+import speech_engine # noqa: E402++SPEECH_ROOT = ROOT / Path(os.environ.get("LTX_SPEECH_ROOT", "speech-mlx")).expanduser()+SPEECH_MODELS = ROOT / Path(os.environ.get("LTX_SPEECH_MODELS", "mlx_models/speech")).expanduser()+SPEECH_RUNNER = ROOT / "scripts/speech/speech_run.py"+SPEECH_MIN_RAM_GB = speech_engine.SPEECH_MIN_RAM_GB+++SPEECH_CONSTRAINTS = ROOT / "scripts/speech/speech_constraints.txt"+SPEECH_PACKAGES_MARKER = ".phosphene_speech_packages"+++def _speech_packages_ok() -> bool:+ """The packages step finished on THIS constraints file: speech_setup.sh+ writes the file's sha256 into the venv after its import probe passes. A+ venv left half-installed by a Stop or a failure has no marker (so the card+ offers the install again instead of a dead "ready"), and an Update that+ moves the constraints makes it stale (Install again repairs it)."""+ try:+ want = hashlib.sha256(SPEECH_CONSTRAINTS.read_bytes()).hexdigest()+ return (SPEECH_ROOT / ".venv" / SPEECH_PACKAGES_MARKER).read_text().strip() == want+ except OSError:+ return False+++def _speech_python() -> Path | None:+ for p in (SPEECH_ROOT / ".venv/bin/python", SPEECH_ROOT / ".venv/bin/python3.12"):+ if p.is_file() and os.access(p, os.X_OK) and _speech_packages_ok():+ return p+ return None+++def speech_capable() -> bool:+ return SYSTEM_RAM_GB >= SPEECH_MIN_RAM_GB - 1+++def speech_paths() -> dict:+ from scripts.speech.speech_fetch import pack_problems+ missing = pack_problems(SPEECH_MODELS)+ weights_ok = not missing+ python = _speech_python()+ built = (SPEECH_ROOT / ".venv/pyvenv.cfg").is_file()+ if python is None:+ missing = missing + [f"engine environment under {SPEECH_ROOT / '.venv'}"]+ reason = ("ok" if not missing else+ "not_installed" if not weights_ok and not built else+ "missing_weights" if not weights_ok else "missing_venv")+ return {"root": str(SPEECH_ROOT), "models": str(SPEECH_MODELS), "python": python,+ "missing": missing, "reason": reason, "weights_ok": weights_ok,+ "venv_ok": python is not None, "repairable": weights_ok and bool(missing)}+++def speech_status() -> dict:+ from scripts.speech.speech_fetch import PACK_BYTES+ paths = speech_paths()+ return {**{k: paths[k] for k in ("missing", "reason", "weights_ok", "venv_ok", "repairable")},+ "capable": speech_capable(), "available": not paths["missing"],+ "min_ram_gb": SPEECH_MIN_RAM_GB, "pack_gb": round(PACK_BYTES / 1e9, 1),+ # ~0.45 GB of Python packages on top of the weights.+ "install_gb": round(PACK_BYTES / 1e9 + 0.45, 1),+ "lipsync_max_sec": speech_engine.LIPSYNC_MAX_SEC,+ "words_per_second": speech_engine.WORDS_PER_SECOND,+ "est_load_sec": speech_engine.EST_LOAD_SEC,+ "est_sec_per_audio_sec": round(speech_engine.EST_SEC_PER_AUDIO_SEC * _hw_speed_factor("ltx"), 3),+ "eta_measured": False}+++# The in-panel install. Same contract as Music's: one background task, steps+# in their own process groups (Stop = killpg, SIGKILL after 8 s), registered+# with the orphan reaper, every step idempotent so Install again resumes.+SPEECH_INSTALL_STEPS = (+ ("preflight", "Checking memory and disk space", 1, 'bash scripts/speech/speech_setup.sh preflight'),+ ("venv", "Setting up Python 3.12", 4, 'bash scripts/speech/speech_setup.sh venv'),+ ("packages", "Installing the speech engine", 8, 'bash scripts/speech/speech_setup.sh packages'),+ ("fetch", "Downloading the voice models", 87,+ '"${LTX_SPEECH_ROOT:-speech-mlx}/.venv/bin/python" scripts/speech/speech_fetch.py --min-free-gb 2'),+)+SPEECH_INSTALL_LOCK = threading.Lock()+SPEECH_INSTALL: dict = {"state": "idle", "active": False}+_SPEECH_INSTALL_STOP = threading.Event()+_SPEECH_INSTALL_BYTES = {"ts": 0.0, "bytes": 0}+++def _speech_install_bytes() -> int:+ now = time.time()+ if now - _SPEECH_INSTALL_BYTES["ts"] < 1.0:+ return _SPEECH_INSTALL_BYTES["bytes"]+ total, seen = 0, set()+ try:+ for f in SPEECH_MODELS.rglob("*"):+ try:+ st = f.stat()+ if f.is_file() and not f.is_symlink() and (st.st_dev, st.st_ino) not in seen:+ seen.add((st.st_dev, st.st_ino))+ total += st.st_size+ except OSError:+ pass+ except OSError:+ pass+ _SPEECH_INSTALL_BYTES.update(ts=now, bytes=total)+ return total+++def speech_install_status() -> dict:+ from scripts.speech.speech_fetch import PACK_BYTES+ with SPEECH_INSTALL_LOCK:+ s = {k: v for k, v in SPEECH_INSTALL.items() if k not in ("pgid", "log")}+ s["log"] = list(SPEECH_INSTALL.get("log") or [])[-6:]+ s["steps"] = len(SPEECH_INSTALL_STEPS)+ frac = 0.0+ if s.get("active") and s.get("step_key") == "fetch":+ done = min(_speech_install_bytes(), PACK_BYTES)+ s["bytes_done"], s["bytes_total"] = done, PACK_BYTES+ frac = done / PACK_BYTES+ if s.get("active"):+ weights = [w for _, _, w, _ in SPEECH_INSTALL_STEPS]+ idx = int(s.get("step_index") or 0)+ s["percent"] = max(1, min(99, round((sum(weights[:idx]) + weights[idx] * frac) * 100 / sum(weights))))+ return s+++def speech_install_start() -> tuple[int, dict]:+ if not speech_capable():+ return 400, {"error": f"Speech needs about {SPEECH_MIN_RAM_GB:.0f} GB of unified memory; "+ f"this Mac reports {SYSTEM_RAM_GB:.0f} GB."}+ if STATE.get("speech_pgid"):+ return 409, {"error": "A line is being spoken right now. Install after it finishes."}+ with SPEECH_INSTALL_LOCK:+ if SPEECH_INSTALL.get("active"):+ return 409, {"error": "Speech is already installing.", "install": True}+ if not speech_paths()["missing"]:+ return 200, {"ok": True, "nothing_to_do": True}+ _SPEECH_INSTALL_STOP.clear()+ SPEECH_INSTALL.clear()+ SPEECH_INSTALL.update({"state": "running", "active": True, "step_index": 0,+ "step_key": SPEECH_INSTALL_STEPS[0][0], "step_label": SPEECH_INSTALL_STEPS[0][1],+ "started_ts": time.time(), "finished_ts": None, "error": None,+ "pgid": None, "log": collections.deque(maxlen=60)})+ threading.Thread(target=_speech_install_thread, daemon=True, name="speech-install").start()+ push("[speech-install] started from the studio")+ return 202, {"ok": True, "started": True}+++def speech_install_stop() -> bool:+ with SPEECH_INSTALL_LOCK:+ if not SPEECH_INSTALL.get("active"):+ return False+ _SPEECH_INSTALL_STOP.set()+ SPEECH_INSTALL["state"] = "stopping"+ pgid = SPEECH_INSTALL.get("pgid")+ if pgid:+ _music_install_kill(pgid)+ return True+++def _speech_install_thread() -> None:+ env = _music_install_env() # Pinokio's tool folders in front of PATH (uv)+ env = {k: v for k, v in env.items() if k not in speech_engine.ENV_STRIP}+ error = None+ for idx, (key, label, _w, command) in enumerate(SPEECH_INSTALL_STEPS):+ if _SPEECH_INSTALL_STOP.is_set():+ break+ with SPEECH_INSTALL_LOCK:+ SPEECH_INSTALL.update(step_index=idx, step_key=key, step_label=label)+ SPEECH_INSTALL["log"].append(f"— {label}")+ push(f"[speech-install] step {idx + 1}/{len(SPEECH_INSTALL_STEPS)}: {label}")+ tail: list[str] = []+ try:+ proc = subprocess.Popen(["bash", "-c", command], cwd=str(ROOT), env=env,+ stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,+ stderr=subprocess.STDOUT, text=True, bufsize=1,+ errors="replace", start_new_session=True)+ except OSError as e:+ error = f"Could not start step '{label}': {e}"+ break+ with SPEECH_INSTALL_LOCK:+ SPEECH_INSTALL["pgid"] = proc.pid+ stop_now = _SPEECH_INSTALL_STOP.is_set()+ _proc_guard_write("speech_install", proc.pid, proc.pid, note=key)+ if stop_now:+ _music_install_kill(proc.pid)+ try:+ for raw in proc.stdout:+ for line in raw.replace("\r", "\n").splitlines():+ line = line.rstrip()+ if not line:+ continue+ tail = (tail + [line])[-8:]+ with SPEECH_INSTALL_LOCK:+ SPEECH_INSTALL["log"].append(line[:300])+ SPEECH_INSTALL["last_line"] = line[:300]+ rc = proc.wait()+ finally:+ with SPEECH_INSTALL_LOCK:+ SPEECH_INSTALL["pgid"] = None+ _proc_guard_clear("speech_install")+ if _SPEECH_INSTALL_STOP.is_set():+ break+ if rc != 0:+ if key in ("venv", "packages") and shutil.which("uv", path=env["PATH"]) is None:+ error = _dist.say(+ "'uv' was not found, so the panel cannot set up Speech. Restart Phosphene from Pinokio, then click Install again.",+ "'uv' was not found, so Phosphene can't set up Speech. Quit Phosphene and open it again, then click Install again.")+ break+ reason = next((l for l in reversed(tail) if l.startswith("FATAL error:")), "") or \+ next((l for l in reversed(tail) if not l.startswith(("+", "Traceback"))), "")+ if reason.startswith("FATAL error:"):+ reason = reason[len("FATAL error:"):].strip()+ error = f"{label} failed (exit {rc})" + (f": {reason}" if reason else "")+ if not error.endswith("."):+ error += "."+ if "Install again" not in reason:+ error += " Click Install again to resume — nothing already downloaded is lost."+ break+ stopped = _SPEECH_INSTALL_STOP.is_set()+ ok = not stopped and error is None and not speech_paths()["missing"]+ if not stopped and error is None and not ok:+ error = "The install finished but Speech still reports: " + "; ".join(speech_paths()["missing"][:3])+ with SPEECH_INSTALL_LOCK:+ SPEECH_INSTALL.update(active=False, finished_ts=time.time(), pgid=None,+ state="stopped" if stopped else "done" if ok else "failed",+ error=None if (stopped or ok) else error)+ push("[speech-install] " + ("stopped — Install again resumes where it left off" if stopped+ else "done — Audio → Speech is ready" if ok else f"failed: {error}"))+++def _stop_speech_install_at_exit() -> None:+ with SPEECH_INSTALL_LOCK:+ pgid = SPEECH_INSTALL.get("pgid") if SPEECH_INSTALL.get("active") else None+ if pgid:+ _SPEECH_INSTALL_STOP.set()+ try:+ os.killpg(pgid, signal.SIGTERM)+ except (OSError, ProcessLookupError):+ pass+++atexit.register(_stop_speech_install_at_exit)+++def _stop_speech_proc(pgid: int | None = None) -> None:+ if pgid is None:+ with LOCK:+ pgid = STATE.get("speech_pgid")+ if not pgid:+ return+ try:+ os.killpg(pgid, signal.SIGTERM)+ except (OSError, ProcessLookupError):+ return++ def force():+ time.sleep(5)+ with LOCK:+ if STATE.get("speech_pgid") != pgid:+ return+ try:+ os.killpg(pgid, signal.SIGKILL)+ except (OSError, ProcessLookupError):+ pass+ threading.Thread(target=force, daemon=True, name="stop-speech").start()+++atexit.register(_stop_speech_proc)+++def speech_estimate(text: str, speed: float = 1.0) -> dict:+ return speech_engine.estimate(text, speed, _hw_speed_factor("ltx"))+++def run_speech_job_inner(job: dict) -> None:+ p = job["params"]+ paths = speech_paths()+ if not speech_capable():+ raise RenderRefused("speech_ram", f"Speech needs about {SPEECH_MIN_RAM_GB:.0f} GB of unified memory; this Mac reports {SYSTEM_RAM_GB:.0f} GB.")+ if SPEECH_INSTALL.get("active"):+ raise RenderRefused("speech_installing", "Speech is still installing. Generate again when the install finishes.")+ if paths["missing"]:+ raise RenderRefused("pack_missing", "Speech isn't downloaded on this Mac yet. Open Audio → Speech and click Install "+ f"(~{speech_status()['install_gb']} GB, resumable).")+ if p.get("speech_voice_kind") != "preset" and p.get("speech_voice_consent") is not True:+ # make_job refuses this first; the backstop is for replayed/edited jobs,+ # so only the canonical boolean the allowlist writes counts ("false",+ # "0" or any other stored value is a refusal, never a truthy string).+ raise RenderRefused("speech_consent", "Cloning a voice needs your confirmation that it is your own voice or that you have the speaker's permission.")+ ref = p.get("speech_ref_audio") or ""+ if p.get("speech_voice_kind") != "preset" and not Path(ref).is_file():+ raise RuntimeError(f"The voice clip is gone ({ref}). Pick the voice again, then Generate.")+ gpu_token = _music_wait_for_gpu(job)+ proc = None+ work = None+ try:+ work = Path(tempfile.mkdtemp(prefix="phos-speech-"))+ _proc_guard_write("speech", 0, 0, note=f"job {job['id']}")+ if SYSTEM_RAM_GB < 48:+ HELPER.kill() # a 16–32 GB Mac needs LTX's resident weights out of the way+ if job.get("cancel_requested"):+ raise JobStopped("Speech stopped")+ OUTPUT.mkdir(parents=True, exist_ok=True)+ slug = _sb_slug(p.get("speech_title") or p.get("speech_text") or "", words=4)+ output = _unique_output_path(OUTPUT, speech_engine.output_stem(p, time.strftime("%Y%m%d_%H%M%S"), slug), ext=".wav")+ job["raw_path"] = str(output)+ text_file = work / "script.txt"+ text_file.write_text(p["speech_text"], encoding="utf-8")+ cmd = speech_engine.argv(paths["python"], SPEECH_RUNNER, SPEECH_MODELS, p, text_file,+ Path(ref) if ref else None, output)+ job["command"] = shlex.join(cmd)+ t0 = time.time()+ est = speech_estimate(p["speech_text"], p.get("speech_speed") or 1.0)+ proc = subprocess.Popen(cmd, cwd=str(ROOT),+ env=speech_engine.child_env(path=media_tool_path(os.environ.get("PATH", ""))),+ stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,+ text=True, errors="replace", bufsize=1, start_new_session=True)+ with LOCK:+ STATE["pid"] = proc.pid+ STATE["speech_pgid"] = proc.pid+ _proc_guard_write("speech", proc.pid, proc.pid, note=f"job {job['id']}")+ if job.get("cancel_requested"):+ _stop_speech_proc(pgid=proc.pid)+ tail: collections.deque = collections.deque(maxlen=6)+ done: dict = {}+ error_line = ""+ assert proc.stdout is not None+ for raw in proc.stdout:+ line = raw.rstrip()+ if not line:+ continue+ push(line)+ tail.append(line)+ parsed = speech_engine.progress(line)+ if parsed:+ if parsed["phase"] == "done":+ try:+ done = json.loads(line.split(" done ", 1)[1])+ except (IndexError, ValueError):+ done = {}+ if parsed["phase"] == "error":+ error_line = parsed["phase_label"]+ elapsed = time.time() - t0+ parsed.update(elapsed_sec=elapsed, eta_sec=est["eta_sec"],+ remaining_sec=max(0, est["eta_sec"] - elapsed), eta_measured=False)+ with LOCK:+ job["progress"] = parsed+ rc = proc.wait()+ if rc != 0 or job.get("cancel_requested"):+ # Nothing half-made is ever published.+ for leftover in (output, output.with_name(output.stem + ".partial" + output.suffix)):+ try:+ leftover.unlink()+ except OSError:+ pass+ if job.get("cancel_requested"):+ raise JobStopped("Speech stopped")+ if rc < 0:+ # Killed from outside (no Stop was asked for): almost always macOS+ # reclaiming memory. A failure with its cause, not a quiet "stopped".+ raise RuntimeError(f"The speech engine was killed by the system (signal {-rc}), usually because the Mac "+ "ran out of memory. Close other apps and browser tabs, then Generate again.")+ if rc != 0:+ raise RuntimeError(error_line or ("The speech engine exited with code %d: " % rc + " · ".join(tail)))+ if not output.is_file():+ raise RuntimeError("The speech engine finished without a WAV. See the log.")+ sidecar = {+ "engine": "speech", "mode": "speech",+ "model": "Qwen3-TTS 12Hz 1.7B (" + ("CustomVoice" if p["speech_voice_kind"] == "preset" else "Base") + ", 8-bit MLX)",+ "voice": speech_engine.voice_label(p), "voice_kind": p["speech_voice_kind"],+ "instruct": speech_engine.instruction_for(p),+ "text": p["speech_text"], "title": p.get("speech_title") or "",+ "audio_seconds": done.get("audio_seconds"), "sample_rate": done.get("sample_rate"),+ "seed": done.get("seed"), "elapsed_sec": round(time.time() - t0, 2),+ "peaks": {k: done.get(k) for k in ("mlx_peak_gb", "process_peak_gb")},+ "realtime_factor": done.get("realtime_factor"),+ "params": {k: v for k, v in p.items() if k != "speech_ref_text"},+ }+ if p["speech_voice_kind"] != "preset":+ # The record of the confirmation the request carried (AUP: no+ # impersonation). Kept with the file it authorised.+ sidecar["voice_consent"] = {"confirmed": True, "at": iso_now(),+ "statement": "The speaker is me, or I have the speaker's permission to use this voice."}+ if not write_sidecar(output.with_suffix(output.suffix + ".json"), sidecar):+ push("[speech] warning: the sidecar could not be written")+ job["output_path"] = str(output)+ push(f"[speech] done → {output.name} ({done.get('audio_seconds')} s)")+ finally:+ if proc is not None:+ if proc.poll() is None:+ try:+ os.killpg(proc.pid, signal.SIGTERM)+ proc.wait(timeout=5)+ except subprocess.TimeoutExpired:+ os.killpg(proc.pid, signal.SIGKILL)+ proc.wait()+ except ProcessLookupError:+ proc.wait()+ if proc.stdout:+ proc.stdout.close()+ with LOCK:+ STATE["pid"] = None+ STATE["speech_pgid"] = None+ _proc_guard_clear("speech")+ _music_release_gpu(gpu_token)+ if work is not None:+ shutil.rmtree(work, ignore_errors=True)++ENGINE_DEFAULT = "ltx"ENGINES: tuple[dict, ...] = (@@ -18922,7 +19952,10 @@ ENGINES: tuple[dict, ...] = (# no picture-held audio pass, so the mode is H3's alone."excluded_modes": ("v2a",),"serves_label": "every mode",- "surfaces": ("video",),+ # One Shot picks between the same two video engines, with the same+ # top picker (owner, 5 Nov 2026: the model is the first row on every+ # surface with more than one).+ "surfaces": ("video", "oneshot"),# LTX fuses as many LoRAs as you stack, from mlx_models/loras/."lora_tag": "video",# LTX's primary strip is #qualityGroup, but its visibility is owned by@@ -18951,7 +19984,7 @@ ENGINES: tuple[dict, ...] = ("modes": H3_MODES,"excluded_modes": ("character", "i2v_clean_audio"),"serves_label": "Text, Image, Keyframes, Extend, Lip-sync and Add sound",- "surfaces": ("video",),+ "surfaces": ("video", "oneshot"),# H3 takes ONE adapter through the same `--lora` flag Turbo rides, out# of its own library (see _h3_loras_dir). The picker is additionally# gated on BOOT.h3.loras.supported, because a pack cloned before@@ -18978,6 +20011,57 @@ ENGINES: tuple[dict, ...] = ("install_card": "openMusicInstallCard", "install_size": "~11 GB","size_note": f"~11 GB · needs {MUSIC_MIN_RAM_GB:.0f} GB unified memory · YuE2 license (CC BY-NC 4.0 + creator permission)",},+ # ---- Image models (the Images tab) ----------------------------------------+ # The Images tab's top "Model" picker is the SAME picker the Video and+ # Compose tabs use (owner, 5 Nov 2026: the model is the first choice on+ # every surface, because it changes what is offered under it). Each row is+ # one MODEL; `image_engines` lists the Images form's #imgStudioEngine values+ # that belong to it (its versions / quality presets, which stay in the form+ # under the picker as "Version"). The first listed value is the one picking+ # the model selects. `surfaces=("image",)` keeps every row off the Video+ # form, its mode chips and make_job; model_capabilities binds each row to+ # `images.<id>`. No probe: per-version download state is the form's chip+ # (/image/engine_status), which already says what a first render fetches.+ *({+ "builtin": False, "probe": None, "excluded_modes": (),+ "surfaces": ("image",), "lora_tag": None,+ "strip": "", "hint": "", "strip_label": "", "state": "ready", **row,+ } for row in (+ {"id": "flux2", "label": "FLUX.2", "generation": "klein 4B", "sublabel": "pictures",+ "tagline": "the recommended first model: pictures from words, edits from your photos · ~4.3 GB",+ "mark": "eng-mark-img-flux2", "accent": "#5EEAFF",+ "accent_dim": "rgba(94,234,255,0.13)", "accent_soft": "rgba(94,234,255,0.40)",+ "modes": ("t2i", "edit"), "serves_label": "Text and Edit",+ "image_engines": ("auto",), "capability": "images.flux2"},+ {"id": "flux3", "label": "FLUX 3", "generation": "Klein", "sublabel": "pictures",+ "tagline": "Black Forest Labs' newest: sharper pictures from words or references · Q8, Q6 or Q4",+ "mark": "eng-mark-img-flux3", "accent": "#7AA8FF",+ "accent_dim": "rgba(122,168,255,0.13)", "accent_soft": "rgba(122,168,255,0.40)",+ "modes": ("t2i", "edit"), "serves_label": "Text and Edit",+ "image_engines": ("flux3_distilled_q8", "flux3_distilled_q6", "flux3_distilled_q4",+ "flux3_base_q8", "flux3_base_q6", "flux3_base_q4"),+ "capability": "images.flux3"},+ {"id": "qwen_edit", "label": "Reference Edit", "sublabel": "edits",+ "tagline": "changes a photo you give it: swap a background, an outfit, combine up to 3 pictures",+ "mark": "eng-mark-img-edit", "accent": "#B14AFF",+ "accent_dim": "rgba(177,74,255,0.14)", "accent_soft": "rgba(177,74,255,0.42)",+ "modes": ("edit",), "serves_label": "Edit",+ "image_engines": ("qwen_edit_lightning_inline", "qwen_edit_inline", "qwen_edit_high_inline"),+ "capability": "images.qwen_edit"},+ {"id": "ideogram4", "label": "Ideogram 4", "sublabel": "typography",+ "tagline": "words in the picture, placed where you want them: posters, titles, layouts",+ "mark": "eng-mark-img-ideogram", "accent": "#FF8A3D",+ "accent_dim": "rgba(255,138,61,0.14)", "accent_soft": "rgba(255,138,61,0.42)",+ "modes": ("t2i", "edit"), "serves_label": "Text and Edit",+ "image_engines": ("ideogram4_inline",), "capability": "images.ideogram4"},+ {"id": "p_h3_image", "label": "P-H3-Image", "sublabel": "exact text",+ "tagline": "exact text in images, up to 8 MP, on MiniMax H3 · from words only",+ "mark": "eng-mark-img-ph3", "accent": "#FF2E9F",+ "accent_dim": "rgba(255,46,159,0.14)", "accent_soft": "rgba(255,46,159,0.42)",+ "modes": ("t2i",), "serves_label": "Text", "preview": True,+ "image_engines": ("ph3image_standard_inline", "ph3image_draft_inline", "ph3image_inline"),+ "capability": "images.p_h3_image"},+ )),# ---- Flux Video ---------------------------------------------------------# Weights are announced, not released. The entry is real (and rendered as# an inert "soon" chip) only under LTX_ENGINE_PREVIEW=1 — the same pattern@@ -19036,6 +20120,16 @@ def engine_serves_mode(engine: dict, mode: str) -> bool:return mode in modes+def _capabilities_boot() -> dict:+ """model_capabilities.payload() plus whether Pro is on for this Mac, so a+ Pro row greys with its "part of Phosphene Pro" line when it is not."""+ try:+ pro = bool(pro_status().get("active"))+ except Exception: # noqa: BLE001 - the table must render without Pro state+ pro = None+ return model_capabilities.payload(pro_active=pro)++def engines_payload() -> list[dict]:"""The registry as the page sees it. `probe` is a bootstrap KEY, not acallable, so the whole table is JSON-serialisable as-is; tuples become@@ -19914,6 +21008,8 @@ _ANALYTICS_EVENTS = (# v4.17.4 — did the voice separator actually install, by which path, and# if not, which closed reason. One event per install run."separator_install",+ # Phosphene Bench: one per submitted run, only on the person's click.+ "bench_result",)@@ -19926,6 +21022,7 @@ def _analytics_capture(event: str, props: dict | None = None) -> None:try:if not _analytics_enabled():return+ event, props = _analytics_refusal_event(event, props or {})payload = {"event": str(event)[:64],"props": _analytics_clean_props(props or {}),@@ -19948,6 +21045,39 @@ def _analytics_capture(event: str, props: dict | None = None) -> None:pass+def _analytics_capture_sync(event: str, props: dict | None = None) -> bool:+ """`_analytics_capture`, but delivered on the CALLER's thread and+ reporting whether the receiver took it. Only for a person's explicit+ click that must know the outcome (Phosphene Bench's Submit, which marks a+ run as sent only when this returns True). Same switch, same cleaning,+ same local mirror, same test-rig tag as every other event."""+ try:+ if not _analytics_enabled() or not _analytics_key():+ return False+ event, props = _analytics_refusal_event(event, props or {})+ payload = {+ "event": str(event)[:64],+ "props": _analytics_clean_props(props or {}),+ "install_id": _analytics_install_id(),+ "ts": time.time(),+ "at": iso_now(),+ "utc": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),+ }+ if _analytics_is_test_rig():+ payload["props"]["test_rig"] = True+ except Exception:+ return False+ try:+ _usage_log_append(payload)+ except Exception:+ pass+ try:+ _analytics_post(payload)+ return True+ except Exception:+ return False++def _analytics_disclose_once() -> None:"""One line, once per install, in the boot log. Users find out that thepanel does this from the panel itself — not from a docs page they'd@@ -20062,6 +21192,15 @@ def update_pressed_landed(marker: str) -> tuple[bool, str]:4.17.5: a different VERSION landed; so did a different build under the SAMEVERSION (a SHA change). The same VERSION and the same SHA did not. A markerfrom 4.17.4 or earlier has no SHA and compares by VERSION alone."""+ if _root_is_checkout():+ try:+ rec = update_transaction.Transaction(ROOT).read()+ if rec and rec.get("phase") != "current":+ return (rec.get("phase") == "succeeded"+ and rec.get("candidate") == boot_build_stamp().get("sha")+ and rec.get("candidate") != str(marker or "").partition("@")[2]), str(marker or "").partition("@")[0]+ except update_transaction.UpdateError:+ return False, str(marker or "").partition("@")[0]ver, _, sha = str(marker or "").partition("@")if ver != running_version():return True, ver@@ -20179,7 +21318,11 @@ def _analytics_job_secrets(job: dict) -> list:# A cover's source recording and a song's parent are the user's# file names; the path regex strips the directory and left the# basename standing ("<path> unreleased demo.wav" — Codex).- "music_source_audio", "music_parent", "music_abc_path"):+ "music_source_audio", "music_parent", "music_abc_path",+ # Speech: the script, the clip's words, the clip itself, a+ # character's id and display name.+ "speech_text", "speech_ref_text", "speech_ref_audio",+ "speech_character", "speech_character_name", "speech_title"):v = p.get(k)if isinstance(v, str) and v.strip():out.append(v.strip())@@ -20267,7 +21410,11 @@ def _analytics_wall_sec_bucket(seconds):_ANALYTICS_SOURCES = ("form", "batch", "storyboard", "characters",- "image_studio", "retry", "api", "chain", "unknown")+ "image_studio", "retry", "api", "chain",+ # Phosphene Bench (bench.py): its renders are real+ # renders, and tagged so the fleet medians can keep+ # or drop them on purpose.+ "bench", "unknown")def _analytics_source(p: dict, job: dict | None = None) -> str:@@ -20700,6 +21847,12 @@ _ANALYTICS_REFUSAL_REASONS = (# before it is downloaded or first run - a one-time prompt, not a fault# (4.19.8). Every message model_licences.refusal() builds carries it.("licence_required", ("accept the licence once",)),+ # Audio → Speech (speech_engine.py): a Mac under the 16 GB floor, a line+ # queued while the install runs, and a clone without the voice-owner+ # confirmation (the worker's backstop; make_job refuses it first).+ ("speech_ram", ("speech needs about",)),+ ("speech_installing", ("speech is still installing",)),+ ("speech_consent", ("needs your confirmation that it is your own voice",)),# A render on an LTX pack that is not completely on disk (ltx_pack_preflight):# the install or a download is unfinished, and the message names the files# and offers Repair. Counted as a failure until 4.19.16 (fleet #206: a fresh@@ -20748,6 +21901,26 @@ def _analytics_refusal_reason(raw) -> str | None:return None+def _analytics_refusal_event(event: str, props: dict) -> tuple[str, dict]:+ """Keep known refusals out of fault events at the capture boundary too.++ The worker already classifies RenderRefused. Older callers can supply a+ failed event with only its error signature, so enforce the same contract+ before either the local usage log or the delivery thread sees it.+ """+ if event != "render_failed":+ return event, props+ reason = next((r for r in (props.get("refusal"),+ _analytics_refusal_reason(props.get("error_signature")))+ if r in _ANALYTICS_REFUSAL_SLUGS), None)+ if reason is None:+ return event, props+ clean = {k: v for k, v in props.items()+ if k not in ("error_class", "error_signature", "error_fingerprint", "train_error")}+ clean["refusal"] = reason+ return "render_refused", clean++# Closed error taxonomy (spec 2.7). Classification runs on the ORIGINAL# error string, locally; only the class leaves the machine. Order is# load-bearing: `refused` must win over everything (the Ingredients refusal@@ -21075,6 +22248,7 @@ def _analytics_render_event(job: dict) -> None:props["h3_sampler"] = ("fast" if p.get("h3_tristep") else"turbo" if p.get("h3_turbo") else"flex" if p.get("h3_flex") else+ "flex_turbo" if p.get("h3_flex_turbo") else"v13" if p.get("h3_v13") else "best")# 4.17.5: did this render run in short GPU steps (the Metal watchdog# path), and did a watchdog kill get re-run inside the same job?@@ -22372,7 +23546,8 @@ def _upscale_finish_cmd(video: str, audio_source: str | None, out: str, *,def _upscale_finish(video_path: Path, audio_source: str, *, frames: int,- fps: float, trim: bool, job: dict | None = None) -> bool:+ fps: float, trim: bool, job: dict | None = None,+ label: str | None = None) -> bool:"""Bring the ×2 render back to the source clip's length and soundtrack.Returns whether the source's audio is on the result. The whole point of@@ -22385,6 +23560,9 @@ def _upscale_finish(video_path: Path, audio_source: str, *, frames: int,silent 121-frame clip came back with invented audio while a silent124-frame clip came back silent. A source whose audio could not bePROBED is not treated as silent: its sound is muxed in if it has any."""+ # `label` names the mode in its messages: Colorize runs this same finish+ # (a re-render of the user's clip keeps that clip's sound, 4 Nov 2026).+ who = label or FACE_FIX_NAMEstate = _probe_audio_state(audio_source)want_source = state in ("audio", "unknown")tmp = video_path.with_name(video_path.stem + ".mux.mp4")@@ -22401,7 +23579,7 @@ def _upscale_finish(video_path: Path, audio_source: str, *, frames: int,cmd[cmd.index("1:a:0")] = "1:a:0?"try:r = run_tracked_subprocess(cmd, pgid_key="mux_pgid",- label="the ×2 finish", job=job,+ label=f"the {who} finish", job=job,timeout=900)except subprocess.TimeoutExpired:tmp.unlink(missing_ok=True)@@ -22417,14 +23595,14 @@ def _upscale_finish(video_path: Path, audio_source: str, *, frames: int,if ok and state == "unknown":kept = _probe_audio_state(str(tmp)) == "audio"if not ok and want_source:- push(f"{FACE_FIX_NAME}: could not carry the source sound over ({err}) — "+ push(f"{who}: could not carry the source sound over ({err}) — ""delivering the clip without sound")ok, err = _run(False)if not ok:raise RuntimeError(- (f"{FACE_FIX_NAME}: could not cut the render back to {frames} frames: {err}"+ (f"{who}: could not cut the render back to {frames} frames: {err}"if trim else- f"{FACE_FIX_NAME}: could not finish the clip (removing the model's own "+ f"{who}: could not finish the clip (removing the model's own "f"soundtrack failed): {err}"))tmp.replace(video_path)return kept@@ -23069,7 +24247,9 @@ def list_outputs(# prompt would (see the 400->160 trim on _output_search_text just# above this loop). 80 chars is plenty for "first ~6 words".prompt_snippet = None+ clip_title_text = ""out_mode = None # t2v / i2v / image / music / ... — the card's "mode" chip+ pro_receipt_meta = None # the Pro speed receipt from the sidecar, None on Free renders# Which film this clip is a shot of, if any — {"id": ..., "n": 3} or None.# Derived from the sidecar read already happening below, so it costs# nothing, and it is what puts an S03 badge on a gallery card. None for@@ -23194,9 +24374,17 @@ def list_outputs(_pr = _sc_params.get("prompt") or meta.get("prompt")if isinstance(_pr, str) and _pr.strip():prompt_snippet = _pr.strip()[:80]+ # One human title (user label wins, else the scene's first+ # sentence with H3 scaffolding stripped), computed at read time+ # from the FULL prompt, never from the 80-char snippet.+ clip_title_text = clip_title.display_title(+ _pr if isinstance(_pr, str) else "",+ _sc_params.get("label") or meta.get("label"))_md = _sc_params.get("mode") or meta.get("mode")if isinstance(_md, str) and _md:out_mode = _md+ if isinstance(meta.get("pro"), dict):+ pro_receipt_meta = meta["pro"]elif engine == "music":out_mode = "music"sb_tag = _sb_tag_from(_sc_params.get("session_tag"))@@ -23266,7 +24454,10 @@ def list_outputs("frames": ltx_frames,# VC-36: the gallery card's prompt snippet + mode chip."prompt": prompt_snippet,+ "title": clip_title_text,"mode": out_mode,+ # The Pro speed receipt (write_sidecar stamps it only when a Pro profile ran); None on Free renders.+ "pro": pro_receipt_meta,# Storyboard provenance, or None. One badge on the card, one click# back to the film it belongs to — and invisible for every clip# that isn't part of one.@@ -23311,6 +24502,60 @@ SIDECAR_WARNING = ("The clip was saved, but its settings record ({name}) could n"next render starts, without rendering anything.")+# ---------------------------------------------------------------- Pro (the paid speed profiles)+# Measured on the M4 Max / 64 GB reference, same clip, same seed (today-2026-10-26/pro-speed/comparisons):+# the ratio of Free wall time to Pro wall time per engine. A receipt uses the ratio for the ONE number it+# shows ("saved ~N min"); it never claims a time that was not measured.+PRO_SPEEDUPS = {"h3": 1.48, "ltx": 1.29, "image": 1.54}+PRO_PLANS = {"monthly": "Pro", "yearly": "Pro", "founding": "Founding", "hardship": "Pro", "pro": "Pro", "dev": "Pro"}+++def pro_status() -> dict:+ """Is Pro active on this Mac. The ONLY source is the signed capability token the licence+ server issues for a Pro licence on this Mac (pro_token.py; the Mac app passes it in+ PHOSPHENE_PRO_TOKEN / PHOSPHENE_PRO_TOKEN_FILE and renews it). It used to be an unsigned+ state/pro.json that nothing wrote: a paying Mac-app user read as Free here (H3 Flex Turbo+ refused) while anyone could switch Pro on by writing that file. A file is no longer read.+ PHOSPHENE_PRO=<plan> remains as a developer override for the PRO chrome, honoured only on+ a test rig (PHOSPHENE_TEST_RIG=1). PHOSPHENE_PRO_PLAN (set by the app) only names the plan+ on a valid token; it never turns Pro on. Free is the default and carries no message."""+ off = {"active": False, "plan": None, "label": None, "until": None, "holder": None}+ env = (os.environ.get("PHOSPHENE_PRO") or "").strip().lower()+ if env and env not in ("0", "no", "off", "false") and os.environ.get("PHOSPHENE_TEST_RIG") == "1":+ plan = env if env in PRO_PLANS else "dev"+ return {"active": True, "plan": plan, "label": PRO_PLANS[plan], "until": None, "holder": None, "source": "env"}+ try:+ import pro_token+ st = pro_token.status()+ except Exception as exc: # noqa: BLE001 - a broken check reads Free, never crashes the page+ return {**off, "source": "none", "reason": "check_failed: %s" % type(exc).__name__}+ if not st.get("ok"):+ reason = st.get("reason") or "missing"+ return {**off, "source": "expired" if reason == "expired" else "none", "reason": reason}+ from datetime import datetime as _dt, timezone as _tz+ until = _dt.fromtimestamp(int(st["expires_at"]), _tz.utc).strftime("%Y-%m-%dT%H:%M:%SZ")+ plan = (os.environ.get("PHOSPHENE_PRO_PLAN") or "").strip().lower()+ plan = plan if plan in PRO_PLANS and plan != "dev" else "pro"+ return {"active": True, "plan": plan, "label": PRO_PLANS.get(plan, "Pro"), "until": until,+ "holder": None, "source": "licence", "reason": "ok"}+++def pro_receipt(payload: dict) -> dict | None:+ """The sidecar's Pro receipt: only when the render ran a Pro speed profile (params.pro_profile, admitted+ by the Pro pipeline) and the elapsed time is known. Free renders never get one."""+ params = payload.get("params") if isinstance(payload.get("params"), dict) else {}+ profile = params.get("pro_profile")+ elapsed = payload.get("elapsed_sec")+ if not profile or not isinstance(elapsed, (int, float)) or elapsed <= 0:+ return None+ engine = str(payload.get("engine") or params.get("engine") or "ltx").lower()+ key = "image" if payload.get("mode") == "image" or engine in ("flux", "mflux", "image") else ("h3" if engine == "h3" else "ltx")+ ratio = float(payload.get("pro_speedup") or PRO_SPEEDUPS.get(key, 1.0))+ free_equivalent = round(float(elapsed) * ratio, 1)+ return {"profile": str(profile)[:40], "engine_key": key, "speedup": round(ratio, 2), "elapsed_sec": round(float(elapsed), 1),+ "free_equivalent_sec": free_equivalent, "saved_sec": round(free_equivalent - float(elapsed), 1), "measured_on": "M4 Max · 64 GB"}++def write_sidecar(path: Path, payload: dict) -> bool:"""Write a clip's sidecar. Returns False when it could not be written.@@ -23322,6 +24567,9 @@ def write_sidecar(path: Path, payload: dict) -> bool:lands on the queue job as a `warning` (the history row shows it) and thepayload is kept on the job, so retry_pending_sidecars() can write it oncethere is space again — the video itself is never re-rendered for it."""+ receipt = pro_receipt(payload)+ if receipt and "pro" not in payload:+ payload["pro"] = receipttry:atomic_write_text(path, json.dumps(payload, indent=2))return True@@ -23438,6 +24686,13 @@ def load_queue() -> None:stale["started_at"] = Nonestale["error"] = NoneSTATE["queue"].insert(0, stale)+ # Phosphene Bench steps belong to a run that died with the previous+ # process: re-running them would render with nobody measuring, and a+ # half-run suite is not a result. Dropped, and said so.+ _orphans = [j for j in STATE["queue"] if (j.get("params") or {}).get("source") == "bench"]+ if _orphans:+ STATE["queue"] = [j for j in STATE["queue"] if j not in _orphans]+ print(f"dropped {len(_orphans)} Phosphene Bench step(s) left over from the last run", flush=True)# ---- warm helper -------------------------------------------------------------@@ -24479,6 +25734,8 @@ _PROC_GUARDS: dict[str, tuple[Path, str]] = {"h3": (STATE_DIR / "h3_running.json", "generate_staged"),"music": (STATE_DIR / "music_running.json", "yue2_run.py"),"music_install": (STATE_DIR / "music_install_running.json", "scripts/pinokio/music_"),+ "speech": (STATE_DIR / "speech_running.json", "speech_run.py"),+ "speech_install": (STATE_DIR / "speech_install_running.json", "scripts/speech/speech_"),"helper": (STATE_DIR / "helper_running.json", "mlx_warm_helper"),}@@ -24884,6 +26141,15 @@ def _image_job_cancelled() -> bool:agent_image_engine._CANCEL_CHECK = _image_job_cancelled+def _begin_image_diagnostic():+ # Sync/character calls have no selected panel preset. Do not invent one.+ import image_diagnostics+ return image_diagnostics.begin(STATE_DIR, "unknown", _analytics_enabled)+++agent_image_engine._DIAGNOSTIC_BEGIN = _begin_image_diagnostic++def _register_job_pgid(key: str, pgid: int, job: dict | None = None) -> None:"""Publish a freshly spawned process group where Stop looks for it.@@ -25064,10 +26330,13 @@ def stop_current_job(timeout: float = 5.0, expect_id: str | None = None) -> booltrain_pgid = STATE.get("train_pgid")h3_pgid = STATE.get("h3_pgid")music_pgid = STATE.get("music_pgid")+ speech_pgid = STATE.get("speech_pgid")push("Stop requested — killing helper + ffmpeg post-process + training subprocess to abort current job.")HELPER.kill()if music_pgid:_stop_music_proc(pgid=music_pgid)+ if speech_pgid:+ _stop_speech_proc(pgid=speech_pgid)# Image-engine subprocesses (HiDream's BF16 helper, mflux's per-family# binaries) live outside HELPER. Without this they would run to# completion regardless of /stop. Each engine registers its Popen via@@ -25741,6 +27010,29 @@ def take_light_lock(prompt: str) -> str:f"of day, weather or season.")+def take_scene(prompt: str, beats: list[str]) -> str:+ """The shot's own description, carried into every part when the user wrote+ beats of their own (golive 5 Nov 2026). Before this a take with written+ beats rendered ONLY the beats: "a dim gothic cathedral, robots in the+ pews" plus the beat "the robots bow their heads" came back as 30 s of a+ sailing ship, because no part ever saw the prompt. Returns "" when there+ is nothing to add: no prompt, no beat written, or the beats ARE the+ prompt's own sentences (the tab's "split the prompt" button), where+ repeating it would put every later event into part 1. Sentences with a+ quoted line are left out: a spoken line belongs to its beat, never to+ every part (the Long clip row said its line twice)."""+ text = " ".join(str(prompt or "").split())+ written = [" ".join(str(b or "").split()) for b in (beats or []) if str(b or "").strip()]+ if not text or not written:+ return ""+ low = text.lower()+ if all(w.lower() in low for w in written):+ return ""+ sents = re.split(r"(?<=[.!?])\s+", text)+ keep = [x for x in sents if not re.search(r'["\u201c\u201d<]', x)]+ return " ".join(keep).strip()++def take_camera_lock(camera: str, continuing: bool) -> str:"""One sentence that holds the CAMERA across a join.@@ -30490,16 +31782,16 @@ DELIVER_SIZES = {"native": 0, "1080p": 1080, "2160p": 2160}DELIVER_FINISH = {"none": 0, "grain": 9, "heavy_grain": 18}-def _sb_deliver(fmt, size, finish=None, loudnorm=False) -> dict:+def _sb_deliver(fmt, size, finish=None, loudnorm=True) -> dict:"""The delivery choice, resolved: `{format, size, height, ext, label,finish, grain, loudnorm}`.- FILM-28: `loudnorm` is OFF by default — a mix the owner graded by ear is- not something a render should quietly retarget. On, it asks the encode- for -14 LUFS (streaming's own convention: Spotify, YouTube and TikTok- all normalise around there), so a film meant for one of those does not- need a second pass in another tool just to stop sounding quiet next to- everything around it.+ `loudnorm` is the MASTER, ON by default (2 Nov): a peak limiter, then+ -15 LUFS integrated with true peaks under -2 dBTP — the master the+ agents' cuts end with. Off by default (FILM-28) the editor's film of+ SUNDAY MASS measured 3-4 dB quieter than the agent's cut and ~8 dB+ quieter in the dialogue. Off stays one untick away for a mix that must+ leave exactly as graded."""f = str(fmt or "h264").strip().lower()if f not in DELIVER_FORMATS:@@ -30513,8 +31805,8 @@ def _sb_deliver(fmt, size, finish=None, loudnorm=False) -> dict:label = DELIVER_FORMATS[f]["label"] + ("" if s == "native" else f" · {s}")if fin != "none":label += " · " + fin.replace("_", " ")- if loudnorm:- label += " · -14 LUFS"+ if loudnorm is False: # said OFF; absent (a storyboard film) is not labelled+ label += " · no master"return {"format": f, "size": s, "height": DELIVER_SIZES[s],"ext": DELIVER_FORMATS[f]["ext"], "finish": fin,"grain": DELIVER_FINISH[fin], "loudnorm": bool(loudnorm),@@ -30762,7 +32054,13 @@ def _sb_assemble_film(clips: list, out_path, *, plan: list | None = None,# stream, and ffmpeg refuses that outright — "Simple and complex# filtering cannot be used together for the same stream" — so every# film rendered with -14 LUFS on failed before writing a frame.- graph += ";[aout]loudnorm=I=-14:TP=-1.5:LRA=11[aoutln]"+ # THE MASTER: a limiter first (peaks to -1 dBFS, so loudnorm's own+ # look-ahead is not asked to do brick-wall work), then -15 LUFS with+ # true peaks under -2 dBTP — the chain the agents' cuts end with.+ # loudnorm is asked for -2.5: the AAC encode after it adds a few+ # tenths (measured on SUNDAY MASS: -2.0 asked, -1.8 dBTP in the file).+ graph += (";[aout]alimiter=limit=0.891:attack=5:release=50:level=disabled,"+ "loudnorm=I=-15:TP=-2.5:LRA=11[aoutln]")alabel = "[aoutln]"cmd += ["-filter_complex", graph,@@ -31036,8 +32334,10 @@ def _sbe_render_edit(board: dict, edit: dict, *, music=None,# about where the music starts.win = sedit.music_window(audio)dest = _sb_film_dir_for_write(board)+ # The EDITOR's render is mastered unless the caller says otherwise: a+ # caller with no delivery dict (an agent, a script) gets it too.dl = _sb_deliver((deliver or {}).get("format"), (deliver or {}).get("size"),- (deliver or {}).get("finish"), (deliver or {}).get("loudnorm"))+ (deliver or {}).get("finish"), (deliver or {}).get("loudnorm", True))name = out_name or _sb_film_name(board, deliver=dl)gaps = sedit.edit_gaps(edit)kinds = {}@@ -31073,7 +32373,11 @@ def _sbe_render_edit(board: dict, edit: dict, *, music=None,timeline=cuts, music=music, music_start=win["start"],music_end=win["end"], music_delay=win["delay"], music_mode=mmode,music_gain=sedit.bed_render_gain(edit),- overlays=sedit.overlay_items(edit),+ # TITLES ABOVE PICTURES: the chain composites in list order, so every+ # title goes after every picture overlay (a stable sort keeps film+ # order inside each layer). A title may share seconds with a logo.+ overlays=sorted(sedit.overlay_items(edit),+ key=lambda o: sedit.overlay_kind(o) == "text"),deliver=dl, sound_strips=strips or None, declick=SB_DECLICK_S)# FILM-58: SEQUENCE ASPECT — a post-process crop of the finished film,# not a change to the assembly graph above (see `_sb_crop_to_aspect`).@@ -31673,6 +32977,15 @@ def _sbe_prepare_inner(board_id: str, music: str | None,except OSError:passfreed = sedit.prune_proxies(plan["stale"])+ # THE OVERLAY LANE'S VIDEOS get their previews in the same pass, so a+ # film opens with its logo playing on the stage, not a "?" over it.+ try:+ _ovs = (sedit.load_edit(bdir) or {}).get("overlays") or []+ if _ovs:+ _sbe_set(board_id, stage="overlays")+ _sbe_overlay_previews_now(bdir, _ovs, sedit, prune=True)+ except Exception as exc: # noqa: BLE001+ push(f"[timeline] overlay previews skipped: {exc}")proxy_secs = round(time.time() - t0, 3)_sbe_set(board_id, done=total, built=built, failed=failed,pruned=freed, proxy_seconds=proxy_secs)@@ -32047,7 +33360,12 @@ def _sbe_room_tone_auto(board: dict, edit: dict, sedit) -> None:"""Lay a "From this film" bed under an automatic cut, when the setting ison. Mutates `edit`. Best-effort: a bed that cannot be made is a log line,never a failed cut."""- if not bool(get_settings().get("room_tone_auto", True)):+ if not bool(get_settings().get("room_tone_auto", False)):+ return+ # ONLY A CUT THE EDITOR MADE BY ITSELF. A timeline that arrives finished+ # (an agent's cut handed over, an import, a hand cut) already has the+ # sound its maker chose; laying hiss under it is not ours to do.+ if str(edit.get("origin") or "auto").lower() != "auto":returnif sedit.room_tone_track(edit) or not (edit.get("clips") or []):return@@ -32068,7 +33386,11 @@ def _sbe_room_tone_auto(board: dict, edit: dict, sedit) -> None:if not facts.get("ok"):push(f"[timeline] no automatic room tone: {facts.get('error')}")return- track = sedit.room_tone_new_track(facts, film_len, level=rt.DEFAULT_LEVEL)+ # AT THE ROOM'S OWN LEVEL, measured from these clips (a few dB under+ # it), not a fixed -38 LUFS that played 15-25 dB over the room.+ level = facts.get("suggest_level")+ track = sedit.room_tone_new_track(+ facts, film_len, level=rt.DEFAULT_LEVEL if level is None else level)except Exception as exc: # noqa: BLE001push(f"[timeline] room tone skipped: {type(exc).__name__}: {exc}")return@@ -32110,6 +33432,250 @@ def _sbe_proxy_now(board_dir: Path, paths: list[str], sedit) -> dict:return {"built": built, "reused": len(plan["reuse"]), "failed": failed}+def _sbe_probe_media(path) -> dict | None:+ """`{"duration", "has_video", "has_audio", "pix_fmt"}` for any media file,+ or None when ffprobe cannot read it. `duration` is the VIDEO stream's own+ length when there is one (the number the timeline's `duration` means),+ else the audio stream's, else the container's."""+ try:+ out = subprocess.run(+ [str(FFPROBE), "-v", "error", "-show_entries",+ "stream=codec_type,pix_fmt,duration:format=duration",+ "-of", "json", str(path)],+ capture_output=True, text=True, errors="replace", timeout=60)+ data = json.loads(out.stdout or "{}") if out.returncode == 0 else None+ except (OSError, subprocess.SubprocessError, ValueError):+ return None+ if not isinstance(data, dict):+ return None+ v_dur = a_dur = 0.0+ pix, has_v, has_a = "", False, False+ for st in data.get("streams") or []:+ if not isinstance(st, dict):+ continue+ try:+ d = float(st.get("duration") or 0.0)+ except (TypeError, ValueError):+ d = 0.0+ if st.get("codec_type") == "video" and not has_v:+ has_v, pix, v_dur = True, str(st.get("pix_fmt") or ""), d+ elif st.get("codec_type") == "audio":+ has_a, a_dur = True, max(a_dur, d)+ try:+ f_dur = float((data.get("format") or {}).get("duration") or 0.0)+ except (TypeError, ValueError):+ f_dur = 0.0+ if not (has_v or has_a):+ return None+ dur = (v_dur if has_v and v_dur > 0 else 0.0) or (a_dur if a_dur > 0 else 0.0) or f_dur+ return {"duration": round(dur, 6), "has_video": has_v, "has_audio": has_a,+ "pix_fmt": pix}+++def _sbe_overlay_preview_map(board_dir: Path, overlays, sedit) -> dict:+ """{overlay path: "proxy/ov-<name>.mp4"} for the previews that EXIST —+ the overlay lane's half of `_sbe_proxy_map`, served by the same route."""+ out: dict[str, str] = {}+ d = sedit.proxy_dir(board_dir)+ for o in overlays or []:+ if not isinstance(o, dict) or sedit.overlay_kind(o) != "video":+ continue+ pth = str(o.get("path") or "")+ if not pth:+ continue+ name = sedit.overlay_preview_name(pth)+ if (d / name).is_file():+ out[pth] = f"proxy/{name}"+ return out+++def _sbe_overlay_previews_now(board_dir: Path, overlays, sedit, *,+ prune: bool = False) -> dict:+ """Build the missing overlay previews for these overlays, synchronously.++ A preview that cannot be made (no VideoToolbox HEVC encoder on this+ machine, a file ffmpeg cannot read) is recorded and skipped: the stage+ then shows a quiet "not previewable here" label for that overlay, and the+ render — which reads the original — is unaffected."""+ plan = sedit.plan_overlay_previews(overlays, board_dir)+ built, failed = 0, []+ if plan["build"]:+ plan["dir"].mkdir(parents=True, exist_ok=True)+ for row in plan["build"]:+ info = _sbe_probe_media(row["path"]) or {}+ alpha = sedit.pix_fmt_has_alpha(info.get("pix_fmt"))+ try:+ run_ffmpeg_tracked(+ sedit.overlay_preview_cmd(FFMPEG, row["path"], row["preview"],+ alpha=alpha),+ "Overlay preview")+ built += 1+ except Exception as exc: # noqa: BLE001+ failed.append({"path": row["path"], "error": str(exc)[-300:]})+ try:+ Path(row["preview"]).unlink()+ except OSError:+ pass+ pruned = sedit.prune_proxies(plan["stale"]) if prune else 0+ if built or failed:+ push(f"[timeline] overlay preview: {built} built, "+ f"{len(plan['reuse'])} reused, {len(failed)} failed")+ return {"built": built, "reused": len(plan["reuse"]), "failed": failed,+ "pruned": pruned}+++# ---- an agent's cut -> a film in the Editor -------------------------------+# See `storyboard_editor.edit_from_cut` for the spec and its rules; this is+# the half that touches disk: every file is probed, brought under the film's+# own folder when it lives outside the panel's outputs (hardlinked, copied+# across volumes — the original is never touched, and /file only serves+# OUTPUT), one board shot per distinct clip so the film is a normal film,+# the edit saved as a manual save, and the preparation started so the first+# play scrubs on proxies with the overlay visible.+def _sbe_import_cut(spec: dict, *, wait: bool = False) -> dict:+ sedit = _sbe_import()+ if not isinstance(spec, dict):+ return {"ok": False, "status": 400, "error": "the cut must be a JSON object"}+ ver = spec.get("phosphene_cut", sedit.CUT_SPEC_VERSION)+ try:+ ver = int(ver)+ except (TypeError, ValueError):+ ver = -1+ if ver != sedit.CUT_SPEC_VERSION:+ return {"ok": False, "status": 400,+ "error": f"this Phosphene reads cut spec version "+ f"{sedit.CUT_SPEC_VERSION}, not {spec.get('phosphene_cut')!r}"}+ title = str(spec.get("title") or "Imported cut").strip()[:120] or "Imported cut"+ # Every path the spec names, in one place, so each is probed once.+ refs: list[tuple[str, str]] = [] # (role, raw path)+ for r in spec.get("clips") or []:+ if isinstance(r, dict) and r.get("path"):+ refs.append(("clip", str(r["path"])))+ st = spec.get("soundtrack")+ if isinstance(st, dict) and st.get("path"):+ refs.append(("soundtrack", str(st["path"])))+ for o in spec.get("overlays") or []:+ if isinstance(o, dict) and o.get("path"):+ refs.append(("overlay", str(o["path"])))+ for a in spec.get("sounds") or []:+ if isinstance(a, dict) and a.get("path"):+ refs.append(("sound", str(a["path"])))+ if not any(role == "clip" for role, _ in refs):+ return {"ok": False, "status": 400, "error": "the cut has no clips"}+ probes: dict[str, dict] = {}+ errors: list[str] = []+ for role, raw in refs:+ pth = str(Path(raw).expanduser())+ if pth in probes:+ continue+ if not Path(pth).is_file():+ errors.append(f"{role}: there is no file at {raw}")+ continue+ info = _sbe_probe_media(pth)+ if not info:+ errors.append(f"{role}: {Path(pth).name} is not media this panel can read")+ continue+ if role == "clip" and not info["has_video"]:+ errors.append(f"clip: {Path(pth).name} has no picture")+ continue+ if role in ("soundtrack", "sound") and not info["has_audio"]:+ errors.append(f"{role}: {Path(pth).name} has no sound")+ continue+ probes[pth] = info+ if errors:+ return {"ok": False, "status": 400, "error": errors[0], "errors": errors}++ bid = _sb_new_id(title)+ board = storyboard.new_storyboard(bid, title)+ board["policy"] = _sb_policy_for(+ get_settings().get("storyboard_draft_quality", "quick"),+ get_settings().get("storyboard_final_quality", "standard"))+ board["imported_cut"] = {"at": int(time.time()),+ "source": str(spec.get("source") or "")[:300]}+ storyboard.save_storyboard(STATE_DIR, board)+ out_root = OUTPUT.resolve()+ moved: dict[str, str] = {}+ media_dir = None+ for pth in probes:+ src = Path(pth).resolve()+ if src.is_relative_to(out_root):+ moved[pth] = str(src)+ continue+ if media_dir is None:+ media_dir = _sb_film_dir_for_write(board) / "media"+ media_dir.mkdir(parents=True, exist_ok=True)+ dest = media_dir / re.sub(r"[^A-Za-z0-9._-]+", "_", src.name)+ if dest.exists() and not dest.samefile(src):+ dest = media_dir / f"{hashlib.sha1(str(src).encode()).hexdigest()[:6]}_{dest.name}"+ if not dest.exists():+ try:+ os.link(str(src), str(dest))+ except OSError:+ shutil.copy2(str(src), str(dest))+ moved[pth] = str(dest)++ def remap(row: dict) -> dict:+ r = dict(row)+ if r.get("path"):+ r["path"] = moved.get(str(Path(str(r["path"])).expanduser()), r["path"])+ return r++ spec2 = dict(spec)+ spec2["clips"] = [remap(r) for r in spec.get("clips") or [] if isinstance(r, dict)]+ if isinstance(st, dict) and st.get("path"):+ spec2["soundtrack"] = remap(st)+ spec2["overlays"] = [remap(o) for o in spec.get("overlays") or [] if isinstance(o, dict)]+ spec2["sounds"] = [remap(a) for a in spec.get("sounds") or [] if isinstance(a, dict)]+ durations = {moved[k]: v["duration"] for k, v in probes.items()}+ # A still has no length of its own; the slot decides it.+ made = sedit.edit_from_cut(spec2, durations, board_id=bid)+ if made["errors"]:+ return {"ok": False, "status": 400, "error": made["errors"][0],+ "errors": made["errors"], "id": bid}+ edit = made["edit"]+ # ONE SHOT PER DISTINCT CLIP, so this is an ordinary film: the board lists+ # its shots, a retake has a shot to clone, and Prepare's proxy set (board+ # shots plus the timeline) covers every clip.+ seen: dict[str, int] = {}+ for c in edit["clips"]:+ if c["path"] in seen or sedit.clip_kind(c) != "video":+ continue+ seen[c["path"]] = len(seen) + 1+ board.setdefault("shots", []).append({+ "n": seen[c["path"]], "title": str(c.get("title") or "")[:60],+ "mode": "text", "engine": "ltx", "prompt": "",+ "duration_s": max(1.0, min(60.0, round(float(+ c.get("duration") or 5.0), 1))),+ "seed": -1, "refs": [], "status": "done",+ "draft_output": c["path"]})+ _sb_normalize(board)+ storyboard.save_storyboard(STATE_DIR, board)+ bdir = _sbe_board_dir(bid)+ try:+ sedit.save_edit(bdir, edit, origin="manual")+ except sedit.EditError as exc:+ return {"ok": False, "status": 400, "error": str(exc), "id": bid}+ push(f"[timeline] imported a cut as {title!r} ({bid}): "+ f"{len(edit['clips'])} clips" + (f", {len(made['notes'])} note(s)"+ if made["notes"] else ""))+ music = (edit.get("audio") or {}).get("path") or None+ with _SBE_LOCK:+ _SBE_JOBS[bid] = {"id": bid, "state": "running", "stage": "start",+ "cancel": False, "done": 0, "total": 0,+ "started_at": time.time(), "music": music}+ if wait:+ _sbe_prepare_thread(bid, music, None)+ else:+ threading.Thread(target=_sbe_prepare_thread, daemon=True,+ name=f"phos-sbe-prep-{bid}",+ args=(bid, music, None)).start()+ return {"ok": True, "id": bid, "title": title, "notes": made["notes"],+ "clips": len(edit["clips"]), "duration": edit["duration"],+ "imported_files": sum(1 for k, v in moved.items() if k != v),+ "editor_url": f"/?open_film={bid}",+ "prepare": _sbe_job_state(bid)}++def _sbe_auto_edit(board: dict, *, music: str | None = None,target_seconds: float | None = None,min_shot: float = 1.5,@@ -32377,6 +33943,13 @@ def _sbe_payload(board: dict, edit: dict) -> dict:for c in (edit.get("clips") or []):if isinstance(c, dict):c["proxy"] = proxies.get(str(c.get("path")))+ # ...and every VIDEO overlay's preview pointer, by the same rule: what is+ # on disk now, null when there is none yet (the stage then says so+ # quietly instead of painting a broken player).+ ov_prev = _sbe_overlay_preview_map(bdir, edit.get("overlays") or [], sedit)+ for o in (edit.get("overlays") or []):+ if isinstance(o, dict) and sedit.overlay_kind(o) == "video":+ o["preview"] = ov_prev.get(str(o.get("path") or ""))return {"ok": True,"id": board["id"],@@ -32446,6 +34019,12 @@ class MusicRequestError(CharacterRequestError):with a polite 400 (/queue/add among them) answers this one too."""+class SpeechRequestError(CharacterRequestError):+ """A speech request that cannot be queued as asked (no line, an unknown+ voice, a clone without the voice-owner confirmation). A subclass for the+ same reason as MusicRequestError: /queue/add answers it with a 400."""++def music_lora_unresolved(raw) -> list[str]:"""Picked adapter ids that do not resolve inside the LoRA folder.@@ -33690,8 +35269,13 @@ def job_input_refusal(params: dict) -> str | None:m = str(p.get("mode") or "t2v").strip().lower()if m == "image":return image_job_input_refusal(p)- if m in ("music", "train"):+ if m in ("music", "train", "speech"):return None+ if p.get("engine", "ltx") == "ltx":+ for key in capability_repo_keys("render"):+ reason = model_path_problem(_deferred_repo(key))+ if reason:+ return reasonif m not in QUEUEABLE_VIDEO_MODES:return (f"Unknown render mode {m!r} - nothing was queued. Pick a mode "f"in the form (Text, Image, Lip-sync, Keyframes, Extend, "@@ -33874,6 +35458,19 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,"elapsed_sec": None, "params": params, "command": None,"raw_path": None, "output_path": None, "error": None}+ if mode_in == "speech" or f("engine") == "speech":+ try:+ params = speech_engine.validate_speech(+ speech_engine.speech_params(form, normalize_pasted_path), list_characters())+ except speech_engine.SpeechRequestError as e:+ raise SpeechRequestError(str(e)) from None+ params["prompt"] = params["speech_text"][:200]+ params["label"] = ("Speech · " + speech_engine.voice_label(params) + ": " + params["speech_text"].replace("\n", " "))[:80]+ return {"id": _new_job_id(), "status": "queued", "queued_at": iso_now(),+ "started_at": None, "started_ts": None, "finished_at": None,+ "elapsed_sec": None, "params": params, "command": None,+ "raw_path": None, "output_path": None, "error": None}+if mode_in == "train":# Training jobs don't render anything — they consume a pre-uploaded# dataset directory (TRAIN_DIR / <job_id>) and write a .safetensors@@ -34221,6 +35818,7 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,_take["beat_prompts"] = [(b + " " + _lock) if (b and _lock) else bfor b in _beats_written]_take["light_lock"] = _lock+ _take["scene"] = take_scene(f("prompt", ""), take_beats(f("beats", ""), _take["beats"]))_take["retake"] = f("take_retake", "on").strip().lower() not in ("off", "0", "false", "no")# The camera, once, for the whole shot (take_camera_lock)._take["camera"] = f("take_camera", "").strip()[:240]@@ -34316,6 +35914,11 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,_engine = (f("engine", ENGINE_DEFAULT) or ENGINE_DEFAULT).strip().lower()if _engine not in ENGINE_IDS:_engine = ENGINE_DEFAULT+ # An Images-tab model (surfaces=("image",)) is in the same table so the+ # one picker can list it, but it never renders a video: the Images tab+ # posts to /image/generate with its own engine field.+ if "image" in ((engine_by_id(_engine) or {}).get("surfaces") or ()):+ _engine = ENGINE_DEFAULTif mode_in == "v2a":# Add sound exists on one engine only; a form or curl that left the# engine field at its default still means H3.@@ -34379,11 +35982,22 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# sampler, as a Steps pin does._h3_v13_off = (f("h3_v13", "") or "").strip().lower() in ("0", "false", "off", "no")_h3_v13 = False+ # Clean up sound (re-voice the Fast render's sound): "1" / "0", absent =+ # H3_REVOICE_DEFAULT. Only ever on with Fast; resolved below.+ _h3_clean_raw = (f("h3_clean_sound", "") or "").strip().lower()+ _h3_clean_want = (True if _h3_clean_raw in ("1", "true", "on", "yes")+ else False if _h3_clean_raw in ("0", "false", "off", "no")+ else None)+ _h3_clean_sound = False# Pika H3 Flex: an explicit Speed choice ("1"), never a default. When it# can run it wins over Fast, Turbo, v1.3 and a Steps pin (it owns its own# six-step ladder); where it cannot, the render says so and falls back._h3_flex_want = (f("h3_flex", "") or "").strip().lower() in ("1", "true", "on", "yes")_h3_flex = False+ # H3 Flex Turbo (Pro): h3_flex_turbo=1 asks for the four-step Flex. It rides+ # every Flex gate (modes, 5 s windows) and adds the Pro one.+ _h3_flex_turbo_want = (f("h3_flex_turbo", "") or "").strip().lower() in ("1", "true", "on", "yes")+ _h3_flex_turbo = False# Which of the runner's ONE adapter slots this render spends. H3's# `--lora` is a single path (`default=None`, not `action="append"` — see# scripts/generate_staged.py), so a user LoRA and Turbo are mutually@@ -34403,6 +36017,9 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# count is a property of the cell that will actually render, not of the one# the form asked for. Empty list = today's behaviour, unchanged._h3_chain_prompts_raw = f("h3_chain_prompts", "")+ # Face to keep: an uploaded still the runner packs as a reference image.+ # Kept only for Text / Image on H3; the worker re-checks the file.+ _h3_reference = (f("h3_reference", "") or "").strip()_h3_chain_prompts: list[str] = []if _engine == "h3":# The same predicate the switcher uses for the affordance, so the two@@ -34489,6 +36106,28 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,push(f"Fast runs {H3_TRISTEP_FORWARDS} forwards on "f"its own ladder — ignoring the {_h3_steps}-step override.")_h3_steps = 0+ if _h3_tristep and mode_in not in ("a2v", "v2a"):+ _want = H3_REVOICE_DEFAULT if _h3_clean_want is None else _h3_clean_want+ if _want and h3_available():+ if not h3_supports_revoice():+ if _h3_clean_want:+ push("Clean up sound needs a newer H3 runner (Update in Pinokio) - "+ "rendering with Fast's own sound.")+ else:+ _tc = H3_TIERS[_h3_tier]+ _chained = int(_tc.get("chain_windows") or 1) > 1+ _extra = h3_revoice_extra_rows(+ _tc["width"], _tc["height"],+ keyframes=1 if (_chained or mode_in in ("i2v", "keyframe", "extend")) else 0,+ history=_chained or mode_in == "extend",+ reference=bool(_h3_reference) and mode_in in H3_REFERENCE_MODES)+ _ok, _why = h3_revoice_fits(_tc["width"], _tc["height"],+ _tc.get("window_frames") or _tc["frames"],+ extra_rows=_extra)+ if _ok:+ _h3_clean_sound = True+ elif _h3_clean_want:+ push(_why + " Rendering with Fast's own sound.")if H3_TIERS[_h3_tier].get("fast_hd"):# Fast HD is a recipe, not a canvas: the 3-step Fast pass, then the# x2 Upscale & Face Fix. Both are forced here so a stale Speed pill@@ -34503,6 +36142,26 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# adapter is built. Never with Fast or Turbo, never under a Steps pin# (the pin IS the way to ask for the full sampler), never where it# was not validated (other canvases, the dense pass, media modes).+ if _h3_flex_turbo_want and h3_available():+ _tst = h3_flex_turbo_status()+ if mode_in not in H3_FLEX_MODES or not h3_cell_takes_flex(H3_TIERS[_h3_tier]):+ push(f"{H3_FLEX_TURBO_NAME} runs Text and Image on 5 s windows - "+ "this render keeps its own sampler.")+ elif not _tst["pro_active"]:+ push(f"{H3_FLEX_TURBO_NAME} is part of Phosphene Pro - rendering on H3 Flex instead.")+ _h3_flex_want = True+ elif not _tst["available"]:+ push(f"{H3_FLEX_TURBO_NAME} requested but " + (+ "this H3 runner cannot run it - update the H3 runner." if not _tst["supported"]+ else "its LoRA isn't downloaded yet.") + " Rendering without it.")+ else:+ _h3_flex_turbo = True+ if _h3_tristep or _h3_turbo or _h3_steps:+ push(f"{H3_FLEX_TURBO_NAME} runs its own {H3_FLEX_TURBO_FORWARDS}-step "+ "ladder - Fast, Turbo and any Steps pin are off for this render.")+ _h3_tristep = _h3_turbo = _h3_clean_sound = False+ _h3_steps = 0+ _h3_flex_want = Falseif _h3_flex_want and h3_available():_fcell = H3_TIERS[_h3_tier]_fst = h3_flex_status()@@ -34524,7 +36183,7 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,"ladder - Fast, Turbo and any Steps pin are off for this render.")_h3_tristep = _h3_turbo = _h3_clean_sound = False_h3_steps = 0- if (not _h3_flex and not _h3_v13_off and not _h3_tristep and not _h3_turbo+ if (not _h3_flex and not _h3_flex_turbo and not _h3_v13_off and not _h3_tristep and not _h3_turboand not _h3_stepsand mode_in in H3_V13_MODES and h3_available()and h3_cell_takes_v13(H3_TIERS[_h3_tier])@@ -34668,8 +36327,13 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# lightx2v v1.3 on Best at High, resolved above. SAME allowlist# trap: leave it out and Best silently renders the full sampler."h3_v13": _h3_v13,+ # Clean up sound: re-make a Fast render's sound with the adapter+ # off. SAME allowlist trap: leave it out and the switch no-ops.+ "h3_clean_sound": _h3_clean_sound,# Pika H3 Flex, resolved above. SAME allowlist trap."h3_flex": _h3_flex,+ # H3 Flex Turbo (Pro), resolved above. SAME allowlist trap.+ "h3_flex_turbo": _h3_flex_turbo,# Which of H3's ONE adapter slots this render spends: "turbo"# (default) or "user". SAME allowlist trap as every key in this# dict — leave `h3_lora_slot` out and the Turbo-vs-LoRA control@@ -34689,6 +36353,9 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# trap as every key in this dict: leave it out and the whole# control looks wired and silently no-ops on /queue/add."h3_chain_prompts": _h3_chain_prompts,+ # Face to keep (reference image path). SAME allowlist trap.+ "h3_reference": (_h3_reference if (_engine == "h3" and mode_in in H3_REFERENCE_MODES)+ else ""),# 4.17 (Codex H3-2): H3-06 made a typed per-window box ADD to the# main prompt. Callers that already send COMPLETE per-window# prompts — a One Shot's beats, a storyboard shot's chain — set@@ -34748,6 +36415,10 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,# A2V character-LoRA stage policy (see a2v_lora_stage_scales()).# SAME allowlist trap: leave it out and the choice no-ops."a2v_lora_stages": f("a2v_lora_stages", ""),+ # Auto adds a bed to Speech outputs only; off survives retries.+ "a2v_scene_sound": f("a2v_scene_sound", "auto"),+ "a2v_scene_prompt": f("a2v_scene_prompt", ""),+ "a2v_scene_bed": f("a2v_scene_bed", ""),# A2V multi-anchor images (fd2356d, mlx_warm_helper._a2v_anchor_images):# JSON list of {path, frame_idx, strength}. The manual UI only ever# sends frame_idx 0 (the "Continue the song" flow — see@@ -34967,6 +36638,7 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,job["params"]["steps"] = int(H3_TRISTEP_STEPS if _h3_tristep elseH3_FLEX_STEPS if _h3_flex else+ H3_FLEX_TURBO_STEPS if _h3_flex_turbo elseH3_V13_STEPS if _h3_v13 elseh3_turbo_steps() if _h3_turbo else (_h3_steps or _tier_cfg["steps"]))job["params"]["h3_chain_windows"] = int(_tier_cfg.get("chain_windows") or 1)@@ -35554,6 +37226,7 @@ _IMAGE_ENGINE_LABELS = {"hidream_fast_inline": "HiDream Fast","hidream_inline": "HiDream Medium","hidream_quality_inline": "HiDream Quality",+ "flux2_klein_inline": "FLUX.2 [klein] 4B","ph3image_inline": "P-H3-Image (High, 8 MP)","ph3image_standard_inline": "P-H3-Image (Standard, 4 MP)","ph3image_draft_inline": "P-H3-Image (Draft, 2 MP)",@@ -35844,6 +37517,8 @@ def run_image_job_inner(job: dict) -> None:# mid-Metal-render (commit bc818a5 covers the post-mortem; this short-# circuits before the subprocess even spawns). Bypass with# PHOSPHENE_SKIP_PREFLIGHT=1.+ import image_diagnostics+ diagnostic = image_diagnostics.begin(STATE_DIR, engine_override, _analytics_enabled)_preflight_image_job(cfg, engine_override=engine_override)# STOP DURING PREFLIGHT. Preflight can unload the helper and wait for# memory to settle, and a Stop pressed then found no image process to@@ -35886,6 +37561,7 @@ def run_image_job_inner(job: dict) -> None:base_seed=base_seed,refs=refs_resolved or None,config=cfg,+ diagnostic=diagnostic,on_log=lambda line: push(f"[image] {line}"),**({"install_env": _music_install_env()} if cfg.kind == "flux3" else {}),)@@ -38145,6 +39821,35 @@ def run_h3_job_inner(job: dict) -> None:# with another step-distillation adapter.flex = bool(p.get("h3_flex"))flex_paths: dict = {}+ # H3 Flex Turbo (Pro): its own LoRA and euler ladder; re-checked here (a+ # queued job outlives a licence and a file).+ flex_turbo = bool(p.get("h3_flex_turbo"))+ flex_turbo_paths: dict = {}+ if flex_turbo and (tristep or turbo or v13 or flex or not h3_cell_takes_flex(tier)+ or mode not in H3_FLEX_MODES):+ flex_turbo = False+ p["h3_flex_turbo"] = False+ push(f"[h3] {H3_FLEX_TURBO_NAME} runs on Text and Image, alone - "+ f"this render keeps its own sampler.")+ if flex_turbo:+ if not h3_flex_turbo_allowed():+ raise RuntimeError(f"{H3_FLEX_TURBO_NAME} is part of Phosphene Pro, and Pro is not "+ "active on this Mac. Pick H3 Flex, Fast or Best.")+ if not h3_supports_flex_turbo():+ raise RuntimeError(+ f"{H3_FLEX_TURBO_NAME} needs a newer H3 runner: "+ + _h3_runner_behind("--lora-fc1-swap", paths["runner"],+ "Or pick H3 Flex, Fast or Best."))+ flex_turbo_paths = h3_flex_turbo_paths()+ if not flex_turbo_paths["files_ok"]:+ raise RuntimeError(+ f"The {H3_FLEX_TURBO_NAME} LoRA isn't on disk: "+ + "; ".join(flex_turbo_paths["missing"])+ + f". Expected under {flex_turbo_paths['dir']} - pick H3 Flex Turbo "+ f"again in the engine picker to download it.")+ steps = H3_FLEX_TURBO_STEPS+ push(f"[h3] {H3_FLEX_TURBO_NAME}: four-step Pika H3 Flex (akhaliq's fused LoRA with "+ f"LightX2V's Turbo), running natively on Apple Silicon (MLX). Powered by MiniMax H3.")if flex and (tristep or turbo or v13 or not h3_cell_takes_flex(tier)or mode not in H3_FLEX_MODES):flex = False@@ -38489,10 +40194,62 @@ def run_h3_job_inner(job: dict) -> None:# 4.19.12 it was passed as trained and its q/k/v update landed on# the wrong heads.cmd += h3_v13_argv(v13_paths, shift=v13_shift)+ clean_sound = bool(p.get("h3_clean_sound")) and tristep and mode not in ("a2v", "v2a")+ if clean_sound and not h3_supports_revoice():+ clean_sound = False+ push("[h3] Clean up sound needs a newer H3 runner - keeping Fast's own sound.")+ if clean_sound:+ # Re-checked with what THIS render conditions on (make_job priced the+ # cell): a first frame, a carried window, a reference block.+ _ok, _why = h3_revoice_fits(width, height, window_frames, extra_rows=h3_revoice_extra_rows(+ width, height,+ keyframes=1 if (first_frame is not None or chain_windows > 1 or mode in ("keyframe", "extend")) else 0,+ history=bool(context_frames),+ reference=bool(p.get("h3_reference")) and mode in H3_REFERENCE_MODES))+ if not _ok:+ clean_sound = False+ push(f"[h3] {_why} Keeping Fast's own sound.")+ if clean_sound:+ # Re-voice: after the picture, the Fast adapter goes off and the base+ # model re-makes the sound against the finished picture. A character+ # LoRA stays on, so a trained voice keeps its voice.+ cmd += ["--revoice-steps", str(H3_REVOICE_POINTS),+ "--revoice-drop", str(tristep_paths["lora"])]+ p["h3_clean_sound"] = clean_sound+ # Face to keep: the reference still, named in the prompt as the picture+ # after any first frame. The prompt the runner gets is rewritten in place+ # (cmd[prompt_index]); `p["prompt"]` keeps what the user typed.+ reference = None+ _ref_src = str(p.get("h3_reference") or "").strip()+ if _ref_src and mode in H3_REFERENCE_MODES:+ if not h3_supports_reference():+ push("[h3] Face to keep needs a newer H3 runner (Update in Pinokio) - "+ "rendering without it.")+ elif not Path(_ref_src).is_file():+ raise RuntimeError(f"The face to keep ({Path(_ref_src).name}) is no longer on disk - "+ "pick it again or clear it.")+ else:+ _ref_err = h3_reference_image_error(Path(_ref_src))+ if _ref_err:+ raise RuntimeError(_ref_err)+ reference = Path(_ref_src)+ if reference is not None:+ _n = 2 if first_frame is not None else 1+ cmd += ["--reference", str(reference), "--reference-size", str(H3_REFERENCE_SIZE)]+ if chain_prompts_path is None and prompt in cmd:+ cmd[cmd.index(prompt)] = h3_reference_prompt(prompt, _n)+ elif chain_prompts:+ chain_prompts = [h3_reference_prompt(cp, _n) for cp in chain_prompts]+ chain_prompts_path.write_text(json.dumps(chain_prompts, ensure_ascii=False),+ encoding="utf-8")+ push(f"[h3] face to keep: {reference.name} (<Picture {_n}>)")+ p["h3_reference_used"] = str(reference) if reference is not None else ""if flex:# The sampler preset (re-noise, knots 1000..40,0, shifts 12/3) and the# adapter at 1.0; qkv rows already per head, so no runner re-order.cmd += h3_flex_argv(flex_paths)+ if flex_turbo:+ cmd += h3_flex_turbo_argv(flex_turbo_paths)if user_lora is not None and (not turbo or h3_supports_lora_stack()):# The SAME flag Turbo rides. On a stacking runner every `--lora` is one# more adapter on the same base layers, Turbo first; on the single-slot@@ -38520,11 +40277,20 @@ def run_h3_job_inner(job: dict) -> None:# FP16 VAE decode — the default (h3_vae_fp16_decode()). Passed as the runner's# own flag so the argv says what ran; a runner that predates the flag# would reject it, so that case is said out loud instead of passed.+ # A runner that knows `float16-mixed` (minimax-h3-mlx b1f419a) gets it: the+ # projections and attention in fp16, the residual stream, norms and rotary+ # in float32. Same speed as the all-fp16 stream on an M4 Max (76.1 vs+ # 76.9 s for 1024x576/124f) and 6.7 dB closer to float32 (69.6 vs 62.9 dB,+ # max 1/255 vs 3/255), with a 1.7 GiB lower decode peak. That runner also+ # made float16-mixed its own default, so "off" must now say float32 out+ # loud instead of passing nothing._vae_fp16 = False+ _vae_mixed = _h3_runner_has_flag("float16-mixed")if h3_vae_fp16_decode():- if _h3_runner_has_flag("--vae-dtype"):- cmd += ["--vae-dtype", "float16"]- p["h3_vae_dtype"] = "float16"+ if _vae_mixed or _h3_runner_has_flag("--vae-dtype"):+ _dtype = "float16-mixed" if _vae_mixed else "float16"+ cmd += ["--vae-dtype", _dtype]+ p["h3_vae_dtype"] = _dtype_vae_fp16 = Trueelse:push(_dist.say(@@ -38535,6 +40301,9 @@ def run_h3_job_inner(job: dict) -> None:"[h3] This H3 runner predates the faster FP16 video decode — ""decoding in float32 (same picture, a little slower). Updating ""the runner isn't available in the Mac app yet."))+ elif _vae_mixed:+ cmd += ["--vae-dtype", "float32"]+ p["h3_vae_dtype"] = "float32"push(f"[h3] {tier['label']} · {width}×{height} · {frames}f · "f"{steps} sigma points ({steps - 1} forwards) · seed {seed}"@@ -38628,6 +40397,7 @@ def run_h3_job_inner(job: dict) -> None:(tier.get("tristep_min") if tristep and tier.get("tristep_min") is not Noneelse tier.get("v13_min") if v13 and tier.get("v13_min") is not Noneelse tier.get("flex_min") if flex and tier.get("flex_min") is not None+ else tier.get("flex_turbo_min") if flex_turbo and tier.get("flex_turbo_min") is not Noneelse tier.get("eta_min")) or 0.0)_load_eta_seed = max(0.0, float(_load_eta_seed_min)) * 60.0# H3-04: what one denoise forward SHOULD cost on this Mac, at this@@ -38860,7 +40630,7 @@ def run_h3_job_inner(job: dict) -> None:# card had no way to show this before) and, when the# render is running meaningfully slower than even# that speed's own estimate, why and what would help.- "h3_speed": ("fast" if tristep else "flex" if flex else "best"),+ "h3_speed": ("fast" if tristep else "flex" if flex else "flex_turbo" if flex_turbo else "best"),"h3_pace_warning": _pace_note,"denoise_step": last_step,"denoise_total": total_steps,@@ -39140,6 +40910,7 @@ def run_h3_job_inner(job: dict) -> None:# And for lightx2v v1.3 on Best at High."h3_v13": v13,"h3_flex": flex,+ "h3_flex_turbo": flex_turbo,"width": width, "height": height, "frames": frames, "steps": steps,"seed_used": seed,# The user's OWN reference, not the canvas crop made from it: the@@ -39244,6 +41015,25 @@ def run_h3_job_inner(job: dict) -> None:"scale": 1.0, "steps": steps,"forwards": H3_FLEX_FORWARDS}if flex else None),+ # H3 Flex Turbo provenance (Pro): the published file, its revision,+ # the credit and the licence's notice.+ "flex_turbo": ({"lora": str(flex_turbo_paths["lora"]),+ "name": H3_FLEX_TURBO_NAME,+ "repo": H3_FLEX_TURBO_REPO,+ "revision": H3_FLEX_TURBO_REVISION,+ "source_file": H3_FLEX_TURBO_SOURCE_FILE,+ "sha256": H3_FLEX_TURBO_SHA256,+ "license": H3_FLEX_LICENSE,+ "credit": H3_FLEX_TURBO_CREDIT,+ "notice": H3_FLEX_NOTICE,+ "sampler": "euler",+ "knots": list(H3_FLEX_TURBO_KNOTS),+ "video_shift": H3_FLEX_TURBO_VIDEO_SHIFT,+ "audio_shift": H3_FLEX_TURBO_AUDIO_SHIFT,+ "lora_load": ["qkv-permute", "fc1-swap"],+ "scale": 1.0, "steps": steps,+ "forwards": H3_FLEX_TURBO_FORWARDS}+ if flex_turbo else None),# The fast 3-step sampler's provenance: which file, where it came from,# under what license, and the schedule the runner actually ran."tristep": ({"lora": str(tristep_paths["lora"]),@@ -39263,6 +41053,12 @@ def run_h3_job_inner(job: dict) -> None:"sigma_subset": H3_TRISTEP_SIGMA_SUBSET,"decode": "full"}if tristep else None),+ # Face to keep: the reference still that was packed (or None).+ "reference": (p.get("h3_reference_used") or None),+ # Clean up sound: the runner's own record of the re-voice pass+ # (steps, adapter switched off, seconds, store size).+ "revoice": ({k: v for k, v in metrics.items()+ if k == "revoice" or k.endswith("_revoice")} or None),# The sigma ladder each window ran (runner's own record)."schedule": (metrics.get("schedule") or metrics.get("w1_schedule")),# Every adapter the runner wrapped, and the must-be-zero count.@@ -39735,6 +41531,11 @@ def run_take_job_inner(job: dict) -> None:# progress at this part's first frame, same direction, same speed.lead = take_camera_lock(take.get("camera") or "", continuing=(k > 0))chain = list(chain)+ # THE SHOT CROSSES THE JOIN TOO: the user's own description of who and+ # where opens every part when they wrote beats (take_scene).+ scene = take.get("scene") or ""+ if scene and chain:+ chain[0] = (scene + " " + (chain[0] or "")).strip()if lead:chain[0] = (lead + " " + (chain[0] or "")).strip()if last_png:@@ -40293,6 +42094,8 @@ def run_job_inner(job: dict) -> None:# image path before any of the video-only validation runs.if mode == "music" or p.get("engine") == "music":return run_music_job_inner(job)+ if mode == "speech" or p.get("engine") == "speech":+ return run_speech_job_inner(job)if mode == "image":return run_image_job_inner(job)if mode == "train":@@ -40821,6 +42624,13 @@ def run_job_inner(job: dict) -> None:# strength (~1.0) so the render inherits its structure/motion."video_conditioning": [[src, ctl_ref_strength]],"loras": control_loras,+ # UNFUSED, always: this lane runs on the Q4 distilled pack, and+ # fusing re-quantizes W + B@A onto the int4 grid. The helper+ # measured 429% of the Colorizer's delta destroyed that way+ # (go-live matrix, 4 Nov 2026): the adapter did nothing and a+ # B&W clip came back B&W. Upscale x2 and Ingredients already ask+ # for the exact runtime branch; every IC lane on Q4 does now.+ "lora_mode": "unfused",# Two-stage distilled walk (same as Colorize; NOT single-stage# like Ingredients)."stage1_steps": int(p.get("stage1_steps", 8)),@@ -40925,6 +42735,13 @@ def run_job_inner(job: dict) -> None:# The source clip rides the IC reference channel."video_conditioning": [[src, strength]],"loras": restore_loras,+ # UNFUSED, always: this lane runs on the Q4 distilled pack, and+ # fusing re-quantizes W + B@A onto the int4 grid. The helper+ # measured 429% of the Colorizer's delta destroyed that way+ # (go-live matrix, 4 Nov 2026): the adapter did nothing and a+ # B&W clip came back B&W. Upscale x2 and Ingredients already ask+ # for the exact runtime branch; every IC lane on Q4 does now.+ "lora_mode": "unfused",# Distilled two-stage defaults (same as the HDR IC path)."stage1_steps": int(p.get("stage1_steps", 8)),"stage2_steps": int(p.get("stage2_steps", 3)),@@ -40936,8 +42753,18 @@ def run_job_inner(job: dict) -> None:if "seed_used" in result:push(f"seed used: {result['seed_used']}")p["seed_used"] = result["seed_used"]+ # THE SOURCE'S SOUND, OR NONE. The IC pipeline writes a soundtrack of+ # its own, and Colorize used to deliver it: a B&W clip whose line was+ # "I really did not think I would see you again" came back saying+ # invented words (go-live matrix, 4 Nov 2026). Same policy and the+ # same finish as Upscale x2: the picture is the model's, the sound is+ # the clip the user handed in.+ audio_from_source = _upscale_finish(final_out, str(original_src),+ frames=col_frames, fps=float(FPS),+ trim=False, job=job, label="Colorize")sidecar = {"output": str(final_out), "raw_output": str(final_out),+ "audio_from_source": audio_from_source,"params": {**p, "command": "restore"},"started": job.get("started_at"),"elapsed_sec": round(time.time() - job["started_ts"], 2) if job.get("started_ts") else None,@@ -41653,6 +43480,14 @@ def run_job_inner(job: dict) -> None:audio_src = (p.get("audio") or "").strip()if not audio_src or not Path(audio_src).exists():raise RuntimeError(f"audio file not found: {audio_src}")+ import scene_sound+ scene_sound_on = scene_sound.enabled(p, audio_src, model_version()["id"])+ scene_bed_path = str(p.get("a2v_scene_bed") or "").strip()+ if scene_sound_on:+ if scene_bed_path and not Path(scene_bed_path).is_file():+ raise RuntimeError(f"scene sound file not found: {scene_bed_path}")+ if not scene_bed_path:+ ltx_pack_preflight("q4", "Scene sound")# THE TWO AUDIO FILES. `cond_audio` is what the model listens to and# `audio_src` is what the finished clip plays; they are the same file# unless a vocal stem was asked for.@@ -41896,11 +43731,33 @@ def run_job_inner(job: dict) -> None:f" — under {TAKE_LIPSYNC_MIN:.2f}, rough check, not a gate"))except Exception as exc: # noqa: BLE001push(f"[a2v] lip-sync scoring skipped ({exc})")+ # Score before adding environmental transients. The separate sound+ # pass never feeds A2V's encoder and the finished video is copied.+ scene_sound_meta = None+ if scene_sound_on:+ if scene_bed_path:+ scene_sound_meta = {"source": "file", "path": scene_bed_path}+ else:+ push("[a2v] generating scene ambience and effects with LTX (one extra sound pass)")+ scene_sound_meta = scene_sound.generate_bed(+ helper=HELPER, run=run_ffmpeg_tracked, ffmpeg=FFMPEG,+ model_dir=pack_path("q4"), output=out_path,+ prompt=scene_sound.sound_prompt(p["prompt"], p.get("a2v_scene_prompt", "")),+ frames=frames, fps=float(FPS), seed=p.get("seed_used", p["seed"]),+ job_id=job["id"])+ scene_sound_meta["mix"] = scene_sound.mix(+ video=out_path, voice=audio_src, bed=scene_sound_meta["path"],+ start=a2v_params["audio_start_time"], duration=frames / float(FPS),+ ffmpeg=FFMPEG, run=run_ffmpeg_tracked)+ push("[a2v] scene sound mixed; the voice ducks the bed")sidecar = {"output": str(out_path), "raw_output": str(out_path),"lipsync_score": a2v_lipsync_score,+ "lipsync_score_audio": "voice_before_scene_mix" if scene_sound_on else "delivered_audio",+ "scene_sound": scene_sound_meta,"lipsync_align": ltx_lipsync_align,"params": {**p, "command": action, "audio": audio_src,+ "a2v_scene_sound": "on" if scene_sound_on else "off","audio_conditioning": cond_audio,"audio_stem_used": cond_audio != audio_src,"image": ref_image_original,@@ -42846,8 +44703,10 @@ def _push_job_done(job: dict) -> None:# holds while it runs (and the helper is stopped - the script reinstalls the# packages it has open); a pull during a render waits for that render. Restart# stays refused until it has finished, and a failure says why and points at-# Pinokio's Update. post_update.sh is idempotent: on a warm install it is a-# verify pass of a minute or two.+# Pinokio's Update. Completed repairs have a durable receipt. An interrupted+# repair may run again; Python package changes are not transactional.+import update_transaction+POST_UPDATE_LOCK = threading.Lock()POST_UPDATE: dict = {"state": "idle", "active": False, "pending": False}POST_UPDATE_SCRIPT = "scripts/post_update.sh"@@ -42875,6 +44734,17 @@ def post_update_status() -> dict:out = {k: v for k, v in POST_UPDATE.items() if k != "log"}out["log"] = [l.replace(str(Path.home()), "~")for l in list(POST_UPDATE.get("log") or [])[-6:]]+ if _root_is_checkout():+ try:+ durable = update_transaction.Transaction(ROOT).status()+ if durable:+ if out.get("pending") or out.get("active"):+ out.update({key: durable[key] for key in+ ("phase", "candidate", "previous_ref", "outcome")})+ else:+ out.update(durable)+ except update_transaction.UpdateError as exc:+ out.update(state="failed", error=str(exc))return out@@ -42886,8 +44756,6 @@ LINUX_POST_UPDATE_NOTE = (def post_update_start(trigger: str = "update_now") -> tuple[int, dict]:"""Run post_update.sh in the background once the GPU is free."""- if not (ROOT / POST_UPDATE_SCRIPT).is_file():- return 200, {"ok": True, "nothing_to_do": True}if _dist.is_mac_app():# Inside the Mac app the app installs each update as a whole new# tarball and builds its environment itself; post_update.sh is the@@ -42900,6 +44768,13 @@ def post_update_start(trigger: str = "update_now") -> tuple[int, dict]:# the distro Python with the omarchy-mlx wheel. Running it would fail,# and a failed post-update blocks the restart. Say what to run instead.push(f"[update] {LINUX_POST_UPDATE_NOTE}")+ # Preserve Linux's existing manual-install contract. Its startup+ # receipt does not claim that Mac dependency repair ran.+ tx = update_transaction.Transaction(ROOT)+ with tx.locked():+ rec = tx.read()+ if rec.get("phase") == "source_ready":+ tx.save(rec, phase="awaiting_restart", external_dependencies=True)return 200, {"ok": True, "nothing_to_do": True, "linux": True,"note": LINUX_POST_UPDATE_NOTE}with POST_UPDATE_LOCK:@@ -42950,46 +44825,20 @@ def _post_update_run() -> None:HELPER.kill() # it has the packages openexcept Exception: # noqa: BLE001pass- head = _git_capture(["rev-parse", "HEAD"]) or ""- tail: list[str] = []error = None- timer = None+ def output(line):+ with POST_UPDATE_LOCK:+ POST_UPDATE["log"].append(line[:300])try:- proc = subprocess.Popen(["bash", str(ROOT / POST_UPDATE_SCRIPT), str(ROOT)],- cwd=str(ROOT), env=_post_update_env(),- stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,- stderr=subprocess.STDOUT, text=True, bufsize=1,- errors="replace", start_new_session=True)- timer = _kill_group_after(proc, POST_UPDATE_TIMEOUT_S)- for raw in proc.stdout:- for line in raw.replace("\r", "\n").splitlines():- line = line.rstrip()- if not line:- continue- tail = (tail + [line])[-12:]- with POST_UPDATE_LOCK:- POST_UPDATE["log"].append(line[:300])- rc = proc.wait(timeout=60)- if getattr(timer, "fired", False):- raise subprocess.TimeoutExpired("post_update.sh", POST_UPDATE_TIMEOUT_S)- if rc != 0:- what = next((l for l in tail if "PHOSPHENE UPDATE FAILED:" in l), "")- error = (what.split("PHOSPHENE UPDATE FAILED:", 1)[1].strip()- if what else f"post_update.sh stopped (exit {rc})")- except subprocess.TimeoutExpired:- error = "the update step took longer than 3 hours"- except Exception as exc: # noqa: BLE001- error = f"the update step could not run: {exc}"- finally:- if timer is not None:- timer.cancel()+ update_transaction.Transaction(ROOT).dependencies(env=_post_update_env(), output=output,+ timeout=POST_UPDATE_TIMEOUT_S)+ except Exception as exc:+ error = str(exc)with POST_UPDATE_LOCK:POST_UPDATE.update(active=False, pending=False, finished_ts=time.time(),- state="failed" if error else "done", error=error,- head=head)- push("[update] " + (f"finishing the update FAILED: {error}. Use Pinokio's "- f"Update (Stop, then Update) to finish it." if error else- "update finished - restart to load the new version"))+ state="failed" if error else "done", error=error)+ push("[update] " + (error or "Update prepared. Restart to check that the new version starts."))+with QUEUE_COND:QUEUE_COND.notify_all()@@ -43008,6 +44857,9 @@ def _external_build_hold() -> str:with POST_UPDATE_LOCK:if POST_UPDATE.get("pending") or POST_UPDATE.get("active"):return "the update (installing what the new version needs)"+ update = post_update_status()+ if update.get("state") == "failed" or update.get("outcome") == "pending":+ return "an unfinished update; finish Update and restart before rendering"lock = STATE_DIR / "h3_build.lock"try:raw = lock.read_text(encoding="utf-8")@@ -43685,6 +45537,18 @@ def _build_image_engine_config(else "standard" if engine_override == "ph3image_standard_inline" else "high")if engine_override == "mock_inline":return agent_image_engine.ImageEngineConfig(kind="mock")+ if engine_override == "flux2_klein_inline":+ # FLUX.2 [klein] 4B at 4-bit, pinned in full: the image step of+ # Phosphene Bench (bench.py). "auto" is the person's SAVED engine, so a+ # benchmark through it would measure whatever they last picked; this+ # names the model, family, steps, guidance and quantisation outright,+ # and clears the dataclass's default Lightning LoRA (a Qwen adapter).+ return agent_image_engine.ImageEngineConfig(+ kind="mflux", mflux_model=KLEIN_4B_Q4_MODEL, mflux_family="flux2",+ mflux_base_model="", mflux_quantize=4, mflux_steps=4,+ mflux_guidance=1.0, mflux_preset=None,+ mflux_lora_paths=[], mflux_lora_scales=[], mflux_python_path="",+ )raise ValueError(f"unknown engine_override: {engine_override!r}")@@ -44235,6 +46099,8 @@ def _unique_output_path(base: Path, stem: str, ext: str = ".mp4") -> Path:# Handlers resolve P.<name> at request time, so wiring here — after most# definitions, before the server starts — is safe for every name they use.from panel import routes_agents as _routes_agents+from panel import routes_bench as _routes_bench+from panel import routes_capabilities as _routes_capabilitiesfrom panel import routes_characters as _routes_charactersfrom panel import routes_files as _routes_filesfrom panel import routes_image as _routes_image@@ -44242,17 +46108,20 @@ from panel import routes_licences as _routes_licencesfrom panel import routes_loras as _routes_lorasfrom panel import routes_meta as _routes_metafrom panel import routes_oneshot as _routes_oneshot+from panel import routes_pro as _routes_profrom panel import routes_models as _routes_modelsfrom panel import routes_music as _routes_music+from panel import routes_speech as _routes_speechfrom panel import routes_queue as _routes_queue+from panel import routes_remote as _routes_remotefrom panel import routes_storyboard as _routes_storyboardfrom panel import routes_stats as _routes_statsfrom panel import routes_train as _routes_train-for _routes_mod in (_routes_agents, _routes_characters, _routes_files, _routes_image,+for _routes_mod in (_routes_agents, _routes_bench, _routes_capabilities, _routes_characters, _routes_files, _routes_image,_routes_licences, _routes_loras, _routes_meta, _routes_models, _routes_music,- _routes_oneshot, _routes_queue, _routes_stats, _routes_storyboard,- _routes_train, _civitai_client):+ _routes_oneshot, _routes_pro, _routes_queue, _routes_remote, _routes_speech, _routes_stats,+ _routes_storyboard, _routes_train, _civitai_client):_routes_mod.P = sys.modules[__name__]@@ -46519,7 +48388,9 @@ class Handler(BaseHTTPRequestHandler):returndeliver = {"format": f("format", ""), "size": f("size", ""),"finish": f("finish", ""),- "loudnorm": f("loudnorm", "") == "on"}+ # The master is ON unless the client says+ # off (2 Nov): API callers get it too.+ "loudnorm": f("loudnorm", "") != "off"}# FILM-28: VERSIONED, so three renders at the same# delivery do not silently overwrite one another. Only# when the client did not ask for a specific filename —@@ -46582,7 +48453,9 @@ class Handler(BaseHTTPRequestHandler):returndeliver = {"format": f("format", ""), "size": f("size", ""),"finish": f("finish", ""),- "loudnorm": f("loudnorm", "") == "on"}+ # The master is ON unless the client says+ # off (2 Nov): API callers get it too.+ "loudnorm": f("loudnorm", "") != "off"}explicit_out = f("out", "")reserved = Noneif explicit_out:@@ -47016,7 +48889,7 @@ def _avg_elapsed(kind: str | None = None) -> float | None:history_snap = list(STATE["history"][:10])# Music has its own explicitly unmeasured model. Its wall times must not# silently re-price the existing image/video estimates or their fallback.- history_snap = [j for j in history_snap if (j.get("params") or {}).get("engine") != "music"]+ history_snap = [j for j in history_snap if (j.get("params") or {}).get("engine") not in ("music", "speech")]def _ok(j: dict) -> bool:return j.get("status") == "done" and j.get("elapsed_sec")@@ -47760,6 +49633,7 @@ def page(theme: str = "") -> str:# actually loaded. Identical bytes for the default version, so a 2.3# user's page.html is unchanged."fps": FPS, "model": base_model_dir(),+ "a2v_scene_sound_supported": model_version()["id"] == "ltx25","profile": PROFILE,"model_upscale_enabled": MODEL_UPSCALE_ENABLED,"pipersr_upscale_enabled": PIPERSR_UPSCALE_ENABLED,@@ -47815,6 +49689,8 @@ def page(theme: str = "") -> str:"h3": h3_status(),"music": music_status(),"music_install": music_install_status(),+ "speech": speech_status(),+ "speech_install": speech_install_status(),# LTX's own (quality × length) table, in the SAME shape as `h3` above so# the two strips are rendered by one generalised function rather than# two that drift. Every LTX estimate the page prints is a lookup into@@ -47830,6 +49706,10 @@ def page(theme: str = "") -> str:# this list — adding an engine is one entry there, not a UI rewrite."engines": engines_payload(),"default_engine": ENGINE_DEFAULT,+ # What every engine and variant can do (model_capabilities.py). The+ # page greys out whatever the picked variant does not declare, with+ # the row's own reason; make_job reads the same rows.+ "capabilities": _capabilities_boot(),# SYS-16: "has this install ever finished a render" is exactly what# analytics_first_render_reported already tracks (set once, on the# first render_completed), so the first-run card reuses that flag@@ -48027,9 +49907,10 @@ if __name__ == "__main__":_sb_boot_reconcile()load_hidden()load_queue()- # Before the worker: a queued voice-only Lip-sync job must find the- # separator install already running, not refuse (4.17.4).- a2v_separator_boot()+ # Optional separator packages install from the Lip-sync form.+ # Retain the explicit boot opt-in for managed installations.+ if (os.environ.get("PHOSPHENE_SEPARATOR_AUTOINSTALL") or "0") == "1":+ a2v_separator_boot()threading.Thread(target=worker_loop, daemon=True).start()if VERSION_CHECK_ENABLED and not _dist.is_mac_app():threading.Thread(target=version_check_loop, daemon=True).start()@@ -48057,7 +49938,6 @@ if __name__ == "__main__":# install DOES report (the project key ships); the Settings toggle and# PHOSPHENE_ANALYTICS_DISABLED are the off switches. See the analytics# section above and docs/ANALYTICS.md.- _analytics_boot()# Pre-flight: bind in a try/except so a busy port surfaces an actionable# one-liner instead of a 6-frame Python traceback. The bare OSError# ("[Errno 48] Address already in use") was confusing users who'd closed@@ -48073,6 +49953,16 @@ if __name__ == "__main__":print("─" * 64, flush=True)sys.exit(1)raise+ if pro_remote is not None:+ pro_remote.boot(sys.modules[__name__])+ # Only a process that loaded the candidate and bound its listener can+ # acknowledge it. Dependency failures survive boot, even without analytics.+ if _root_is_checkout():+ try:+ update_transaction.Transaction(ROOT).acknowledge(boot_build_stamp().get("sha"))+ except update_transaction.UpdateError as exc:+ push(f"[update] {exc}")+ _analytics_boot()# Agent tools (agents/phosphene_cli.py, agents/phosphene_mcp.py) find this studio by the# record it writes once its listener is bound: the port differs per wrapper (8198 Pinokio,# 8199 dev, 8930-8999 Mac app), the HOME folder does not. Removed again on the way out.diff --git a/model_capabilities.py b/model_capabilities.pynew file mode 100644index 0000000..2d9c372--- /dev/null+++ b/model_capabilities.py@@ -0,0 +1,476 @@+"""model_capabilities.py: what every engine and variant can do, in one table.++Owner, 31 Oct 2026: "see what features we are offering and gray out the+rest." Before this file the answer to "can H3 Flex render Keyframes?" lived in+three places that had to agree by hand: a Python constant (H3_FLEX_MODES), a+cell predicate (h3_cell_takes_flex) and a JS copy of both in engines.js. Every+port added a fourth. This table is the one place a port DECLARES a variant:++ * the page reads it (BOOT.capabilities, GET /capabilities) and greys out every+ mode, cell and option the picked variant does not declare, with the plain+ one-line reason written here (webapp/js/capabilities.js);+ * make_job asks check() the same question and falls back (or refuses) from+ the same data, so the browser and the server can never disagree;+ * test_model_capabilities.py binds every row to the panel's live constants,+ so a constant that moves without its row fails the build.++Vocabulary (the axes a variant declares; anything it leaves out it inherits+from its engine's base row, and anything absent from the base row is "not+offered"):++ modes form modes the variant renders ("t2v", "i2v", "keyframe", ...).+ qualities canvas keys (H3: draft, preview, fast_hd, standard, high, native).+ None = every canvas the engine has.+ lengths length keys (H3: 3s, 5s, 10s, 15s, 10s_dense). None = all.+ cells {"exclude_flags": [...]}: cell flags the variant never renders on+ ("dense" = the single long pass, "fast_hd" = the Fast HD recipe).+ inputs what it takes in: first_frame, end_frame, keyframes, source_video,+ reference_image, audio_in, loras, character.+ outputs what it gives back: video, audio, stems.+ options form controls that still mean something under this variant:+ speed (Fast / Best), steps, clean_sound, upscale, window_prompts.+ pro True = part of Phosphene Pro (gate: pro/ledger.json row `ledger`).+ status "ready" | "preview" | "lab" (lab = never shown to users).+ fallback variant id make_job renders instead when a request asks for+ something this variant does not declare (None = refuse).+ reasons the one plain line the user sees per axis; written for a smart+ non-engineer, it names what to pick instead.++A new port adds one VARIANTS row (and, for a new engine, one ENGINES row) and+nothing else in this file. docs/CAPABILITIES.md walks through it.+"""+from __future__ import annotations++import copy++SCHEMA_VERSION = 1++AXES = ("modes", "qualities", "lengths")+INPUTS = ("first_frame", "end_frame", "keyframes", "source_video",+ "reference_image", "audio_in", "loras", "character")+OUTPUTS = ("video", "audio", "stems", "image", "song")+OPTIONS = ("speed", "steps", "clean_sound", "upscale", "window_prompts",+ "accel", "generation")+STATUSES = ("ready", "preview", "lab")++# Mode keys as the form names them, with the words the user sees.+MODE_LABELS = {+ "t2v": "Text", "i2v": "Image", "character": "Character",+ "keyframe": "Keyframes", "extend": "Extend", "a2v": "Lip-sync",+ "v2a": "Add sound", "i2v_clean_audio": "Image + your audio",+ "ingredients": "Ingredients", "control": "Motion control",+ "restore": "Restore", "upscale": "Upscale", "music": "Compose",+ "t2i": "Text to image", "edit": "Edit image",+}++# ---------------------------------------------------------------------------+# Engines: the base row every variant of that engine inherits from.+# ---------------------------------------------------------------------------+ENGINES: dict[str, dict] = {+ "ltx": {+ "label": "LTX",+ "surface": "video",+ "modes": ["t2v", "i2v", "character", "keyframe", "extend", "a2v",+ "i2v_clean_audio", "ingredients", "control", "restore",+ "upscale"],+ "qualities": ["quick", "balanced", "standard", "high", "high_720p"],+ "lengths": None,+ "cells": {"exclude_flags": []},+ "inputs": ["first_frame", "end_frame", "keyframes", "source_video",+ "audio_in", "loras", "character"],+ "outputs": ["video", "audio"],+ "options": ["upscale", "accel", "generation"],+ "pro": False,+ "status": "ready",+ "default_variant": "ltx25",+ },+ "h3": {+ "label": "Hailuo H3",+ "surface": "video",+ "modes": ["t2v", "i2v", "keyframe", "extend", "a2v", "v2a"],+ "qualities": None,+ "lengths": None,+ "cells": {"exclude_flags": []},+ "inputs": ["first_frame", "end_frame", "keyframes", "source_video",+ "reference_image", "audio_in", "loras"],+ "outputs": ["video", "audio"],+ "options": ["speed", "steps", "clean_sound", "upscale",+ "window_prompts"],+ "pro": False,+ "status": "ready",+ "default_variant": "best",+ },+ "images": {+ # The Images lane (Image Studio). A model's row is `lab` until its bench has run.+ # One variant per image MODEL the Images tab's top picker lists (the panel's+ # ENGINES rows with surfaces=("image",) bind to `images.<their id>`).+ "label": "Images",+ "surface": "image",+ "modes": ["t2i", "edit"],+ "qualities": ["draft", "standard", "high"],+ "lengths": None,+ "cells": {"exclude_flags": []},+ "inputs": ["reference_image"],+ "outputs": ["image"],+ "options": [],+ "pro": False,+ "status": "preview",+ "default_variant": "p_h3_image",+ },+ "music": {+ "label": "YuE2",+ "surface": "music",+ "modes": ["music"],+ "qualities": ["draft", "final"],+ "lengths": None,+ "cells": {"exclude_flags": []},+ "inputs": ["loras"],+ "outputs": ["song", "audio"],+ "options": [],+ "pro": False,+ "status": "ready",+ "default_variant": "yue2",+ },+}++# ---------------------------------------------------------------------------+# Variants. `pick` says how the form selects it (which control, which value),+# so the page can tell which variant is the live one without a JS table.+# ---------------------------------------------------------------------------+_H3_SAMPLER_TIP = "Switch to H3 (Best) to pick Fast, Best or Steps."++VARIANTS: dict[str, dict] = {+ # ---- LTX: two generations, same capabilities -------------------------+ "ltx.ltx25": {+ "engine": "ltx", "label": "LTX-2.5", "pick": {"generation": "ltx25"},+ },+ "ltx.ltx23": {+ "engine": "ltx", "label": "LTX-2.3", "pick": {"generation": "ltx23"},+ },+ # ---- H3 ----------------------------------------------------------------+ "h3.best": {+ "engine": "h3", "label": "H3 (Best)", "pick": {"speed": "best"},+ },+ "h3.fast": {+ # TaoMate 3-step adapter (h3_cell_takes_tristep).+ "engine": "h3", "label": "H3 Fast", "pick": {"speed": "fast"},+ "qualities": ["draft", "preview", "fast_hd", "standard", "high"],+ "cells": {"exclude_flags": ["dense"]},+ "options": ["speed", "clean_sound", "upscale", "window_prompts"],+ "fallback": "h3.best",+ "reasons": {+ "qualities": "Fast runs on Draft, Standard and High. Pick Best for Native.",+ "cells": "Fast runs on 5-second windows. Pick Best for the single 10-second pass.",+ "options": "Fast runs its own 3 steps.",+ },+ },+ "h3.fast_hd": {+ # A recipe, not a sampler: Fast at Draft, then the x2 Upscale & Face Fix.+ "engine": "h3", "label": "H3 Fast HD", "pick": {"quality": "fast_hd"}, "rank": 1,+ "qualities": ["fast_hd"],+ "cells": {"exclude_flags": ["dense"]},+ "options": ["window_prompts"],+ "fallback": "h3.fast",+ "reasons": {+ "options": "Fast HD always renders Fast and finishes with Upscale & Face Fix.",+ },+ },+ "h3.flex": {+ # Pika H3 Flex (Pika Labs), FL2VA adapter, 6 forwards.+ "engine": "h3", "label": "H3 Flex", "pick": {"speed": "flex"}, "rank": 2,+ "status": "preview",+ "modes": ["t2v", "i2v"],+ "cells": {"exclude_flags": ["dense", "fast_hd"]},+ "inputs": ["first_frame", "loras"],+ "options": ["upscale", "window_prompts"],+ "steps": 6,+ "fallback": "h3.best",+ "reasons": {+ "modes": "H3 Flex makes videos from text or an image. Switch to H3 for this.",+ "cells": "H3 Flex runs on 5-second windows. Switch to H3 for this.",+ "options": "H3 Flex runs its own steps. " + _H3_SAMPLER_TIP,+ "inputs": "H3 Flex takes text or a first frame. Switch to H3 for this.",+ },+ },+ "h3.flex_turbo": {+ # akhaliq's Pika H3 Flex Turbo LoRA (lite r32), 4 forwards. Pro.+ "engine": "h3", "label": "H3 Flex Turbo", "pick": {"speed": "flex_turbo"}, "rank": 2,+ "inherits": "h3.flex",+ "status": "preview",+ "pro": True, "ledger": "h3-flex-turbo",+ "steps": 4,+ "fallback": "h3.flex",+ "reasons": {+ "modes": "H3 Flex Turbo makes videos from text or an image. Switch to H3 for this.",+ "cells": "H3 Flex Turbo runs on 5-second windows. Switch to H3 for this.",+ "options": "H3 Flex Turbo runs its own 4 steps. " + _H3_SAMPLER_TIP,+ "inputs": "H3 Flex Turbo takes text or a first frame. Switch to H3 for this.",+ "pro": "H3 Flex Turbo is part of Phosphene Pro. H3 Flex renders this for free.",+ },+ },+ # ---- Images ---------------------------------------------------------------+ "images.p_h3_image": {+ # Pruna's P-H3-Image on MiniMax H3 (R&D L18): one latent frame, 8 forwards, no guidance.+ # PREVIEW since the bench (4-5 Nov 2026) rendered exactly this: text-to-image at the three+ # megapixel tiers (draft 2 MP, standard 4 MP, high 8 MP). Edit, up to 8 reference images,+ # is second-wave and is NOT declared. Free for everyone (owner, card 296): no ledger row.+ "engine": "images", "label": "P-H3-Image", "pick": {},+ "status": "preview",+ "modes": ["t2i"],+ "qualities": ["draft", "standard", "high"],+ "inputs": [],+ "outputs": ["image"],+ "options": [],+ "steps": 8,+ "reasons": {+ "modes": "P-H3-Image makes images from text. Editing an image comes later.",+ },+ },+ "images.flux2": {+ # FLUX.2 [klein] 4B, the Images default ("auto"): text to image, and edits from references.+ "engine": "images", "label": "FLUX.2 [klein]", "pick": {"image_engine": "auto"}, "status": "ready",+ "qualities": None,+ },+ "images.qwen_edit": {+ # Qwen-Image-Edit (Reference Edit): changes a picture you give it; needs a reference.+ "engine": "images", "label": "Reference Edit", "pick": {"image_engine": "qwen_edit_inline"}, "status": "ready",+ "modes": ["edit"], "qualities": None,+ "reasons": {"modes": "Reference Edit changes a picture you give it. Drop a photo in first."},+ },+ "images.flux3": {+ # FLUX 3 Klein (Black Forest Labs): text to image, and up to the server's reference cap.+ "engine": "images", "label": "FLUX 3 Klein", "pick": {"image_engine": "flux3_distilled_q8"}, "status": "ready",+ "qualities": None,+ },+ "images.ideogram4": {+ # Ideogram 4: typography and layout; a reference is an optional bridge.+ "engine": "images", "label": "Ideogram 4", "pick": {"image_engine": "ideogram4_inline"}, "status": "ready",+ "qualities": None,+ },+ # ---- YuE2 ----------------------------------------------------------------+ "music.yue2": {+ "engine": "music", "label": "YuE2", "pick": {},+ },+}++_KEYS = ("label", "surface", "modes", "qualities", "lengths", "cells", "inputs",+ "outputs", "options", "pro", "ledger", "status", "steps", "fallback",+ "reasons", "pick", "rank")++# Reasons every variant gets unless it writes its own (the {label} is filled in).+_DEFAULT_REASONS = {+ "modes": "{label} does not make this kind of video.",+ "qualities": "{label} does not render this canvas.",+ "lengths": "{label} does not render this length.",+ "cells": "{label} does not render this shape.",+ "inputs": "{label} does not take this input.",+ "options": "{label} sets this itself.",+ "pro": "{label} is part of Phosphene Pro.",+}+++class ManifestError(ValueError):+ """The table itself is wrong (a typo, an unknown axis value, a cycle)."""+++def _resolve(vid: str, seen: tuple = ()) -> dict:+ if vid in seen:+ raise ManifestError(f"inherits cycle: {' -> '.join(seen + (vid,))}")+ if vid not in VARIANTS:+ raise ManifestError(f"unknown variant {vid!r}")+ row = VARIANTS[vid]+ eng = row.get("engine")+ if eng not in ENGINES:+ raise ManifestError(f"{vid}: unknown engine {eng!r}")+ base = (_resolve(row["inherits"], seen + (vid,)) if row.get("inherits")+ else copy.deepcopy(ENGINES[eng]))+ out = {k: copy.deepcopy(base.get(k)) for k in _KEYS}+ out["reasons"] = dict(base.get("reasons") or {})+ for k in _KEYS:+ if k == "reasons":+ out["reasons"].update(row.get("reasons") or {})+ elif k in row:+ out[k] = copy.deepcopy(row[k])+ out["surface"] = ENGINES[eng]["surface"]+ out["pro"] = bool(out.get("pro"))+ out["status"] = out.get("status") or "ready"+ out["engine"] = eng+ out["variant"] = vid.split(".", 1)[1]+ out["id"] = vid+ out["cells"] = {"exclude_flags": list((out.get("cells") or {}).get("exclude_flags") or [])}+ for k in ("inputs", "outputs", "options"):+ out[k] = list(out.get(k) or [])+ for axis, text in _DEFAULT_REASONS.items():+ out["reasons"].setdefault(axis, text.format(label=out["label"]))+ return out+++def variant(vid: str) -> dict:+ """The resolved row for `engine.variant` (inheritance applied)."""+ return _resolve(vid)+++def variants(engine: str | None = None) -> list[dict]:+ return [_resolve(v) for v in VARIANTS+ if engine is None or VARIANTS[v]["engine"] == engine]+++def variant_for_pick(engine: str, pick: dict) -> dict:+ """Which variant the form is on, from what the form has picked+ ({"speed": "flex", "quality": "high", ...}). Every row whose `pick` matches+ is a candidate; the highest `rank` wins (Flex outranks a Fast HD cell+ because picking Flex moves the form off Fast HD; Fast HD outranks Fast and+ Best because make_job forces its recipe on that cell). No match: the+ engine's default variant."""+ best, score = None, None+ for row in variants(engine):+ want = row.get("pick") or {}+ if not want or not all(str(pick.get(k)) == str(v) for k, v in want.items()):+ continue+ s = (int(row.get("rank") or 0), len(want))+ if score is None or s > score:+ best, score = row, s+ if best is None:+ dv = ENGINES[engine].get("default_variant")+ return variant(f"{engine}.{dv}") if dv else None+ return best+++def cell_allowed(row: dict, cell: dict) -> bool:+ """Would this variant render this cell? The same rule the strip greys from."""+ if not cell:+ return True+ q = row.get("qualities")+ if q is not None and cell.get("quality") not in q:+ return False+ ln = row.get("lengths")+ if ln is not None and cell.get("length") not in ln:+ return False+ return not any(bool(cell.get(f)) for f in row["cells"]["exclude_flags"])+++def serves_mode(row: dict, mode: str) -> bool:+ modes = row.get("modes")+ if mode == "oneshot":+ mode = "t2v"+ return modes is None or mode in modes+++def check(vid: str, *, mode: str | None = None, cell: dict | None = None,+ options: list | tuple = (), inputs: list | tuple = (),+ pro_active: bool = True) -> list[dict]:+ """Everything in this request the variant does not declare.++ Returns [] when it can render it. Otherwise one dict per problem:+ {"axis", "value", "reason", "fallback"}. make_job uses `fallback` (another+ variant id, or None = refuse) and prints `reason`; the page shows the same+ `reason` as the greyed control's tooltip, so both say the same sentence.+ """+ row = variant(vid)+ out: list[dict] = []++ def bad(axis: str, value) -> None:+ out.append({"axis": axis, "value": value, "reason": row["reasons"][axis],+ "fallback": row.get("fallback")})++ if mode is not None and not serves_mode(row, mode):+ bad("modes", mode)+ if cell is not None and not cell_allowed(row, cell):+ q = row.get("qualities")+ ln = row.get("lengths")+ if q is not None and cell.get("quality") not in q:+ bad("qualities", cell.get("quality"))+ elif ln is not None and cell.get("length") not in ln:+ bad("lengths", cell.get("length"))+ else:+ bad("cells", cell.get("key") or cell.get("label"))+ for o in options or ():+ if o not in row["options"]:+ bad("options", o)+ for i in inputs or ():+ if i not in row["inputs"]:+ bad("inputs", i)+ if row["pro"] and not pro_active:+ bad("pro", True)+ return out+++def payload(*, pro_active: bool | None = None) -> dict:+ """The table as the page reads it (JSON-safe, inheritance resolved)."""+ return {+ "schema": SCHEMA_VERSION,+ "mode_labels": dict(MODE_LABELS),+ "engines": {k: {"label": v["label"], "surface": v["surface"],+ "default_variant": v.get("default_variant")}+ for k, v in ENGINES.items()},+ "variants": {r["id"]: r for r in variants() if r["status"] != "lab"},+ "pro_active": pro_active,+ }+++def validate() -> list[str]:+ """Structural problems in the table. The test suite asserts this is []."""+ errs: list[str] = []+ for eng, base in ENGINES.items():+ dv = base.get("default_variant")+ if dv and f"{eng}.{dv}" not in VARIANTS:+ errs.append(f"engine {eng}: default_variant {dv!r} has no row")+ for vid, raw in VARIANTS.items():+ if "." not in vid or vid.split(".", 1)[0] != raw.get("engine"):+ errs.append(f"{vid}: id must be '<engine>.<variant>'")+ unknown = set(raw) - set(_KEYS) - {"engine", "inherits"}+ if unknown:+ errs.append(f"{vid}: unknown keys {sorted(unknown)}")+ try:+ row = _resolve(vid)+ except ManifestError as e:+ errs.append(str(e))+ continue+ base = ENGINES[row["engine"]]+ for axis in AXES:+ vals, allowed = row.get(axis), base.get(axis)+ if vals is not None and allowed is not None:+ extra = set(vals) - set(allowed)+ if extra:+ errs.append(f"{vid}: {axis} {sorted(extra)} not on engine {row['engine']}")+ for k, vocab in (("inputs", INPUTS), ("outputs", OUTPUTS), ("options", OPTIONS)):+ extra = set(row[k]) - set(vocab)+ if extra:+ errs.append(f"{vid}: unknown {k} {sorted(extra)}")+ beyond = set(row[k]) - set(base.get(k) or [])+ if beyond:+ errs.append(f"{vid}: {k} {sorted(beyond)} beyond engine {row['engine']}")+ for m in row.get("modes") or []:+ if m not in MODE_LABELS:+ errs.append(f"{vid}: mode {m!r} has no label")+ if row["status"] not in STATUSES:+ errs.append(f"{vid}: status {row['status']!r}")+ if row["pro"] and not row.get("ledger"):+ errs.append(f"{vid}: a Pro variant names its pro/ledger.json row (`ledger`)")+ fb = row.get("fallback")+ if fb is not None:+ if fb not in VARIANTS:+ errs.append(f"{vid}: fallback {fb!r} has no row")+ elif VARIANTS[fb]["engine"] != row["engine"]:+ errs.append(f"{vid}: fallback {fb!r} is another engine")+ for axis, text in (row.get("reasons") or {}).items():+ if len(text) > 140:+ errs.append(f"{vid}: reason for {axis} over 140 chars (one plain line)")+ return errs+++if __name__ == "__main__": # python3 model_capabilities.py -> table + check+ import json+ import sys+ problems = validate()+ for p in problems:+ print("FAIL", p)+ if "--json" in sys.argv:+ print(json.dumps(payload(), indent=2))+ else:+ for r in variants():+ print(f"{r['id']:<18} {r['status']:<8} {'Pro' if r['pro'] else 'Free':<5}"+ f" modes={','.join(r['modes'] or ['*'])}"+ f" cells-not={','.join(r['cells']['exclude_flags']) or '-'}"+ f" options={','.join(r['options']) or '-'}")+ sys.exit(1 if problems else 0)diff --git a/model_storage.py b/model_storage.pynew file mode 100644index 0000000..f29ac81--- /dev/null+++ b/model_storage.py@@ -0,0 +1,129 @@+"""Conservative storage inventory. Cleanup only unlinks reviewed, retired files.++Never infer retirement from age, an unselected engine, or a missing registry row.+The initial list comes from post_update.sh's pre-Y1.024 trim list, excluding+ALL LoRAs. Future swaps must add exact relative filenames here after review.+"""+from pathlib import Path+import hashlib+import json+import os+import stat+from scripts import model_path_guard++RETIRED = {+ 'ltx-2.3-mlx-q4': (+ 'transformer-distilled-1.1.safetensors',+ 'spatial_upscaler_x1_5_v1_0.safetensors',+ 'temporal_upscaler_x2_v1_0.safetensors',+ ),+ 'ltx-2.3-mlx-q8': (+ 'transformer-distilled.safetensors',+ 'transformer-distilled-1.1.safetensors',+ 'spatial_upscaler_x1_5_v1_0.safetensors',+ 'temporal_upscaler_x2_v1_0.safetensors',+ ),+}+++def overlaps(path, protected):+ path = path.resolve()+ return any(path == p.resolve() or path.is_relative_to(p.resolve())+ or p.resolve().is_relative_to(path) for p in protected)+++def measure(folder):+ """Do not follow links or count shared hardlinks as reclaimable space."""+ size = 0+ for base, dirs, files in os.walk(folder, followlinks=False):+ dirs[:] = [d for d in dirs if not (Path(base) / d).is_symlink()]+ for name in files:+ try:+ info = (Path(base) / name).lstat()+ if stat.S_ISREG(info.st_mode):+ size += info.st_size+ except OSError:+ pass+ return size+++def candidates(root, protected=(), required=()):+ root = Path(root).resolve()+ required = {Path(p).resolve() for p in required}+ found = []+ for folder, names in RETIRED.items():+ parent = root / folder+ if (parent.is_symlink() or overlaps(parent, protected)+ or model_path_guard.problem(root, parent, write=True)):+ continue+ for name in names:+ path = parent / name+ if path in required or 'lora' in name.lower():+ continue+ try:+ info = path.lstat()+ except OSError:+ continue+ if stat.S_ISREG(info.st_mode) and info.st_nlink == 1:+ found.append((path, info.st_dev, info.st_ino, info.st_size, info.st_mtime_ns))+ return found+++def fingerprint(items):+ return hashlib.sha256(json.dumps([[str(p), *s] for p, *s in items]).encode()).hexdigest()+++def inventory(root, known=(), protected=(), required=(), extra=()):+ root = Path(root).resolve()+ items = candidates(root, protected, required)+ by_folder = {}+ for p, _, _, size, _ in items:+ by_folder[p.parent] = by_folder.get(p.parent, 0) + size+ try:+ folders = set(root.iterdir()) if root.is_dir() else set()+ except OSError:+ folders = set()+ folders.update(Path(p) for p in extra if Path(p).is_dir())+ rows = []+ seen = set()+ for folder in sorted(folders):+ if (not folder.is_dir() and not folder.is_symlink()) or folder.resolve() in seen:+ continue+ seen.add(folder.resolve())+ protected_row = folder.is_symlink() or overlaps(folder, protected)+ retired = by_folder.get(folder, 0) if not protected_row else 0+ used = folder.resolve() in {Path(p).resolve() for p in known}+ status = 'Protected' if protected_row else ('In use' if used else 'Unrecognized, kept')+ if retired:+ status += ' · superseded files'+ reason = model_path_guard.problem(root, folder)+ write_reason = model_path_guard.problem(root, folder, write=True)+ if reason or write_reason:+ status = reason or write_reason+ retired = 0+ rows.append({'name': folder.name, 'paths': [str(folder)],+ 'bytes': measure(folder), 'superseded_bytes': retired,+ 'status': status})+ return {'rows': rows, 'reclaimable': sum(i[3] for i in items),+ 'confirmation': fingerprint(items)}+++def cleanup(root, confirmation, protected=(), required=()):+ """Called with folder writer locks held. No recursive deletion, ever."""+ items = candidates(root, protected, required)+ if not confirmation or confirmation != fingerprint(items):+ raise ValueError('Storage changed. Refresh and confirm again.')+ freed = 0+ for path, device, inode, size, modified in items:+ # Open the directory without following a substituted symlink, then+ # unlink relative to that descriptor so a parent rename cannot escape.+ fd = os.open(path.parent, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW)+ try:+ current = os.stat(path.name, dir_fd=fd, follow_symlinks=False)+ if current.st_nlink != 1 or (current.st_dev, current.st_ino, current.st_size, current.st_mtime_ns) != (device, inode, size, modified):+ raise ValueError('Storage changed. Refresh and confirm again.')+ os.unlink(path.name, dir_fd=fd)+ freed += size+ finally:+ os.close(fd)+ return freeddiff --git a/panel/routes_agents.py b/panel/routes_agents.pyindex c90e9a1..0fd1f72 100644--- a/panel/routes_agents.py+++ b/panel/routes_agents.py@@ -27,21 +27,6 @@ def _safe(fn, default=None):return default-def _pro() -> dict:- # 5.0 studios answer pro_status(); a 4.19 studio has only the _pro_active() verdict, and the- # public Free tree has neither (always Free).- status = getattr(P, "pro_status", None)- if callable(status):- return _safe(status, {"active": False})- active = getattr(P, "_pro_active", None)- return {"active": bool(_safe(active, False)) if callable(active) else False}---def _speech_available() -> bool:- status = getattr(P, "speech_status", None)- return bool(callable(status) and _safe(lambda: status()["available"], False))--def agents_payload() -> dict:agents_dir = P.ROOT / "agents"py = sys.executable@@ -59,7 +44,7 @@ def agents_payload() -> dict:"distribution": P._dist.distribution(),"edition": _safe(P._dist.edition),"profile": P.PROFILE,- "pro": _pro(),+ "pro": _safe(P.pro_status, {"active": False}),"engines": {"ltx": {"available": not _safe(lambda: P.capability_missing("render"), ["?"]),"default": True,@@ -68,7 +53,7 @@ def agents_payload() -> dict:"h3": {"available": h3_on,"qualities": [k for k, q in P.H3_QUALITIES.items() if q.get("offered", True)],"lengths": [k for k, l in P.H3_LENGTHS.items() if l.get("offered", True)]},- "speech": {"available": _speech_available()},+ "speech": {"available": bool(_safe(lambda: P.speech_status()["available"], False))},"music": {"available": bool(_safe(lambda: not P.music_paths()["missing"], False))},"image": {"available": True, "note": "the engine chosen in Settings; it downloads on first use"},},diff --git a/panel/routes_bench.py b/panel/routes_bench.pynew file mode 100644index 0000000..b655ea2--- /dev/null+++ b/panel/routes_bench.py@@ -0,0 +1,424 @@+"""Phosphene Bench routes (bench.py is the suite, the runner and the card).++ GET /bench/plan what will run on THIS Mac, why not, past runs+ GET /bench/status the live run (polled by webapp/js/bench.js)+ POST /bench/start run the suite (409 + a code when it cannot)+ POST /bench/stop stop the run and the step it is rendering+ GET /bench/run?id= a result as JSON (&download=1 saves it)+ GET /bench/card?id= the result card PNG (&download=1 saves it)+ GET /bench/text?id= the plain-text summary for "Copy results"+ POST /bench/submit opt-in: send every unsent complete run+ POST /bench/install_image fetch FLUX.2 [klein] on an explicit click++The runner drives the panel through `_Host` below — the same make_job(), the+same queue, the same worker and job timer every render uses — so a Bench time+is a real render time and nothing about the work is bench-specific except+that its settings are frozen. `P` is the running mlx_ltx_panel module,+assigned at wiring time (see panel/__init__.py).+"""+from __future__ import annotations++import json+import os+import shutil+import subprocess+import threading+import time+from pathlib import Path++import bench+import distribution+from panel.routes import get, post++P = None # the running mlx_ltx_panel module; assigned at wiring time++_RUNNER: "bench.Runner | None" = None+_RUNNER_LOCK = threading.Lock()+_INSTALL = {"state": "idle", "error": "", "started": None, "pid": None}+_INSTALL_LOCK = threading.Lock()+++class _Host:+ """The handful of panel operations bench.Runner needs."""++ def __init__(self):+ self.store = bench.Store(P.STATE_DIR / "bench")++ # -- readiness --------------------------------------------------------+ def readiness(self) -> dict:+ return readiness()++ def canvases(self) -> dict:+ q = P.LTX_QUALITIES+ return {k: q[k]["canvas"] for k in ("quick", "balanced") if k in q}++ def tier(self) -> str:+ return str(P.SYSTEM_TIER)++ def app_info(self) -> dict:+ return app_info()++ def render_settings(self) -> dict:+ """Settings that change a render's time but are not suite data."""+ preset = str((P.output_codec_settings() or {}).get("preset") or "")+ return {"output_preset": preset or None,+ "output_preset_default": preset == P.DEFAULT_OUTPUT_PRESET}++ # -- the queue --------------------------------------------------------+ def busy_reason(self) -> str:+ return busy_reason()++ def make_job(self, form: dict) -> dict:+ job = P.make_job(form)+ # Tagged so the fleet's render_completed can tell a Bench render+ # from a person's own (docs/ANALYTICS.md `source`).+ job.setdefault("params", {})["source"] = "bench"+ return job++ def refusal(self, job: dict) -> str:+ params = job.get("params") or {}+ why = P.job_input_refusal(params)+ if why:+ return str(why)+ lic = P.job_licence_refusal(params)+ if lic:+ return str(lic.get("error") or "licence not accepted")+ return ""++ def enqueue(self, job: dict) -> None:+ with P.QUEUE_COND:+ P.STATE["queue"].append(job)+ P.QUEUE_COND.notify_all()+ P.persist_queue()++ def job(self, job_id: str) -> dict | None:+ with P.LOCK:+ cur = P.STATE.get("current")+ if cur is not None and cur.get("id") == job_id:+ return dict(cur)+ for j in P.STATE["queue"]:+ if j.get("id") == job_id:+ return dict(j)+ for j in P.STATE["history"]:+ if j.get("id") == job_id:+ return dict(j)+ return None++ def cancel(self, job_id: str) -> None:+ with P.LOCK:+ for i, j in enumerate(P.STATE["queue"]):+ if j.get("id") == job_id:+ P.STATE["queue"].pop(i)+ j["status"] = "cancelled"+ j["finished_at"] = P.iso_now()+ P.STATE["history"].insert(0, j)+ break+ else:+ j = None+ if j is not None:+ P.persist_queue()+ return+ P.stop_current_job(expect_id=job_id)++ def cold_start(self) -> None:+ """Every run starts from the same place: no warm LTX engine. Only+ when nothing is rendering — busy_reason() was checked at start."""+ if busy_reason():+ return+ with P.LOCK:+ if P.STATE.get("current") is not None or P.STATE.get("queue"):+ return+ P.HELPER.kill()++ def log_lines(self) -> list:+ with P.LOCK:+ return list(P.STATE.get("log") or [])++ def render_card(self, doc: dict, path) -> None:+ bench.render_card(doc, path, mark_path=P.ROOT / "assets" / "phosphene_mark_square.png")+++def runner() -> "bench.Runner":+ global _RUNNER+ with _RUNNER_LOCK:+ if _RUNNER is None:+ _RUNNER = bench.Runner(_Host())+ return _RUNNER+++def app_info() -> dict:+ return {+ "version": str(P.running_version() or "unknown"),+ "edition": distribution.edition() or ("pro" if distribution.is_pro() else "free"),+ "distribution": distribution.distribution(),+ "generation": str(P.ACTIVE_MODEL_VERSION),+ }+++def busy_reason() -> str:+ """"" when the Mac is free for a benchmark; else a code bench.js words."""+ with P.LOCK:+ if P.STATE.get("current") is not None or P.STATE.get("queue"):+ return "busy_queue"+ # A paused worker would take the warm-up and never start it.+ if P.STATE.get("paused"):+ return "busy_paused"+ if (P.gpu_gate_status() or {}).get("busy"):+ return "busy_gpu"+ with P.DOWNLOAD_LOCK:+ if P.DOWNLOAD.get("active"):+ return "busy_download"+ if _INSTALL["state"] == "downloading":+ return "busy_download"+ return ""+++def _klein_ready() -> bool:+ """The mflux FLUX.2 command exists AND the weights are in the HF cache.+ Without the second check the first image job would download 4.3 GB+ inside a timed step — silently, which the Bench promises never to do."""+ try:+ cfg = P.agent_image_engine.ImageEngineConfig(kind="mflux", mflux_family="flux2")+ if not P.agent_image_engine._resolve_mflux_bin(cfg):+ return False+ except Exception: # noqa: BLE001+ return False+ snap = P._repo_hf_cache_dir(bench.KLEIN_REPO)+ if snap is None:+ return False+ # Every component mflux loads must be on disk, and every weight file must+ # resolve (an interrupted download leaves dangling blob symlinks): a+ # half-fetched snapshot would otherwise be "ready" and the missing parts+ # would download inside the timed step.+ try:+ root = Path(snap)+ for comp in bench.KLEIN_COMPONENTS:+ files = [p for p in (root / comp).rglob("*") if not p.is_dir()]+ if not files or not all(p.exists() for p in files):+ return False+ if comp != "tokenizer" and not any(p.suffix == ".safetensors" for p in files):+ return False+ return True+ except OSError:+ return False+++def readiness() -> dict:+ render = P.capability_state("render")+ by_key = {r.get("key"): r for r in P._repos()}+ missing_keys = []+ for key in P.capability_repo_keys("render"):+ repo = by_key.get(key)+ if repo and P._repo_effective_missing(repo):+ missing_keys.append(key)+ try:+ h3 = P.h3_status()+ except Exception: # noqa: BLE001+ h3 = {}+ return {+ "ltx": {"ok": bool(render.get("ok")), "generation": str(P.ACTIVE_MODEL_VERSION),+ "missing_keys": missing_keys},+ "image": {"ok": _klein_ready(), "gb": bench.KLEIN_GB},+ "h3": {"installed": bool(h3.get("available")), "capable": bool(P.h3_capable()),+ "licence_ok": P.licence_refusal_for("h3") is None},+ }+++def _conditions_now() -> dict:+ return {"power": bench.power_source(), "low_power_mode": bench.low_power_mode(),+ "thermal": bench.thermal_state()}+++def _run_row(doc: dict, submitted: set) -> dict:+ s = doc.get("summary") or {}+ return {"run_id": doc.get("run_id"), "finished_at": doc.get("finished_at"),+ "suite": (doc.get("suite") or {}).get("id"),+ "headline_sec": s.get("headline_sec"), "complete": bool(s.get("complete")),+ "eligible": bool(s.get("eligible")), "submitted": doc.get("run_id") in submitted,+ "version": (doc.get("app") or {}).get("version")}+++@get("/bench/plan")+def get_bench_plan(h, parsed) -> None:+ r = runner()+ rows = bench.plan(readiness(), r.host.canvases())+ ok, why = bench.plan_can_run(rows)+ busy = busy_reason()+ store = r.host.store+ runs = store.runs()+ sent = store.submitted()+ h._json({+ "ok": True,+ "suite": {"id": bench.SUITE_ID, "name": bench.SUITE_NAME,+ "fingerprint": bench.SUITE_FINGERPRINT},+ "steps": rows,+ "can_run": bool(ok and not busy),+ "why": why or busy,+ "conditions": _conditions_now(),+ "analytics_enabled": bool(P._analytics_enabled()),+ "runs": [_run_row(d, sent) for d in runs[:20]],+ "unsent_eligible": len([d for d in bench.runs_to_submit(runs)+ if d["run_id"] not in sent]),+ "install": dict(_INSTALL),+ "state": r.snapshot(),+ })+++@get("/bench/status")+def get_bench_status(h, parsed) -> None:+ h._json({"ok": True, "state": runner().snapshot(), "install": dict(_INSTALL)})+++@post("/bench/start")+def post_bench_start(h, path, qs, ctype) -> None:+ try:+ run_id = runner().start()+ except bench.BenchBusy as exc:+ h._json({"ok": False, "code": str(exc)}, 409); return+ h._json({"ok": True, "run_id": run_id})+++@post("/bench/stop")+def post_bench_stop(h, path, qs, ctype) -> None:+ h._json({"ok": True, "stopped": runner().cancel()})+++def _doc_from_qs(h, parsed) -> dict | None:+ rid = (P.parse_qs(parsed.query).get("id", [""])[0] or "").strip()+ try:+ doc = runner().host.store.load(rid)+ except ValueError:+ doc = None+ if doc is None:+ h._json({"ok": False, "error": "no such Bench run"}, 404)+ return doc+++def _send(h, body: bytes, ctype: str, filename: str | None) -> None:+ h.send_response(200)+ h.send_header("Content-Type", ctype)+ h.send_header("Cache-Control", "no-store")+ h.send_header("Content-Length", str(len(body)))+ if filename:+ h.send_header("Content-Disposition", f'attachment; filename="{filename}"')+ h.end_headers()+ h.wfile.write(body)+++def _file_stem(doc: dict) -> str:+ chip = (doc.get("mac") or {}).get("chip_family", "mac").replace(" ", "-")+ day = (doc.get("finished_at") or "")[:10]+ return f"phosphene-bench-{doc['suite']['id']}-{chip}-{day}-{doc['run_id'][:6]}"+++@get("/bench/run")+def get_bench_run(h, parsed) -> None:+ doc = _doc_from_qs(h, parsed)+ if doc is None:+ return+ dl = P.parse_qs(parsed.query).get("download", [""])[0] == "1"+ body = (json.dumps(doc, indent=2, ensure_ascii=False) + "\n").encode("utf-8")+ _send(h, body, "application/json", f"{_file_stem(doc)}.json" if dl else None)+++@get("/bench/card")+def get_bench_card(h, parsed) -> None:+ doc = _doc_from_qs(h, parsed)+ if doc is None:+ return+ store = runner().host.store+ png = store.path(doc["run_id"], "png")+ if not png.is_file():+ try:+ runner().host.render_card(doc, png)+ except Exception as exc: # noqa: BLE001+ h._json({"ok": False, "error": f"could not draw the card: {exc}"}, 500); return+ dl = P.parse_qs(parsed.query).get("download", [""])[0] == "1"+ _send(h, png.read_bytes(), "image/png", f"{_file_stem(doc)}.png" if dl else None)+++@get("/bench/text")+def get_bench_text(h, parsed) -> None:+ doc = _doc_from_qs(h, parsed)+ if doc is None:+ return+ h._json({"ok": True, "text": bench.summary_text(doc)})+++@post("/bench/submit")+def post_bench_submit(h, path, qs, ctype) -> None:+ """The opt-in. The analytics switch is the consent this rides on: off+ means nothing leaves the Mac, whatever is clicked here."""+ if not P._analytics_enabled():+ h._json({"ok": False, "code": "analytics_off"}, 403); return+ store = runner().host.store+ sent = store.submitted()+ todo = [d for d in bench.runs_to_submit(store.runs()) if d["run_id"] not in sent]+ if not todo:+ h._json({"ok": False, "code": "nothing_to_send"}, 400); return+ # Delivered on this thread so only runs the receiver actually took are+ # marked sent; an offline click leaves the rest for the next one.+ sent_ids = []+ for i, doc in enumerate(todo, 1):+ if P._analytics_capture_sync("bench_result", bench.analytics_props(doc, i, len(todo))):+ sent_ids.append(doc["run_id"])+ store.mark_submitted(sent_ids)+ if not sent_ids:+ h._json({"ok": False, "code": "send_failed"}, 502); return+ h._json({"ok": True, "sent": len(sent_ids), "failed": len(todo) - len(sent_ids)})+++def _install_image_thread() -> None:+ env = dict(os.environ)+ env.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")+ env.pop("HF_HUB_OFFLINE", None)+ try:+ proc = subprocess.Popen([str(P.HF_BIN), "download", bench.KLEIN_REPO],+ stdout=subprocess.DEVNULL, stderr=subprocess.PIPE,+ text=True, errors="replace", env=env)+ _INSTALL["pid"] = proc.pid+ _, err = proc.communicate()+ if proc.returncode == 0 and _klein_ready():+ _INSTALL.update(state="done", error="")+ P.push("[bench] FLUX.2 [klein] 4B downloaded for Phosphene Bench.")+ else:+ tail = (err or "").strip().splitlines()[-1:] or ["the download did not finish"]+ _INSTALL.update(state="failed", error=tail[0][:300])+ except Exception as exc: # noqa: BLE001+ _INSTALL.update(state="failed", error=str(exc)[:300])+ finally:+ _INSTALL["pid"] = None+++@post("/bench/install_image")+def post_bench_install_image(h, path, qs, ctype) -> None:+ """FLUX.2 [klein] lives in the Hugging Face cache, not in a models pack,+ so /models/download cannot fetch it. This is the explicit click the+ Bench's "never downloads silently" rule asks for."""+ if P.HF_BIN is None:+ h._json({"ok": False, "error": "The download tool (hf) is missing. Use Repair engine in Settings."}, 500); return+ with _INSTALL_LOCK:+ if _INSTALL["state"] == "downloading":+ h._json({"ok": True, "already": True}); return+ if runner().state.get("running"):+ h._json({"ok": False, "code": "bench_running"}, 409); return+ # Check the filesystem that will receive the weights, including on+ # a fresh install where the cache directory does not exist yet.+ cache_home = Path(os.environ.get("XDG_CACHE_HOME", str(Path.home() / ".cache")))+ hf_home = Path(os.environ.get("HF_HOME", str(cache_home / "huggingface")))+ cache = Path(os.environ.get("HF_HUB_CACHE") or+ os.environ.get("HUGGINGFACE_HUB_CACHE") or str(hf_home / "hub"))+ while not cache.exists() and cache != cache.parent:+ cache = cache.parent+ required = int((bench.KLEIN_GB + 15) * 10**9)+ try:+ free = shutil.disk_usage(cache).free+ except OSError:+ h._json({"ok": False, "error": "Could not check free space for the image model. Check your cache drive and try again."}, 503); return+ if free < required:+ h._json({"ok": False, "code": "disk_space", "error":+ f"The image model needs {bench.KLEIN_GB:g} GB plus 15 GB of free space. "+ f"Only {free / 10**9:.1f} GB is available on the cache drive."}, 409); return+ _INSTALL.update(state="downloading", error="", started=time.time())+ threading.Thread(target=_install_image_thread, name="bench-klein-download", daemon=True).start()+ h._json({"ok": True})diff --git a/panel/routes_capabilities.py b/panel/routes_capabilities.pynew file mode 100644index 0000000..ae6f654--- /dev/null+++ b/panel/routes_capabilities.py@@ -0,0 +1,21 @@+"""/capabilities - what every engine and variant can do (model_capabilities.py).++GET /capabilities the resolved table: per variant its modes, canvases,+ lengths, inputs, outputs, options, Pro status and the one+ plain reason the page shows on every greyed control.++The page also gets the same table in BOOT.capabilities for first paint; this+route is for agents and external tools (docs/AGENT_API.md) and for a page that+wants it again after Pro turns on.+"""+from __future__ import annotations++import model_capabilities+from panel.routes import get++P = None # the running mlx_ltx_panel module; assigned at wiring time+++@get("/capabilities")+def get_capabilities(h, parsed) -> None:+ h._json(P._capabilities_boot())diff --git a/panel/routes_files.py b/panel/routes_files.pyindex bae9366..4118640 100644--- a/panel/routes_files.py+++ b/panel/routes_files.py@@ -823,6 +823,8 @@ def post_external_open(h, path, qs, ctype) -> None:_ALLOWED_HOSTS = {"huggingface.co", "civitai.com", "github.com","ideogram.ai", "pinokio.co", "pinokio.computer",+ # The Docs live on the website (owner, 1 Nov 2026).+ "phosphene.video",}try:_pp = P.urllib.parse.urlparse(url)@@ -1001,7 +1003,12 @@ def get_asset(h, parsed) -> None:ctype = {".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg",".webp": "image/webp", ".gif": "image/gif", ".svg": "image/svg+xml",+ ".mp4": "video/mp4", ".json": "application/json",}.get(ext, "application/octet-stream")+ if ext == ".mp4":+ # WKWebView's <video> needs byte ranges (the Remote page's film).+ h._serve_video_with_range(path)+ returnh.send_response(200)h.send_header("Content-Type", ctype)h.send_header("Content-Length", str(path.stat().st_size))@@ -1032,6 +1039,7 @@ def get_webapp_file(h, parsed) -> None:".mjs": "text/javascript; charset=utf-8",".html": "text/html; charset=utf-8",".svg": "image/svg+xml",+ ".woff2": "font/woff2",# The Docs pages (webapp/docs/*.md), rendered in the browser.".md": "text/markdown; charset=utf-8",}.get(ext, "application/octet-stream")diff --git a/panel/routes_image.py b/panel/routes_image.pyindex d4969d3..9fd3f2e 100644--- a/panel/routes_image.py+++ b/panel/routes_image.py@@ -490,6 +490,21 @@ def post_h3_flex_install(h, path, qs, ctype) -> None:returnh._json(result, 202)+# ====== Hailuo H3 · H3 Flex Turbo (Pro, preview) — download akhaliq's published+# four-step Flex Turbo LoRA at its pinned revision + sha256. Pro only.+@post("/h3/flex-turbo/install")+def post_h3_flex_turbo_install(h, path, qs, ctype) -> None:+ P.h3_status_invalidate()+ _lic = P.licence_refusal_for("h3")+ if _lic:+ h._json(_lic, 451); return+ result = P._h3_install_flex_turbo(P.push)+ if not result.get("ok"):+ h._json(result, 402 if result.get("pro_required") else+ 409 if "active" in result.get("error", "") else 400)+ return+ h._json(result, 202)+# ====== Images lane · P-H3-Image (Pruna, on MiniMax H3) - fetch Pruna's adapter, text encoder and# image decoder at pinned revisions (never re-hosted) and build the decoder layout locally.@post("/image/ph3image/install")diff --git a/panel/routes_meta.py b/panel/routes_meta.pyindex e55ab61..d72e11c 100644--- a/panel/routes_meta.py+++ b/panel/routes_meta.py@@ -223,6 +223,8 @@ def get_panel_bug_context(h, parsed) -> None:# the macOS username is often the person's real name. Scrub before# it ever reaches the browser, not after.tail = [P._bug_report_scrub_line(line) for line in tail]+ import image_diagnostics+ tail += image_diagnostics.bundle_lines(P.STATE_DIR, P._analytics_enabled)# Crash count — the modal hides the "Include crash reports"# checkbox when zero so the user doesn't see an empty zip.# SYS-12: counted every .ips on the Mac, regardless of which process@@ -340,13 +342,8 @@ def post_star_click(h, path, qs, ctype) -> None:@post("/version/finish")def post_version_finish(h, path, qs, ctype) -> None:- # Re-run post_update.sh after a failed in-panel finish (the banner's- # "Try again"). Same background run, same refusals.- if P._dist.is_mac_app():- h._json({"ok": False, "app_updates": True,- "error": P._dist.MAC_APP_UPDATES}, 409); return- code, payload = P.post_update_start("retry")- h._json(payload, code); return+ # Retry resumes the pinned transaction, including an interrupted fetch.+ return post_version_pull(h, path, qs, ctype)def restart_refusal():@@ -383,6 +380,12 @@ def reexec_panel(h) -> None:The caller has already passed restart_refusal(). See post_restart for whyos.execv is the right restart: same pid, same port, running what is on disknow, and the queue/settings live on disk so nothing is lost."""+ try:+ if P._root_is_checkout():+ P.update_transaction.Transaction(P.ROOT).request_restart()+ except P.update_transaction.UpdateError as exc:+ h._json({"ok": False, "error": str(exc)}, 409)+ returnP.persist_queue()h._json({"ok": True, "restarting": True})try:@@ -652,264 +655,47 @@ def post_star_prompt_star(h, path, qs, ctype) -> None:@post("/version/pull")def post_version_pull(h, path, qs, ctype) -> None:- # The "magic button" path — when the pill is in the behind- # state and the user clicks it, this endpoint runs git pull- # on the panel repo and reports back. The user still has to- # restart phosphene in Pinokio to load the new code (we can't- # restart ourselves from inside our own process), but we- # surface that clearly via the pull_state field.- #- # If the pulled diff touches dependency manifests / patch- # scripts (anything that update.js does in addition to- # `git pull`), we set pull_requires_full_update=True and the- # UI nudges the user toward Pinokio's full Update flow- # instead of just Stop+Start.- # Server-side guards run BEFORE we mutate _VERSION_STATE so a- # rejected 409 doesn't leave pull_state="pulling" stuck on- # disk for the UI poller to chew on forever. Previously the- # state was set first and the guards lived inside the try- # block; a guarded return would skip the cleanup branch in- # the bottom finally clause and never reset pull_state. Codex- # caught this on the second pre-ship review.- #- # The UI already refuses to surface the magic Update button- # unless the local repo is clean + on main + with no local- # commits ahead, but a malicious POST could otherwise bypass- # that and silently trigger `reset --hard`. Re-validate here.- #- # Inside the Mac app there is no checkout to pull, and `git` run in its- # folder could act on whatever repo encloses it. The app updates the- # studio (Phosphene -> Check for Updates...); this route never runs git.if P._dist.is_mac_app():h._json({"ok": False, "app_updates": True,"error": P._dist.MAC_APP_UPDATES}, 409)return- cur_branch = (P._git_capture(- ["rev-parse", "--abbrev-ref", "HEAD"]) or "").strip()- if cur_branch != "main":- h._json({- "ok": False,- "error": (- f"refusing to pull: local repo is on '{cur_branch}', "- f"not 'main'. Switch to main or run a fresh Pinokio "- f"install if you didn't intend to be on a side branch."- ),- }, 409)- return- # `git status --porcelain -uno` is empty iff no TRACKED file is- # modified. Same probe (and same -uno reasoning) as- # _detect_local_install_state — see the long note there: the- # installers legitimately leave untracked dirs in this tree- # (minimax-h3-mlx/, cache/, logs/) and refusing to pull because- # of them is what left every H3 user unable to update (#52).- dirty = (P._git_capture(["status", "--porcelain", "-uno"]) or "").strip()- if dirty:- h._json({- "ok": False,- "error": (- "refusing to pull: local working tree has "- "uncommitted changes to tracked files. Commit, "- "stash, or discard them, then click Update again."- ),- "dirty_files": dirty.splitlines()[:20],- }, 409)- return- # Block if there are local commits ahead of origin — those- # would be wiped by the reset --hard fallback below.- ahead = (P._git_capture(- ["rev-list", "--count", "origin/main..HEAD"]) or "0").strip()- try:- ahead_n = int(ahead)- except ValueError:- ahead_n = 0- if ahead_n > 0:- h._json({- "ok": False,- "error": (- f"refusing to pull: local has {ahead_n} commit(s) "- f"ahead of origin/main. Push them or reset manually "- f"if you don't need them."- ),- }, 409)+ branch = (P._git_capture(["rev-parse", "--abbrev-ref", "HEAD"]) or "").strip()+ if branch != "main":+ h._json({"ok": False, "error": f"Update needs main; this copy is on '{branch}'. Keep local branch work before switching."}, 409)return-- # All guards passed — claim the pulling state and proceed.- with P._VERSION_LOCK:- P._VERSION_STATE["pull_state"] = "pulling"- P._VERSION_STATE["pull_message"] = None- P._VERSION_STATE["pull_pulled_to_short"] = None- P._VERSION_STATE["pull_pulled_to_version"] = None- P._VERSION_STATE["pull_requires_full_update"] = Falsetry:- # Capture HEAD before the pull so we can diff afterwards.- pre_sha = P._git_capture(["rev-parse", "HEAD"]) or ""- # Step 1: fetch — populates origin/main without touching HEAD.- fetch_proc = P.subprocess.run(- ["git", "-C", str(P.ROOT), "fetch", "origin"],- capture_output=True, timeout=60,- )- if fetch_proc.returncode != 0:- raise RuntimeError(- (fetch_proc.stdout + fetch_proc.stderr).decode("utf-8", "replace").strip()- or f"git fetch exited {fetch_proc.returncode}")- # Step 1b: THE OBSTRUCTION GUARD — the sidebar Update's, run on the- # fetched origin/main, before anything can move the tree. `status- # -uno` above is blind to untracked and ignored files, and both- # moves below destroy them: `pull --ff-only` silently overwrites an- # IGNORED file where upstream now tracks one, and the reset- # overwrites untracked ones too (Codex INST-01, 2026-09-24).- guard = P.ROOT / "scripts" / "pinokio" / "update_obstruction_guard.sh"- if not guard.is_file():- raise RuntimeError(- "scripts/pinokio/update_obstruction_guard.sh is missing - "- "not updating. Nothing was changed or deleted; use the "- "Pinokio Update instead.")- guard_proc = P.subprocess.run(- ["bash", str(guard), "origin/main"],- cwd=str(P.ROOT), capture_output=True, timeout=60,- )- if guard_proc.returncode != 0:- raise RuntimeError(- (guard_proc.stdout + guard_proc.stderr).decode("utf-8", "replace").strip()- or "untracked or ignored files are in the way - nothing deleted")- # Step 2: try a fast-forward pull. Happy path for fresh installs- # whose local history lines up with origin/main.- pull_proc = P.subprocess.run(- ["git", "-C", str(P.ROOT), "pull", "--ff-only", "origin", "main"],- capture_output=True, timeout=60,- )- pull_out = (pull_proc.stdout + pull_proc.stderr).decode("utf-8", "replace").strip()- # Step 3: if the fast-forward refused (history diverged from- # origin — e.g. because of a past force-push that scrubbed- # commit identities), fall back to a hard reset onto- # origin/main. Guards above already proved this is safe- # (clean tree + on main + nothing ahead), so the reset just- # snaps the diverged history back to upstream.- #- # ONLY ON PROVEN DIVERGENCE. Every other refusal — the commonest is- # git's own "untracked working tree files would be overwritten" —- # used to take this branch too and reset over the file git had just- # protected (INST-01). The pre-fetch `ahead` check was against the- # OLD origin/main, so it cannot prove anything here; count again- # against the fetched one. Zero means history did not diverge,- # whatever made the pull fail: stop and report git's message.- if pull_proc.returncode != 0:- ahead_after = (P._git_capture(- ["rev-list", "--count", "origin/main..HEAD"]) or "0").strip()- try:- ahead_after_n = int(ahead_after)- except ValueError:- ahead_after_n = 0- if ahead_after_n <= 0:- raise RuntimeError(- f"update blocked - history has NOT diverged, so nothing "- f"was reset or deleted.\n{pull_out}")- reset_proc = P.subprocess.run(- ["git", "-C", str(P.ROOT), "reset", "--hard", "origin/main"],- capture_output=True, timeout=30,- )- reset_out = (reset_proc.stdout + reset_proc.stderr).decode("utf-8", "replace").strip()- if reset_proc.returncode != 0:- raise RuntimeError(- f"fast-forward refused and reset --hard failed.\n"- f"pull: {pull_out}\nreset: {reset_out}")- pull_out = (- f"history diverged from origin (likely a past force-push); "- f"recovered via reset --hard origin/main\n{reset_out}"- )- # Refresh local fields (HEAD, version) before computing the diff.+ tx = P.update_transaction.Transaction(P.ROOT)+ before = P._git_capture(["rev-parse", "HEAD"])+ rec = tx.prepare()P._detect_local_install_state()- post_sha = P._git_capture(["rev-parse", "HEAD"]) or ""-- # 4.17.5 (fleet): NOTHING NEW IS NOT AN UPDATE. Two installs pressed- # "Update now" on 4.17.4 itself; the pull moved nothing, the panel- # still said "restart to finish", and the restart came back on the- # same build - reported as a failed update (update_outcome- # restart_pending 4.17.4 -> 4.17.4). When HEAD did not move and this- # process already runs what is on disk, there is nothing to restart:- # say so, and drop the "pressed Update" marker so the next boot does- # not count a no-op as a failure.- moved = bool(pre_sha and post_sha and pre_sha != post_sha)- if not moved and not P.get_version_state().get("stale_process"):- P._settings_set_internal(analytics_update_pressed="")- with P._VERSION_LOCK:- P._VERSION_STATE["pull_state"] = "current"- P._VERSION_STATE["pull_message"] = (- "Already up to date - nothing to restart.")- try:- P._check_remote_once()- except Exception:- pass- h._json({"ok": True, "moved": False, "state": P.get_version_state()})- return-- # Did the pull touch anything that needs the heavier Pinokio- # Update.js (pip reinstalls + patch reapply)? If so, flag it.- deps_touched = False- if pre_sha and post_sha and pre_sha != post_sha:- diff_out = P._git_capture(- ["diff", "--name-only", f"{pre_sha}..{post_sha}"]- ) or ""- deps_signals = (- "install.js", "update.js", "pinokio.js", "download_q8.js",- "patch_ltx_codec.py", "required_files.json",- "requirements.txt", "pyproject.toml", "setup.py",- # Since v4.0 every pin, patch and weight step lives in- # post_update.sh and scripts/pinokio/ — a pull that touches- # them without the full Update ships new code onto old- # dependencies (review 2026-09-02).- "scripts/post_update.sh", "scripts/check_post_update.js",- # The wheel-build pin both installers read, and the YuE2- # engine SHA: only the full Update runs music_checkout.sh, so- # a pin-only pull used to say "Stop/Start is enough" and left- # new runner code on the old engine (Codex INST-12).- "pip-build-constraints.txt", "scripts/music/engine_pin.txt",- )- for line in diff_out.splitlines():- if (line in deps_signals or line.startswith("ltx-2-mlx/")- or line.startswith("scripts/pinokio/")- # install_h3.js / install_music.js / install_qwen.js …- # carry their engines' pins the same way install.js does.- or (line.startswith("install") and line.endswith(".js"))):- deps_touched = True- break-+ current = rec["phase"] in ("current", "succeeded") and not P.get_version_state().get("stale_process")+ changed = tx.git("diff", "--name-only", before, rec["candidate"]).splitlines()+ deps_changed = any(name.startswith(("scripts/", "ltx-2-mlx/", "install"))+ or name in ("update.js", "pinokio.js", "patch_ltx_codec.py",+ "required_files.json", "pip-build-constraints.txt",+ "requirements.txt", "pyproject.toml", "setup.py")+ for name in changed)with P._VERSION_LOCK:- P._VERSION_STATE["pull_state"] = "pulled"- P._VERSION_STATE["pull_message"] = (pull_out.splitlines() or ["pulled"])[-1]- # _VERSION_STATE, not the /version snapshot: these two- # mean "what we pulled TO", which is a fact about the tree.- # The snapshot's local_* deliberately means the opposite —- # the build this process is still running.- P._VERSION_STATE["pull_pulled_to_short"] = P._VERSION_STATE["local_short"]- P._VERSION_STATE["pull_pulled_to_version"] = P._VERSION_STATE["local_version"]- P._VERSION_STATE["pull_requires_full_update"] = deps_touched-- # Finish the update the way Pinokio's Update does: post_update.sh,- # after every pull that moved HEAD (beta, after 4.17.4 - see- # post_update_start). Restart stays refused until it is done.- if pre_sha and post_sha and pre_sha != post_sha:- P.post_update_start("update_now")-- # Re-run the remote check so behind_by recalculates to 0- # (normally) or to whatever new commits landed in the- # window since we pulled.- try:- P._check_remote_once()- except Exception:- pass-- h._json({"ok": True, "moved": moved, "state": P.get_version_state()})- except P.subprocess.TimeoutExpired:+ P._VERSION_STATE.update(+ pull_state="current" if current else "pulled",+ pull_message="Already up to date - nothing to restart." if current else "Update prepared; waiting for the new version to start.",+ pull_pulled_to_short=rec["candidate"][:7],+ pull_pulled_to_version=P._read_local_version(),+ pull_requires_full_update=deps_changed)+ if current:+ P._settings_set_internal(analytics_update_pressed="")+ elif rec["phase"] in ("source_ready", "dependencies", "dependencies_failed"):+ code, payload = P.post_update_start("update_now")+ if code >= 400:+ h._json(payload, code)+ return+ h._json({"ok": True, "moved": before != rec["candidate"], "state": P.get_version_state()})+ except P.update_transaction.UpdateError as exc:with P._VERSION_LOCK:- P._VERSION_STATE["pull_state"] = "error"- P._VERSION_STATE["pull_message"] = "git pull timed out (60s)"- h._json({"ok": False, "error": "git pull timed out", "state": P.get_version_state()}, 504)+ P._VERSION_STATE.update(pull_state="error", pull_message=str(exc))+ h._json({"ok": False, "error": str(exc), "state": P.get_version_state()}, 409)except Exception as exc:- with P._VERSION_LOCK:- P._VERSION_STATE["pull_state"] = "error"- P._VERSION_STATE["pull_message"] = str(exc)- h._json({"ok": False, "error": str(exc), "state": P.get_version_state()}, 500)+ h._json({"ok": False, "error": str(exc)}, 500)@post("/settings")diff --git a/panel/routes_models.py b/panel/routes_models.pyindex 3f3d845..39ce0a3 100644--- a/panel/routes_models.py+++ b/panel/routes_models.py@@ -14,6 +14,14 @@ from panel.routes import get, postP = None # the running mlx_ltx_panel module; assigned at wiring time+@post("/models/video")+def post_models_video(h, path, qs, ctype) -> None:+ if h._read_form_body() is None:+ return+ code, payload = P.request_video_models()+ h._json(payload, code)++@post("/models/download")def post_models_download(h, path, qs, ctype) -> None:_rb = h._read_form_body()@@ -35,12 +43,18 @@ def post_models_download(h, path, qs, ctype) -> None:# binary must not block the one lane that never needed it.# Mac app: the app is fetching this pack itself (app_models.json). Two# fetchers writing (or a repair deleting) one folder is not safe - refuse.+ reason = P.model_path_problem(repo, write=True)+ if reason:+ h._json({"error": reason}, 409); returnif P.app_models_owns(repo):h._json({"error": "This model is already downloading in the background.","app_downloading": True}, 409); returnif P.HF_BIN is None and (repo.get("mirror") or {}).get("kind") != "github-release":h._json({"error": "hf binary not found. Reinstall Phosphene ""or install huggingface_hub>=1.0 in the venv."}, 500); return+ reason = P.model_download_room([repo])+ if reason:+ h._json({"error": reason}, 507); returnwith P.DOWNLOAD_LOCK:busy = P.DOWNLOAD["active"]busy_key = P.DOWNLOAD.get("key")@@ -219,12 +233,17 @@ def post_models_cancel(h, path, qs, ctype) -> None:# process alone made the attempt look failed and the worker started the# next one. The slot itself stays held until the worker releases it, so a# new download cannot start and be wiped by the old worker's cleanup.+ pending = P.deferred_pending_keys()+ P.install_plan.stop_requested_packs(P.STATE_DIR)+ P.DEFERRED_WAKE.set()with P.DOWNLOAD_LOCK:was_active = P.DOWNLOAD["active"]rid = P.DOWNLOAD.get("repo_id")if was_active:P.DOWNLOAD["cancelled"] = Trueif not was_active:+ if pending:+ h._json({"ok": True}); returnh._json({"error": "no active download"}, 404); returnP._kill_active_download()P.push(f"[hf] cancel requested for {rid}")@@ -446,3 +465,41 @@ def post_music_install_stop(h, path, qs, ctype) -> None:h._json({"error": "no music engine install is running"}, 404); returnP.push("[music-install] stop requested")h._json({"ok": True}); return+++@post("/storage/cleanup")+def post_storage_cleanup(h, path, qs, ctype) -> None:+ reason = P.model_path_problem(write=True)+ if reason:+ h._json({"error": reason}, 409); return++ import model_storage+ read = h._read_form_body()+ if read is None:+ return+ _, form = read+ if form.get("confirmed") != ["yes"]:+ h._json({"error": "Confirm the superseded files before removing them."}, 400)+ return+ locks = []+ try:+ # Acquire every candidate folder lock before re-reading the snapshot.+ for name in model_storage.RETIRED:+ folder = P.MODELS_DIR / name+ if not folder.is_dir() or folder.is_symlink():+ continue+ fd = P.pack_folder_lock(folder)+ if fd is None or fd < 0:+ h._json({"error": "A model folder is busy or cannot be locked. Try again later."}, 409)+ return+ locks.append(fd)+ args = P.storage_inventory_args()+ freed = model_storage.cleanup(P.MODELS_DIR, form.get("confirmation", [""])[0],+ args["protected"], args["required"])+ h._json({"ok": True, "freed": freed, "freed_label": P._fmt_gb(freed)})+ except ValueError as exc:+ h._json({"error": str(exc)}, 409)+ except OSError:+ h._json({"error": "Cleanup could not finish. Refresh Storage to see what remains."}, 500)+ finally:+ P.pack_folder_unlock(locks)diff --git a/panel/routes_pro.py b/panel/routes_pro.pynew file mode 100644index 0000000..d020b4e--- /dev/null+++ b/panel/routes_pro.py@@ -0,0 +1,29 @@+"""/pro family routes - whether Pro is active on this Mac, and the measured Free-vs-Pro comparison.++GET /pro/status {active, plan, until, holder, source}; Free is the default and nothing here nags+GET /pro/compare the bundled "same clip, Free vs Pro" comparisons (assets/pro/compare.json)++Pro is on only with a signed capability token for this Mac (pro_token.py, passed by the Mac app);+PHOSPHENE_PRO=<plan> is a developer override honoured on a test rig only (PHOSPHENE_TEST_RIG=1).+"""+from __future__ import annotations++import json++from panel.routes import get++P = None # the running mlx_ltx_panel module; assigned at wiring time+++@get("/pro/status")+def get_pro_status(h, parsed) -> None:+ h._json(P.pro_status())+++@get("/pro/compare")+def get_pro_compare(h, parsed) -> None:+ try:+ data = json.loads((P.ROOT / "assets" / "pro" / "compare.json").read_text(encoding="utf-8"))+ except (OSError, ValueError):+ data = {"items": []}+ h._json(data)diff --git a/panel/routes_queue.py b/panel/routes_queue.pyindex feedb4d..54e8164 100644--- a/panel/routes_queue.py+++ b/panel/routes_queue.py@@ -39,6 +39,14 @@ def get_status(h, parsed) -> None:"pid": P.STATE["pid"], "pgid": P.STATE["pgid"],})hidden_count = len(P.HIDDEN_PATHS)+ # Human title per job, derived at read time (old history included).+ for _j in ([payload["current"]] if payload.get("current") else []) + \+ list(payload.get("queue") or []) + list(payload.get("history") or []):+ try:+ _p = _j.get("params") or {}+ _j["title"] = P.clip_title.display_title(_p.get("prompt"), _p.get("label") or _j.get("label"))+ except Exception:+ pass# Polling fast path — newest 60 only. outputs_total tells the# carousel header "X older outputs not shown" so the "Show all"# button can surface them via the /outputs endpoint.@@ -98,6 +106,8 @@ def get_status(h, parsed) -> None:return pricedif params.get("engine") == "music":return P.music_estimate(params["music_quality"], params["music_max_seconds"])["eta_sec"]+ if params.get("engine") == "speech":+ return P.speech_estimate(params.get("speech_text") or "", params.get("speech_speed") or 1.0)["eta_sec"]if params.get("mode") == "image":return float(avg_image) if avg_image else 90.0return float(avg_video) if avg_video else 420.0@@ -138,7 +148,7 @@ def get_status(h, parsed) -> None:"phase": "waiting", "pct": 0, "phase_label": str(_waiting),"elapsed_sec": max(0.0, P.time.time() - _started) if _started else 0,}- elif _mode != "train" and _engine not in ("h3", "music"):+ elif _mode != "train" and _engine not in ("h3", "music", "speech"):payload["current"]["progress"] = P._compute_progress(payload["current"], payload.get("log") or [],)@@ -199,6 +209,9 @@ def get_status(h, parsed) -> None:payload["q8_path"] = str(P.pack_path("q8"))payload["base_available"] = not _base_missingpayload["base_missing"] = _base_missing+ path_errors = [P.model_path_problem(P._deferred_repo(k), write=bool(_base_missing))+ for k in P.capability_repo_keys("render")]+ payload["model_path_error"] = next((e for e in path_errors if e), "")# Repo-level counts for the header pill — granular view that# matches the modal's per-repo rows (Q4 + Gemma + Q8 = 3 in the# default manifest). Avoids the pill claiming "2/2 ready" while@@ -268,6 +281,8 @@ def get_status(h, parsed) -> None:payload["h3"] = P.h3_status()payload["music"] = P.music_status()payload["music_install"] = P.music_install_status()+ payload["speech"] = P.speech_status()+ payload["speech_install"] = P.speech_install_status()# 4.17.4: can a render start at all (the engine venv), and the one-click# repair's progress. File checks only - cheap enough for every poll.payload["engine_env"] = P.engine_env_status()@@ -291,15 +306,15 @@ def get_status(h, parsed) -> None:"repo_id": P.DOWNLOAD["repo_id"],"started_ts": P.DOWNLOAD["started_ts"],"last_line": P.DOWNLOAD["last_line"],- # 4.20: the post-install background fetcher, not a click.+ # A bundle request uses the shared background queue."background": bool(P.DOWNLOAD.get("background")),"name": _dl_repo.get("name") or P.DOWNLOAD["key"],"size_gb": _dl_repo.get("size_gb"),+ **P.model_download_progress(_dl_repo),}else:payload["download"] = {"active": False}- # 4.20: what install.js left for after Start, and where the background- # fetcher is with it (empty and idle on every install it never queued).+ # Requested model packs and progress. Empty on a fresh first open.payload["deferred_downloads"] = P.deferred_status()# Mac app review #11: the process-wide GPU gate. `current` shows the queued# job; an inline image render, a character sheet, Enhance, a lyrics requestdiff --git a/panel/routes_remote.py b/panel/routes_remote.pynew file mode 100644index 0000000..bede767--- /dev/null+++ b/panel/routes_remote.py@@ -0,0 +1,48 @@+"""/remote/* - the Studio's Remote Control page (left menu).++The page is public Studio UI. The working parts (pairing, encryption, relay, the Pro check)+are the private pro_remote module from the Pro pack; with it absent every route answers+"available: false" and the page says Remote Control comes with Phosphene Pro.++Loopback-only like every studio route (the Handler's host/origin checks run first). The+private module re-checks Pro on every call. Mutations are POST only.+"""+from __future__ import annotations++from panel.routes import get, post++P = None # the running mlx_ltx_panel module; assigned at wiring time++_ACTIONS = ("enable", "name", "pair", "pair_cancel", "confirm", "revoke", "forget_all")+++def _mod():+ return getattr(P, "pro_remote", None)+++@get("/remote/state")+def get_remote_state(h, parsed) -> None:+ m = _mod()+ if m is None:+ h._json({"ok": True, "available": False, "pro": False, "requires_pro": True})+ return+ h._json(m.page_state())+++def _do(action):+ def handler(h, path, qs, ctype) -> None:+ m = _mod()+ if m is None:+ h._json({"ok": False, "error": "Remote Control comes with Phosphene Pro.", "code": "unavailable"}, 404)+ return+ rb = h._read_form_body()+ if rb is None:+ return+ form = {k: (v[0] if v else "") for k, v in rb[1].items()}+ status, doc = m.admin(action, form)+ h._json(doc, status)+ return handler+++for _a in _ACTIONS:+ post("/remote/" + _a)(_do(_a))diff --git a/panel/routes_speech.py b/panel/routes_speech.pynew file mode 100644index 0000000..4eaec0c--- /dev/null+++ b/panel/routes_speech.py@@ -0,0 +1,170 @@+"""Speech routes — Audio → Speech (text to speech) and its agent door.++ GET /speech/voices what the voice picker offers (presets, styles,+ characters that carry a voice sample) + status+ GET /speech/estimate ?text=&speed= → audio length and wall time+ POST /speech/install the install card (venv + packages + weights)+ POST /speech/install/stop+ POST /speech/generate the agent API: JSON or form in, a WAV out+ (wait:true blocks until it is written)++The UI's Generate goes through /queue/add (mode=speech) like every other+form; /speech/generate is the same job with an agent-shaped request and+response. Same module shape as the others: `h` is the handler, `P` the panel.+"""+from __future__ import annotations++import json+from urllib.parse import parse_qs++from panel.routes import get, post++P = None # the running mlx_ltx_panel module; assigned at wiring time++_WAIT_MAX_S = 10 * 60+++@get("/speech/voices")+def get_speech_voices(h, parsed) -> None:+ payload = P.speech_engine.voices_payload(P.list_characters())+ payload["status"] = P.speech_status()+ payload["install"] = P.speech_install_status()+ h._json(payload); return+++@get("/speech/estimate")+def get_speech_estimate(h, parsed) -> None:+ q = parse_qs(parsed.query)+ text = (q.get("text") or [""])[0]+ try:+ speed = float((q.get("speed") or ["1"])[0] or 1)+ except ValueError:+ speed = 1.0+ h._json(P.speech_estimate(text[:P.speech_engine.SPEECH_MAX_CHARS], max(0.5, min(2.0, speed)))); return+++@post("/speech/install")+def post_speech_install(h, path, qs, ctype) -> None:+ # Apache-2.0 weights: no licence screen (model_licences.py is for models+ # that ask for an explicit "I accept").+ _rb = h._read_form_body()+ if _rb is None:+ return+ code, payload = P.speech_install_start()+ h._json(payload, code); return+++@post("/speech/install/stop")+def post_speech_install_stop(h, path, qs, ctype) -> None:+ if not P.speech_install_stop():+ h._json({"error": "no Speech install is running"}, 404); return+ P.push("[speech-install] stop requested")+ h._json({"ok": True}); return+++def _agent_form(spec: dict) -> dict:+ """The agent's JSON spec → the same form fields the panel posts."""+ voice = str(spec.get("voice") or "").strip()+ character = str(spec.get("character") or "").strip()+ clip = str(spec.get("clip") or spec.get("ref_audio") or "").strip()+ kind = "character" if character else "clip" if clip else "preset"+ consent = spec.get("voice_consent", spec.get("consent", False))+ form = {+ "mode": "speech",+ "speech_text": str(spec.get("text") or ""),+ "speech_voice_kind": kind,+ "speech_voice": voice or ("ryan" if kind == "preset" else ""),+ "speech_character": character,+ "speech_ref_audio": clip,+ "speech_ref_text": str(spec.get("clip_text") or spec.get("ref_text") or ""),+ "speech_style": str(spec.get("style") or "natural"),+ "speech_instruct": str(spec.get("instruct") or ""),+ "speech_speed": str(spec.get("speed") if spec.get("speed") is not None else "1.0"),+ "speech_language": str(spec.get("language") or "english"),+ "speech_seed": str(spec.get("seed") if spec.get("seed") is not None else "-1"),+ "speech_title": str(spec.get("title") or ""),+ "speech_voice_consent": "1" if consent is True or str(consent).lower() in ("1", "true", "yes", "on") else "",+ }+ return {k: [v] for k, v in form.items()}+++def _find_job(jid: str):+ with P.LOCK:+ cur = P.STATE.get("current")+ if cur and cur.get("id") == jid:+ return cur+ for j in P.STATE.get("queue", []):+ if j.get("id") == jid:+ return j+ for j in P.STATE.get("history", []):+ if j.get("id") == jid:+ return j+ return None+++@post("/speech/generate")+def post_speech_generate(h, path, qs, ctype) -> None:+ if ctype.startswith("application/json"):+ try:+ length = int(h.headers.get("Content-Length") or "0")+ except ValueError:+ h._json({"ok": False, "error": "invalid Content-Length"}, 400); return+ if length <= 0 or length > 256 * 1024:+ h._json({"ok": False, "error": "send a JSON body under 256 KB"}, 400); return+ try:+ spec = json.loads(h.rfile.read(length).decode() or "{}")+ except (json.JSONDecodeError, UnicodeDecodeError):+ h._json({"ok": False, "error": "invalid JSON body"}, 400); return+ if not isinstance(spec, dict):+ h._json({"ok": False, "error": "the body must be a JSON object"}, 400); return+ else:+ _rb = h._read_form_body()+ if _rb is None:+ return+ spec = {k: (v[0] if isinstance(v, list) and v else v) for k, v in _rb[1].items()}+ if not P.speech_status()["available"]:+ st = P.speech_status()+ h._json({"ok": False, "code": "not_installed",+ "error": f"Speech is not installed. POST /speech/install (~{st['install_gb']} GB, resumable), "+ "then poll GET /status → speech_install until state is done."}, 409); return+ try:+ job = P.make_job(_agent_form(spec))+ except P.CharacterRequestError as exc:+ h._json({"ok": False, "error": str(exc)}, 400); return+ with P.QUEUE_COND:+ P.STATE["queue"].append(job)+ P.QUEUE_COND.notify_all()+ P.persist_queue()+ jid = job["id"]+ est = P.speech_estimate(job["params"]["speech_text"], job["params"]["speech_speed"])+ wait = spec.get("wait", True)+ if wait in (False, "false", "0", 0):+ h._json({"ok": True, "queued": True, "job_id": jid, "estimate": est,+ "poll": "GET /status (history[] entry with this id; output_path when done)"}, 202); return+ deadline = P.time.time() + _WAIT_MAX_S+ while True:+ rec = _find_job(jid)+ if rec is not None and rec.get("status") in ("done", "failed", "cancelled", "stopped"):+ break+ if P.time.time() > deadline:+ h._json({"ok": False, "job_id": jid, "error": "Timed out after 10 minutes waiting in the queue; "+ "the job may still finish (see GET /status)."}, 504); return+ P.time.sleep(0.5)+ rec = _find_job(jid) or {}+ if rec.get("status") != "done":+ stopped = rec.get("status") in ("cancelled", "stopped")+ h._json({"ok": False, "job_id": jid, "status": rec.get("status"),+ "error": ("The job was stopped before it finished." if stopped and not rec.get("error")+ else (rec.get("error") or "speech failed").strip())}, 409 if stopped else 500); return+ out = rec.get("output_path") or ""+ meta = {}+ try:+ meta = json.loads(P.Path(out + ".json").read_text())+ except (OSError, ValueError):+ pass+ h._json({"ok": True, "job_id": jid, "path": out,+ "url": "/file?path=" + P.quote(out),+ "audio_seconds": meta.get("audio_seconds"), "voice": meta.get("voice"),+ "seed": meta.get("seed"), "elapsed_sec": meta.get("elapsed_sec"),+ "next": {"lipsync": "POST /queue/add mode=a2v audio=<path> image=<face picture> prompt=<scene> "+ "(docs/API.md, Lip-sync)"}}); returndiff --git a/panel/routes_storyboard.py b/panel/routes_storyboard.pyindex df81ec1..1dc0dd0 100644--- a/panel/routes_storyboard.py+++ b/panel/routes_storyboard.py@@ -165,7 +165,7 @@ def get_storyboard_edit_room_tone(h, parsed) -> None:"default_level": rt.DEFAULT_LEVEL,"level_min": rt.LEVEL_MIN, "level_max": rt.LEVEL_MAX,"ref_lufs": rt.REF_LUFS,- "auto": bool(P.get_settings().get("room_tone_auto", True))})+ "auto": bool(P.get_settings().get("room_tone_auto", False))})# Make (or reuse) one bed. The client sends the timeline it is showing —@@ -219,3 +219,75 @@ def post_storyboard_write(h, path, qs, ctype) -> None:returnbody, form = _rbh._storyboard_post(path[len("/storyboard/"):], body, form)+++# ====== An agent's cut -> a film in the Editor ======================+# ONE CALL for what used to take about twenty: a JSON cut spec (clips with+# in/out points and film positions, the soundtrack, overlays, levels — see+# `storyboard_editor.edit_from_cut`) becomes a new film, saved, with its+# proxies and overlay previews building so it plays at once. `wait: true`+# answers only once that preparation is done. The answer carries the new+# film's id, the notes (a clip slowed to fill its slot, a hole) and+# `editor_url`, which opens it in the Editor.+@post("/storyboard/edit/import")+def post_storyboard_edit_import(h, path, qs, ctype) -> None:+ _rb = h._read_form_body()+ if _rb is None:+ return+ body, _form = _rb+ try:+ payload = P.json.loads(body or "{}")+ except ValueError as exc:+ h._json({"ok": False, "error": f"bad JSON: {exc}"}, 400)+ return+ if not isinstance(payload, dict):+ h._json({"ok": False, "error": "the cut must be a JSON object"}, 400)+ return+ # The spec itself, or `{"cut": spec, "wait": true}`.+ spec = payload.get("cut") if isinstance(payload.get("cut"), dict) else payload+ wait = bool(payload.get("wait"))+ try:+ out = P._sbe_import_cut(spec, wait=wait)+ except Exception as exc: # noqa: BLE001+ out = {"ok": False, "status": 500, "error": f"could not import that cut: {exc}"}+ h._json({k: v for k, v in out.items() if k != "status"},+ 200 if out.get("ok") else int(out.get("status") or 400))+++# The overlay lane's previews, on demand: an overlay placed by hand (or a+# film opened before its previews existed) asks for them here. Builds what+# is missing for the film's SAVED overlays plus the one `path` it names,+# synchronously (seconds, not minutes: 64 s of 720p ProRes took 5.5 s), and+# answers the pointer map the editor reads.+@post("/storyboard/edit/overlay-preview")+def post_storyboard_edit_overlay_preview(h, path, qs, ctype) -> None:+ _rb = h._read_form_body()+ if _rb is None:+ return+ _body, form = _rb++ def f(name: str) -> str:+ v = form.get(name) or [""]+ return str(v[0] if isinstance(v, list) else v).strip()++ bid = f("id")+ try:+ P.storyboard.load_storyboard(P.STATE_DIR, bid)+ sedit = P._sbe_import()+ except Exception as exc: # noqa: BLE001+ h._json({"ok": False, "error": str(exc)}, 404)+ return+ bdir = P._sbe_board_dir(bid)+ try:+ ovs = list((sedit.load_edit(bdir) or {}).get("overlays") or [])+ except Exception: # noqa: BLE001+ ovs = []+ extra = f("path")+ # An unsaved overlay is built only if it is one of the panel's own files+ # (the same containment every timeline path gets); the saved ones are+ # the document's and are built regardless.+ if extra and P._sbe_pool_path_ok(extra):+ ovs.append({"path": extra, "kind": "video"})+ built = P._sbe_overlay_previews_now(bdir, ovs, sedit)+ h._json({"ok": True, "previews": P._sbe_overlay_preview_map(bdir, ovs, sedit),+ "built": built["built"], "failed": built["failed"]})diff --git a/panel_assets/stats.html b/panel_assets/stats.htmlindex 45c77fc..4f7bb5f 100644--- a/panel_assets/stats.html+++ b/panel_assets/stats.html@@ -91,7 +91,7 @@background: var(--bg);background-image:radial-gradient(ellipse 1200px 600px at 50% -10%,- rgba(255, 255, 255, 0.040), transparent 60%),+ rgba(47, 129, 247, 0.08), transparent 60%),radial-gradient(ellipse 900px 500px at 85% 10%,rgba(255, 255, 255, 0.040), transparent 65%);background-attachment: fixed;@@ -417,7 +417,7 @@width: var(--fill, 100%);background: linear-gradient(90deg,rgba(47, 129, 247, 0.14),- rgba(255, 255, 255, 0.020) 90%);+ rgba(47, 129, 247, 0.02) 90%);z-index: 0;}.funnel-step.is-hero::before {diff --git a/pinokio.js b/pinokio.jsindex b0850cb..a3e2415 100644--- a/pinokio.js+++ b/pinokio.js@@ -5,16 +5,8 @@// completeness checks) and is what install.js / update.js are wired to// produce — so the menu state never drifts from what the panel will accept.//-// Three install levels we care about for menu rendering:-// env_ready — venv + ltx-2-mlx clone exist (install.js step 1-3)-// base_models_ready — Q4 + Gemma fully on disk (install.js step 4-5)-// q8_ready — optional Q8 bundle fully on disk (download_q8.js)-//-// Anything less than `env_ready && base_models_ready` means the user can't-// Start — we surface a Resume Install affordance instead of Start. This is-// the SHIP-BLOCKER from the deep review: a network hiccup after venv-// creation used to leave the menu showing Start, with the panel about to-// crash because Q4/Gemma aren't on disk.+// Start needs a working runtime. Models are requested inside the app;+// an empty model folder is a valid first run. Q8 remains an optional offer.const fs = require("fs")const os = require("os")@@ -48,7 +40,9 @@ function h3Capable() {}function musicCapable() {- try { return os.totalmem() >= 24 * 1000 * 1000 * 1000 } catch (e) { return false }+ // Same floor as MUSIC_MIN_RAM_GB (16 GB since 4.19.12). A "16 GB" Mac reports+ // 17179869184 bytes, so the decimal 16e9 admits it and nothing smaller.+ try { return os.totalmem() >= 16 * 1000 * 1000 * 1000 } catch (e) { return false }}// SYS-18: the Q8 download entry below was offered on EVERY Mac regardless@@ -195,15 +189,7 @@ module.exports = {// --- per-repo completeness from the unified manifest ---const repos = required.repos || []- // WHAT HIDES START IS "CAN THIS RENDER", NOT "IS EVERY base ROW COMPLETE".- // `kind: "base"` had come to mean two different things — fetched on a fresh- // install, AND the panel cannot render without it — and Gemma 3 is the first- // but not the second: it is LTX-2.3's encoder and the Enhance/planner model,- // and the active 2.5 generation renders with Gemma 4 instead. Marked base, a- // half-downloaded planner model made Pinokio declare the base renderer- // incomplete and hide Start on an install that renders perfectly. The- // preview decoder had the identical bug one commit earlier; this closes the- // class by asking the capability instead of the label.+ // Use the active generation for the optional high-quality model offer.const caps = required.capabilities || {}const capRender = caps.render || {}// THE ACTIVE GENERATION, where it is knowable. A user pinned back with@@ -219,10 +205,6 @@ module.exports = {if (pinnedVersion && (capRender.repos_by_version || {})[pinnedVersion]) {activeVersion = pinnedVersion}- const renderKeys = ((capRender.repos_by_version || {})[activeVersion] || [])- const baseRepos = renderKeys.length- ? renderKeys.map(k => repos.find(r => r.key === k)).filter(Boolean)- : repos.filter(r => r.kind === "base")// THE PACK THE BUTTON ACTUALLY INSTALLS. This read `key === "q8"` —// LTX-2.3's pack — while the menu entry it gates dispatches// download_q8.js -> q8_weights.sh -> `--repo-key q8_25`, i.e. LTX-2.5's.@@ -244,7 +226,6 @@ module.exports = {? `~${Math.round(q8Repo.size_gb)} GB` : "unknown size"const q8Name = q8Repo && q8Repo.name ? q8Repo.name : "Q8 weights"- const base_ready = baseRepos.length > 0 && baseRepos.every(r => repoComplete(installRoot, r, minBytes))const q8_ready = q8Repo ? repoComplete(installRoot, q8Repo, minBytes) : falseconst sharp_ready =info.exists("ltx-2-mlx/env/lib/python3.11/site-packages/pipersr") ||@@ -619,27 +600,7 @@ module.exports = {return m}- // Env exists but base models aren't fully there → SHIP-BLOCKER fix.- // Don't show Start — the panel would crash on the first job. Run- // install.js again (it's idempotent: skips clone + venv if present,- // re-runs `hf download` which itself resumes any partial files).- if (!base_ready) {- const m = [- // Deliberately NOT `default: true`. Reaching this state means- // install.js has already run and did not complete, so auto-running it- // is precisely the respawn loop documented at install_attempted. The- // user clicks Resume when they're ready.- { icon: "fa-solid fa-rotate-right", text: "Resume Install (base models incomplete)", href: "install.js" },- ]- if (has_outputs) m.push({ icon: "fa-solid fa-film", text: "Outputs", href: "mlx_outputs?fs=true" })- if (has_models) m.push({ icon: "fa-solid fa-cube", text: "Models", href: "mlx_models?fs=true" })- if (has_uploads) m.push({ icon: "fa-solid fa-image", text: "Uploads", href: "panel_uploads?fs=true" })- pushLtxRepair(m)- pushH3Recovery(m)- m.push({ icon: "fa-regular fa-circle-xmark", text: "Reset engine (keeps models & outputs)", href: "reset.js" })- return m- }-+ // Models are optional until a feature is used. A runtime can always open.if (running.start) {const local = info.local("start.js")if (local && local.url) {diff --git a/pro_token.py b/pro_token.pynew file mode 100644index 0000000..d5d40f5--- /dev/null+++ b/pro_token.py@@ -0,0 +1,288 @@+"""Is Phosphene Pro active on this Mac: the studio's own check of the signed capability token.++The licence server issues a short-lived capability token for a Pro licence on every successful+validate (at most 15 days: the 14-day offline grace). The Mac app keeps it with the licence and+passes it to the studio it starts (PHOSPHENE_PRO_TOKEN, and PHOSPHENE_PRO_TOKEN_FILE, which the+app rewrites on every renewal). The sealed Pro modules check the same token themselves; this+module lets the open studio ask the same question for the things it gates in the open (the PRO+mark, Pro estimates, H3 Flex Turbo), so a paying Mac reads Pro and a hand-written file cannot.++ token = "v1." + b64url(payload) + "." + b64url(signature)+ signed = b"phosphene-pro-token-v1\\0" + payload+ payload = {"kid", "iid", "dev", "bv", "iat", "exp", "ed": "pro", "m"}++A token counts when: its Ed25519 signature verifies against a key listed here, its key id is+that key's, it is a Pro token, its lifetime is at most 15 days, it has not expired, it is not+dated more than a day ahead, and it was issued for THIS Mac (device id from the hardware UUID,+the same derivation as the app and the server). The bundle version is NOT checked here: the+studio is not a Pro bundle, and the sealed modules check it for the paid code.++Revocation: the server stops issuing tokens at once (refund, cancellation, a licence moved to+another Mac); a token already on this Mac lapses at its own expiry, as offline grace allows.++Ed25519 verification is implemented here (RFC 8032, verify only) so the studio needs no extra+package. The signature verdict is cached per token; time and device are decided on every call.+"""+from __future__ import annotations++import base64+import hashlib+import json+import os+import subprocess+import threading+import time++# Public keys of the licence server's token signer, by key id. Public by design.+PUBLIC_KEYS = {"tok-2026-10": "johlJ6vvCc7C2k2QyQkgbms+im/Y5VpK35hAcCQcfAQ="}+DOMAIN = b"phosphene-pro-token-v1\x00"+MAX_LIFE = 15 * 86400+SKEW = 86400+TOKEN_FILE_MAX = 4096++REASONS = {+ "missing": "no licence token reached the studio",+ "malformed": "the licence token is damaged",+ "bad_signature": "the licence token was not issued by Phosphene",+ "wrong_key": "the licence token was signed with a key this studio does not know",+ "wrong_edition": "the licence token is not a Pro token",+ "too_long": "the licence token claims a lifetime this studio does not accept",+ "expired": "the licence check has expired (open Phosphene while online to renew it)",+ "not_yet_valid": "the licence token is dated in the future (check the Mac's clock)",+ "wrong_device": "the licence token belongs to another Mac",+ "no_device": "this Mac's hardware id could not be read",+}++# ----------------------------------------------------------------------------- Ed25519 (verify)++_P = 2 ** 255 - 19+_L = 2 ** 252 + 27742317777372353535851937790883648493+_D = -121665 * pow(121666, _P - 2, _P) % _P+_I = pow(2, (_P - 1) // 4, _P)+++def _inv(x: int) -> int:+ return pow(x, _P - 2, _P)+++def _add(a, b):+ # extended twisted Edwards coordinates (X, Y, Z, T), a = -1+ A = (a[1] - a[0]) * (b[1] - b[0]) % _P+ B = (a[1] + a[0]) * (b[1] + b[0]) % _P+ C = 2 * a[3] * b[3] * _D % _P+ D = 2 * a[2] * b[2] % _P+ E, F, G, H = B - A, D - C, D + C, B + A+ return (E * F % _P, G * H % _P, F * G % _P, E * H % _P)+++def _scalar(k: int, pt):+ acc = (0, 1, 1, 0)+ while k:+ if k & 1:+ acc = _add(acc, pt)+ pt = _add(pt, pt)+ k >>= 1+ return acc+++def _x_from_y(y: int, sign: int):+ if y >= _P:+ return None+ xx = (y * y - 1) * _inv(_D * y * y + 1) % _P+ if xx == 0:+ return None if sign else 0+ x = pow(xx, (_P + 3) // 8, _P)+ if (x * x - xx) % _P:+ x = x * _I % _P+ if (x * x - xx) % _P:+ return None+ return _P - x if (x & 1) != sign else x+++def _decode_point(raw: bytes):+ if len(raw) != 32:+ return None+ n = int.from_bytes(raw, "little")+ y, sign = n & ((1 << 255) - 1), n >> 255+ x = _x_from_y(y, sign)+ return None if x is None else (x, y, 1, x * y % _P)+++def _equal(a, b) -> bool:+ return (a[0] * b[2] - b[0] * a[2]) % _P == 0 and (a[1] * b[2] - b[1] * a[2]) % _P == 0+++_BY = 4 * _inv(5) % _P+_B = (_x_from_y(_BY, 0), _BY, 1, _x_from_y(_BY, 0) * _BY % _P)+++def ed25519_verify(public: bytes, message: bytes, signature: bytes) -> bool:+ if len(public) != 32 or len(signature) != 64:+ return False+ A, R = _decode_point(public), _decode_point(signature[:32])+ if A is None or R is None:+ return False+ s = int.from_bytes(signature[32:], "little")+ if s >= _L:+ return False+ h = int.from_bytes(hashlib.sha512(signature[:32] + public + message).digest(), "little") % _L+ return _equal(_scalar(s, _B), _add(R, _scalar(h, A)))+++# ----------------------------------------------------------------------------- the token++def _b64(s: str) -> bytes:+ s = str(s).strip().rstrip("=").replace("+", "-").replace("/", "_")+ return base64.urlsafe_b64decode(s + "=" * (-len(s) % 4))+++def verify_signature(token: str, keys: dict | None = None):+ """(ok, reason, payload): what depends only on the token and the keys (signature, key id,+ edition, lifetime). Expensive; cached by the caller."""+ keys = PUBLIC_KEYS if keys is None else keys+ if not token:+ return False, "missing", None+ parts = str(token).strip().split(".")+ if len(parts) != 3 or parts[0] != "v1":+ return False, "malformed", None+ try:+ payload, sig = _b64(parts[1]), _b64(parts[2])+ except (ValueError, TypeError):+ return False, "malformed", None+ if not payload or len(payload) > 2048:+ return False, "malformed", None+ try:+ p = json.loads(payload.decode("utf-8"))+ if not isinstance(p, dict):+ raise ValueError+ kid = str(p.get("kid", ""))+ iat, exp = int(p["iat"]), int(p["exp"])+ str(p["dev"])+ except (ValueError, KeyError, TypeError, UnicodeDecodeError):+ return False, "malformed", None+ pub = keys.get(kid)+ if not pub:+ return False, "wrong_key", None+ try:+ pub_raw = _b64(pub)+ except (ValueError, TypeError):+ return False, "wrong_key", None+ if not ed25519_verify(pub_raw, DOMAIN + payload, sig):+ return False, "bad_signature", None+ if str(p.get("ed", "")) != "pro":+ return False, "wrong_edition", p+ if exp <= iat or exp - iat > MAX_LIFE:+ return False, "too_long", p+ return True, "ok", p+++def check(token: str, now: int, device: str | None, keys: dict | None = None, verified=None):+ """(ok, reason, payload). Pure: every input is an argument."""+ ok, reason, p = verified if verified is not None else verify_signature(token, keys)+ if not ok:+ return ok, reason, p+ if now >= int(p["exp"]):+ return False, "expired", p+ if now + SKEW < int(p["iat"]):+ return False, "not_yet_valid", p+ if not device:+ return False, "no_device", p+ if str(p["dev"]) != device:+ return False, "wrong_device", p+ return True, "ok", p+++# ----------------------------------------------------------------------------- this Mac++_lock = threading.Lock()+_sig_cache: dict = {}+_device: list = []+++def device_id() -> str | None:+ """sha256("phosphene-device-v1:" + IOPlatformUUID)[:16], like the app's Device.swift."""+ with _lock:+ if _device:+ return _device[0]+ try:+ out = subprocess.run(["/usr/sbin/ioreg", "-rd1", "-c", "IOPlatformExpertDevice"], capture_output=True,+ timeout=10, env={"PATH": "/usr/bin:/bin:/usr/sbin:/sbin"}).stdout+ except (OSError, subprocess.SubprocessError):+ return None+ for line in out.decode("utf-8", "replace").splitlines():+ if '"IOPlatformUUID"' in line and "=" in line:+ uuid = line.split("=", 1)[1].strip().strip('"')+ if uuid:+ d = hashlib.sha256(("phosphene-device-v1:" + uuid).encode()).hexdigest()[:16]+ with _lock:+ _device[:] = [d]+ return d+ return None+++def _read_token_file(path: str) -> str | None:+ try:+ fd = os.open(path, os.O_RDONLY | getattr(os, "O_NONBLOCK", 0))+ except OSError:+ return None+ try:+ st = os.fstat(fd)+ if (st.st_mode & 0o170000) != 0o100000 or st.st_size > TOKEN_FILE_MAX:+ return None+ raw = os.read(fd, TOKEN_FILE_MAX + 1)+ except OSError:+ return None+ finally:+ os.close(fd)+ try:+ return raw.decode("ascii").strip() or None+ except UnicodeDecodeError:+ return None+++def candidates(environ=None) -> list[str]:+ """The renewal file first (the app rewrites it on every renewal), then the launch token."""+ env = os.environ if environ is None else environ+ out = []+ path = (env.get("PHOSPHENE_PRO_TOKEN_FILE") or "").strip()+ if path:+ t = _read_token_file(path)+ if t:+ out.append(t)+ t = (env.get("PHOSPHENE_PRO_TOKEN") or "").strip()+ if t and t not in out:+ out.append(t)+ return out+++def _verified(token: str):+ with _lock:+ hit = _sig_cache.get(token)+ if hit is None:+ hit = verify_signature(token)+ with _lock:+ if len(_sig_cache) >= 16:+ _sig_cache.clear()+ _sig_cache[token] = hit+ return hit+++def status(environ=None, now: int | None = None, device=None) -> dict:+ """{ok, reason, expires_at}: the verdict NOW over every candidate token (the valid one that+ expires last wins; with none valid, the first one's reason)."""+ tokens = candidates(environ)+ if not tokens:+ return {"ok": False, "reason": "missing", "expires_at": None}+ now = int(time.time()) if now is None else int(now)+ best = None+ for token in tokens:+ v = _verified(token)+ dev = (device if device is not None else device_id()) if v[0] else None+ r = check(token, now, dev, verified=v)+ if r[0]:+ if best is None or not best[0] or int(r[2]["exp"]) > int(best[2]["exp"]):+ best = r+ elif best is None:+ best = r+ ok, reason, p = best+ return {"ok": bool(ok), "reason": reason, "expires_at": int(p["exp"]) if ok and p else None}diff --git a/required_files.json b/required_files.jsonindex 47491da..4640ccc 100644--- a/required_files.json+++ b/required_files.json@@ -93,23 +93,13 @@}},"install": {- "_comment": "WHAT install.js FETCHES BEFORE START, AND WHAT IT LEAVES FOR LATER (4.20). Until 4.20 install.js downloaded every pack below before Start appeared (~38 GB, an hour or more on a fast line), and the fleet data says about 4 in 5 Pinokio install starts never reach a first panel boot. `before_start` is what a first render needs: the render capability of the default generation plus the 22 MB live-preview decoder. Nothing else may sit in front of Start. `after_start` is everything a full install used to fetch on top of that; the panel downloads it in the background after the first boot, in this order, but ONLY for an install that install.js marked (state/install_deferred.json), so an existing install that updates is never handed a download it did not ask for. Read by install_plan.py (the install.js disk preflight, the size/time line, the marker) and by the panel's background fetcher; test_install_deferred.py holds the two lists against install.js, ltx25_weights.sh and capabilities.render.",- "_sizes_comment": "env_gb: the engine venv and the uv cache it is built from, measured 1.1 GB on disk plus wheels; rounded up. headroom_gb: slack the preflight keeps under the required download. background_floor_gb: the panel never lets a background download take the volume below this much free space; an explicit Download click is not held to it.",- "before_start": [- "q4_25",- "gemma4_25",- "tae"- ],- "after_start": [- "gemma",- "ic_upscale_x2",- "ic_union_control",- "ic_ingredients",- "ic_colorize"- ],+ "_comment": "Start needs the runtime only. Model downloads are explicit feature requests inside the app.",+ "_sizes_comment": "env_gb reserves runtime and wheel cache space. The Models downloader keeps 15 GB free.",+ "before_start": [],+ "after_start": [],"env_gb": 3,- "headroom_gb": 2,- "background_floor_gb": 10+ "headroom_gb": 15,+ "background_floor_gb": 15},"repos": [{@@ -457,7 +447,7 @@{"_comment": "The tiny decoder behind LIVE PREVIEW. 22.4 MiB, MIT, ungated, from github.com/madebyollin/taehv (taeltx2_3.safetensors, 23,531,296 B, sha256 f0773b4e…be246 — verified byte count and hash before publishing). It turns the x0 estimate the denoise loop ALREADY HOLDS into a thumbnail, so nothing is recomputed and a render with the preview on is byte-identical to the same render with it off.","_mirror_comment": "Mirrored onto the SAME release as the 2.5 packs rather than fetched from raw.githubusercontent at render time, so it rides the ordinary lane: files[] + download_include[], one manifest format, sha256-verified and resumable by scripts/fetch_pack_release.py, and no new fetch-lane code. `repo_id` names the upstream for attribution; the bytes come from the mirror block.",- "_kind_comment": "NOT `base`, and marking it base cost a user their panel. `kind: base` is the gate for CAN THIS MACHINE RENDER AT ALL: pinokio.js hides Start behind it and the panel raises the red 'Base models needed before you can render' block over everything. A missing 22 MB PREVIEW decoder is none of those things - the renderer never loads it, live_preview_enabled() returns False and every render proceeds normally. Marked base, its absence reported a working install as unable to render, permanently, as '(1 files left)', with no way to clear it but a download the user had no idea they needed. Both fetch lanes name it explicitly (--repo-key tae in scripts/pinokio/ltx25_weights.sh and scripts/post_update.sh), so `optional` costs nothing on install or update; it only stops the panel lying about what is broken.",+ "_kind_comment": "Optional live preview only. Missing this decoder must never hide Start or block rendering. Download from Models when wanted; it is not part of the first-video bundle.","key": "tae","kind": "optional","name": "Live-preview decoder",diff --git a/room_tone.py b/room_tone.pyindex 654168d..6ebb220 100644--- a/room_tone.py+++ b/room_tone.py@@ -56,7 +56,12 @@ REF_LUFS = -18.0 # what the file is written atPEAK_CAP = 10 ** (-1.0 / 20) # −1 dBFSDEFAULT_LEVEL = -38.0 # a bed you stop hearing, not one you hear under every line# (was -27, which sat only ~9 dB under the speech)-LEVEL_MIN, LEVEL_MAX = -45.0, -18.0+LEVEL_MIN, LEVEL_MAX = -60.0, -18.0+# A "From this film" bed sits this far UNDER the room it was measured from.+# The bed's job is to fill the dips at the cuts, where one clip is quieter+# than the others; laid at the room's own level it would add as much hiss+# again (+3 dB) to every second that already has a room.+FILM_UNDER_DB = 3.0DEFAULT_VARIANT = "film"FALLBACK_VARIANT = "quiet_room"MIN_QUIET_S = 1.5 # less usable quiet than this → fallback@@ -173,6 +178,26 @@ def gain_level(gain: float, ref: float = REF_LUFS) -> float:return round(float(ref) + 20 * math.log10(g), 2)+def film_level(film_lufs) -> float | None:+ """The level a "From this film" bed should play at: the measured room,+ `FILM_UNDER_DB` under it, inside the slider's range. None when nothing+ was measured (a preset, a film with no quiet sound).++ WHY (2 Nov, SUNDAY MASS): every bed used to go in at DEFAULT_LEVEL, a+ fixed -38 LUFS, while `film_shape` threw the room's level away and kept+ only its shape. The film's quiet moments measured -45 to -66 dBFS (median+ about -57), so the "room tone" played 15-25 dB louder than the room it+ copied: a flat hiss ~10 dB under the sermon lines, on every second of the+ film, including under the score."""+ try:+ x = float(film_lufs)+ except (TypeError, ValueError):+ return None+ if x != x or x <= -100:+ return None+ return clamp_level(x - FILM_UNDER_DB)++def bed_seconds(film_len: float) -> int:"""The file length for a film: rounded UP to `BED_STEP_S`, so trims andsmall moves never need a new file."""@@ -388,15 +413,40 @@ def quiet_spectrum(x: np.ndarray) -> tuple[np.ndarray | None, float]:return spec.mean(axis=0), float(keep.sum() * HOP / SR)+def psd_lufs(psd: np.ndarray, sr: int = SR) -> float:+ """BS.1770 loudness of the quiet windows `quiet_spectrum` averaged, from+ their spectrum: Parseval over one Hann-windowed WIN frame, the window's+ own power taken back out, K-weighted. The clips are decoded to mono+ (`-ac 1`), and a near-mono clip played on two channels reads 3 dB louder+ than its mono sum, so 3 dB go back on: that is the level the room is+ HEARD at, the number the bed's own (stereo) loudness is compared with."""+ p = np.asarray(psd, dtype=np.float64)+ if p.size < 2:+ return -120.0+ freqs = np.fft.rfftfreq(WIN, 1.0 / sr)+ kw = k_weight_power(freqs, sr)+ kw[0] = 0.0+ q = p * kw+ s = 2.0 * q[1:].sum() - (q[-1] if WIN % 2 == 0 else 0.0)+ w2 = float(np.mean(np.hanning(WIN) ** 2))+ ms = s / (WIN * WIN) / w2+ if ms <= 0:+ return -120.0+ return round(-0.691 + 10 * math.log10(ms) + 3.01, 2)++def film_shape(clips, decoder=None) -> dict:"""The film's ambience: `{db (per WIN bin, 0 dB = unit power), quiet_s,- clips_used}` or `{db: None, ...}` when nothing usable was found.+ clips_used, quiet_lufs}` or `{db: None, ...}` when nothing usable was+ found. `quiet_lufs` is the MEDIAN of the clips' quiet-window loudness:+ how loud the room actually is, which the bed's level is set from.`clips` is `[{path, start, end}]` in SOURCE seconds. Every clip's spectrumis normalised to unit power first (shape, not level), and the per-binMEDIAN across clips keeps one noisy shot from owning the film."""dec = decoder or decode_windowshapes, quiet, used = [], 0.0, 0+ levels = []seen = set()for c in clips or []:path = str((c or {}).get("path") or "")@@ -420,12 +470,13 @@ def film_shape(clips, decoder=None) -> dict:if tot <= 0:continueshapes.append(10 * np.log10(psd / tot + 1e-20))+ levels.append(psd_lufs(psd))quiet += secsused += 1if not shapes:- return {"db": None, "quiet_s": 0.0, "clips_used": 0}+ return {"db": None, "quiet_s": 0.0, "clips_used": 0, "quiet_lufs": None}return {"db": np.median(np.stack(shapes), axis=0), "quiet_s": round(quiet, 2),- "clips_used": used}+ "clips_used": used, "quiet_lufs": round(float(np.median(levels)), 2)}# ---------------------------------------------------------------------------@@ -446,6 +497,7 @@ def build_loop(variant: str = DEFAULT_VARIANT, seed: int = 1, clips=None,freqs = np.fft.rfftfreq(n, 1.0 / SR)used, fallback, quiet, nclips = variant, "", 0.0, 0decoder_error = ""+ film_lufs = Noneif variant == "film":shape = film_shape(clips, decoder)decoder_error = shape.get("error") or ""@@ -462,6 +514,7 @@ def build_loop(variant: str = DEFAULT_VARIANT, seed: int = 1, clips=None,# Nothing below 20 Hz: a bed that moves the woofer is not room tone.db += -10 * np.log10(1 + (20.0 / np.maximum(freqs, 1.0)) ** 4)loop = _synth(db, rng, {"move": 1.0})+ film_lufs = shape.get("quiet_lufs")if used != "film":p = PRESETS.get(used) or PRESETS[FALLBACK_VARIANT]used = p["id"]@@ -476,7 +529,7 @@ def build_loop(variant: str = DEFAULT_VARIANT, seed: int = 1, clips=None,ref = round(lufs + 20 * math.log10(g), 2)return {"loop": loop, "ref_lufs": ref, "peak": round(peak, 4), "variant": used,"fallback": fallback, "quiet_s": quiet, "clips_used": nclips,- "decoder_error": decoder_error}+ "decoder_error": decoder_error, "film_lufs": film_lufs}def tile(loop: np.ndarray, seconds: float) -> np.ndarray:@@ -541,6 +594,10 @@ def make_bed(dest_dir, *, variant: str = DEFAULT_VARIANT, seed: int = 1,if wav.is_file() and meta.is_file():try:facts = json.loads(meta.read_text(encoding="utf-8"))+ # A bed cached before the room's level was measured cannot say+ # what level it belongs at: make it again (about a second).+ if variant == "film" and not facts.get("fallback") and "film_lufs" not in facts:+ raise ValueError("cached before film_lufs")# A cache hit is still subject to `strict`. The same film can be# bedded by hand first ("From this film" falling back to a preset,# which the manual path allows) and re-cut automatically later —@@ -568,7 +625,8 @@ def make_bed(dest_dir, *, variant: str = DEFAULT_VARIANT, seed: int = 1,"peak": res["peak"], "variant": variant, "used": res["variant"],"label": variant_label(res["variant"]), "seed": seed,"fallback": res["fallback"], "quiet_s": res["quiet_s"],- "clips_used": res["clips_used"]}+ "clips_used": res["clips_used"], "film_lufs": res.get("film_lufs"),+ "suggest_level": film_level(res.get("film_lufs"))}# A bed that fell back because the DECODER could not run is not a fact# about these clips — do not let the cache answer for them next time.if not res.get("decoder_error"):diff --git a/scene_sound.py b/scene_sound.pynew file mode 100644index 0000000..1bee7d3--- /dev/null+++ b/scene_sound.py@@ -0,0 +1,97 @@+"""Post-render scene sound for LTX Speech → Lip-sync.++Reuse the installed distilled LTX joint AV model for an ambience/SFX take.+Its disposable picture is not a video-to-audio constraint: events are matched+to the prompt, not guaranteed to land on a particular frame. The original+voice alone drives A2V; neither this bed nor the final mix goes to its encoder.+"""+from __future__ import annotations++import json+import os+import re+from pathlib import Path+++def is_speech_audio(audio: str) -> bool:+ try:+ meta = json.loads(Path(str(audio) + ".json").read_text())+ return isinstance(meta, dict) and meta.get("engine") == "speech"+ except (OSError, ValueError):+ return False+++def enabled(params: dict, audio: str, version: str) -> bool:+ if version != "ltx25" or params.get("engine", "ltx") != "ltx":+ return False+ choice = str(params.get("a2v_scene_sound", "auto")).strip().lower()+ if choice in ("0", "off", "false", "no"):+ return False+ return choice in ("1", "on", "true", "yes") or is_speech_audio(audio)+++def sound_prompt(scene: str, override: str = "") -> str:+ # Quoted dialogue must not become a second performance in the bed.+ context = re.sub(r'"[^"\n]*"|“[^”\n]*”', "", override or scene)+ context = re.sub(r"\b(?:speaks?|says?|sings?|delivers?)\b[^.!?]*[.!?]?", "", context,+ flags=re.I)+ context = " ".join(s for s in re.split(r"(?<=[.!?])\s+", context)+ if not re.search(r"lip.sync|consonants|mouth|lips|supplied voice", s, re.I))+ context = " ".join(context.split())[:1800]+ return (+ "An establishing view of the environment, with the camera looking away from people. "+ "Environmental field recording: layered natural ambience and physical sound effects "+ "from the surroundings. " + context + " "+ "Soundtrack: only the environment, wind, surfaces and objects appropriate to this place. "+ "No human voices, no dialogue, no singing, no narration, no music."+ )+++def generate_bed(*, helper, run, ffmpeg, model_dir, output: Path, prompt: str,+ frames: int, fps: float, seed, job_id: str) -> dict:+ """Serial helper call under the parent's GPU lock; no additional weights."""+ scratch = output.with_name("." + output.stem + ".scene.mp4")+ bed = output.with_name(output.stem + ".scene.wav")+ try:+ result = helper.run({"action": "generate", "id": job_id, "params": {+ "mode": "t2v", "model_dir": str(model_dir), "prompt": prompt,+ "output_path": str(scratch), "width": 512, "height": 320,+ "frames": frames, "frame_rate": fps, "steps": 8, "seed": seed,+ "loras": [], "accel": "off", "upscale": "off",+ }})+ run([str(ffmpeg), "-y", "-i", str(scratch), "-vn", "-ac", "2",+ "-ar", "48000", "-c:a", "pcm_s16le", str(bed)], "Scene sound stem")+ return {"source": "ltx25_joint_audio", "path": str(bed), "prompt": prompt,+ "width": 512, "height": 320, "steps": 8, "seed": result.get("seed_used", seed),+ "elapsed_sec": result.get("elapsed_sec"), "frame_locked": False}+ finally:+ scratch.unlink(missing_ok=True)+++def mix(*, video: Path, voice: str, bed: str, start: float, duration: float,+ ffmpeg, run) -> dict:+ """Copy picture and retain voice timing; sidechain only affects the bed."""+ tmp = video.with_name("." + video.stem + ".sound-mix.mp4")+ graph = (+ f"[1:a]aresample=48000,aformat=channel_layouts=stereo,apad,atrim=0:{duration},"+ "asetpts=PTS-STARTPTS,asplit=2[voice][key];"+ f"[2:a]aresample=48000,aformat=channel_layouts=stereo,apad,atrim=0:{duration},"+ "asetpts=PTS-STARTPTS,loudnorm=I=-25:TP=-3:LRA=11,aresample=48000,"+ f"afade=t=in:d=0.12,afade=t=out:st={max(0, duration - .25)}:d=0.25[bed];"+ "[bed][key]sidechaincompress=threshold=0.02:ratio=5:attack=12:release=350:"+ "knee=4:makeup=1[ducked];"+ "[voice][ducked]amix=inputs=2:normalize=0:duration=first,"+ "alimiter=limit=0.891:level=false:latency=true[mix]"+ )+ try:+ run([str(ffmpeg), "-y", "-i", str(video), "-ss", str(max(0.0, start)),+ "-i", str(voice), "-i", str(bed), "-filter_complex", graph,+ "-map", "0:v:0", "-map", "[mix]", "-c:v", "copy", "-c:a", "aac",+ "-b:a", "256k", "-ar", "48000", "-t", str(duration),+ "-movflags", "+faststart", str(tmp)], "Scene sound mix")+ os.replace(tmp, video)+ finally:+ tmp.unlink(missing_ok=True)+ return {"voice": voice, "voice_start_sec": start, "duration_sec": duration,+ "bed_lufs": -25, "duck_ratio": 5, "duck_threshold": .02,+ "attack_ms": 12, "release_ms": 350, "video_stream_copied": True}diff --git a/scripts/assert_registry.py b/scripts/assert_registry.pyindex 6c670e8..2707430 100644--- a/scripts/assert_registry.py+++ b/scripts/assert_registry.py@@ -180,8 +180,6 @@ def code_only():return ""if not d.exists():return f"code-only tree: no model folder at {d}"- if d.is_symlink():- return ""try:if any(f.is_file() and f.name != ".DS_Store" for f in d.rglob("*")):return ""diff --git a/scripts/check_ltx_pin.js b/scripts/check_ltx_pin.jsindex 30a8e15..0f736c2 100644--- a/scripts/check_ltx_pin.js+++ b/scripts/check_ltx_pin.js@@ -196,11 +196,12 @@ if (/git pull --ff-only \s*\$/.test(updCode)) {// success path); update.js dispatches `bash scripts/pinokio/update_fetch.sh`.// So look for the guard where it now is, falling back to update.js for an// older tree being mutation-tested through the optional argv[2] path.+const journalUpdater = /update_transaction\.sh/.test(updCode)const fetchScript = path.join(root, "scripts/pinokio/update_fetch.sh")const fetchCode = /update_fetch\.sh/.test(updCode) && fs.existsSync(fetchScript)? fs.readFileSync(fetchScript, "utf8"): updCode-if (!/git fetch/.test(fetchCode) || !/git fetch[^\n]*\|\|[\s\S]*?exit 1/.test(fetchCode)) {+if (!journalUpdater && (!/git fetch/.test(fetchCode) || !/git fetch[^\n]*\|\|[\s\S]*?exit 1/.test(fetchCode))) {fail("the update does not make a failed `git fetch` fatal. Without it a network or auth failure becomes: failed fetch -> failed pull -> 'successful' reset onto the stale tracking ref -> post_update against old code -> Update reports success.")} else {ok("a failed fetch aborts the update")@@ -402,7 +403,14 @@ try {ok("SKIPPED the updater behaviour probes — git is not available here")}-if (probesRan) {+if (probesRan && journalUpdater) {+ const result = spawnSync(process.env.PYTHON || "python3",+ ["-m", "unittest", "-q", "test_update_transaction"],+ { cwd: root, env: process.env, encoding: "utf8", timeout: 120000 })+ if (result.status !== 0) fail(`durable updater fixtures failed: ${result.stdout} ${result.stderr}`)+ else ok("durable updater: interrupted source/repair/restart, edits and retries preserved")+}+if (probesRan && !journalUpdater) {const mixed = probe("mixed")if (mixed.reset || mixed.protectedValue !== "MINE") {fail(`update.js RESET on a diverged clone whose untracked file is tracked upstream — the file is destroyed. Divergence and obstruction are independent; the destructive step must clear BOTH. (reset=${mixed.reset}, value=${JSON.stringify(mixed.protectedValue)})`)diff --git a/scripts/check_post_update.js b/scripts/check_post_update.jsindex b72c6ec..269f3df 100644--- a/scripts/check_post_update.js+++ b/scripts/check_post_update.js@@ -63,7 +63,6 @@ const optional = [["litellm", /litellm>=/],["smolagents", /smolagents>=/],["the mosaic upscaler fetch", /spatial_upscaler_x2_v1_1/],- ["the LTX-2.5 weight fetch", /fetch_pack_release\.py/],["the H3 compact-engine build", /h3_build_q8\.sh/],["the model trim", /^rm -f /],]@@ -263,13 +262,9 @@ for (const [rel, pkg] of pinSites) {}if (!seenPins.size) failures.push("no mlx/mflux pin found in any install path — the coupling gate is not looking at anything.")-// --- and the optional ones must NOT be fatal ---------------------------------// An Update that a network hiccup can brick is worse than one that warns.-for (const [label, re] of [["the IC-LoRA fetches", /IC-LoRA-Colorizer/], ["the LTX-2.5 weight fetch", /fetch_pack_release\.py/]]) {- const hit = code.find((l) => re.test(l.t))- const guarded = hit && (/\|\|/.test(hit.t) || /\|\|/.test((code[code.indexOf(hit) + 1] || {}).t || ""))- if (!guarded) failures.push(`${label} (line ${hit && hit.n}) is not guarded with \`|| echo WARN\` — an Update must not be brickable by a network hiccup.`)- else console.log(` ok ${label} is best-effort`)+// Updates must never opt a model-free install into video or adapter weights.+for (const re of [/IC-LoRA-Colorizer/, /fetch_pack_release\.py/, /DeepBeepMeep\/LTX-2/, /a2v_stems_deps\.sh/]) {+ if (code.some(l => re.test(l.t))) failures.push("Update must leave model downloads to explicit feature requests.")}// --- 4. EVERY INSTALL INTO THE ENGINE VENV CARRIES THE KNOWN-GOOD SET -------diff --git a/scripts/design_preview/seed.py b/scripts/design_preview/seed.pynew file mode 100644index 0000000..a35208e--- /dev/null+++ b/scripts/design_preview/seed.py@@ -0,0 +1,313 @@+#!/usr/bin/env python3+"""Seed a throwaway studio for design previews: clips, stills, songs, a board.++The redesign is judged on screenshots of the REAL panel, and an empty panel+shows nothing but empty states. This writes a work directory the panel can be+pointed at (LTX_STATE_DIR / LTX_OUTPUT_DIR / LTX_UPLOADS_DIR / LTX_MODELS_DIR)+holding:++ outputs/ eight short clips with sound + sidecars, two songs (wav)+ uploads/ six library stills with image sidecars+ models/ every required_files.json row as a SPARSE placeholder file, so+ the panel reads "installed" without a byte of real weights+ state/ one storyboard + edit.json whose clips are the seeded mp4s++The pictures are drawn here (numpy + Pillow): layered ridges, skies, water and+light, so thumbnails read like film frames instead of test cards. Nothing is+downloaded and no GPU is touched. Re-running replaces the directory.++ python3 scripts/design_preview/seed.py /tmp/phos-preview+"""+from __future__ import annotations++import json+import math+import os+import shutil+import subprocess+import sys+import time+from pathlib import Path++import numpy as np+from PIL import Image, ImageDraw, ImageFilter++ROOT = Path(__file__).resolve().parents[2]+W, H = 1280, 720++SCENES = [+ # id, title, prompt, palette (sky top, sky bottom, ridge near, ridge far, light)+ ("fjord", "Lantern fjord", "A lone fisherman in a yellow coat drifts across a still fjord at dusk, hundreds of paper lanterns rising around his boat.",+ ((12, 22, 54), (236, 150, 120), (10, 22, 38), (44, 70, 104), (255, 200, 120))),+ ("diner", "Order up", "Live-action, a 1950s all-night diner at three in the morning, neon reflections on rain-streaked glass, steam rising from the griddle.",+ ((6, 4, 24), (64, 18, 74), (14, 8, 30), (34, 20, 64), (255, 60, 170))),+ ("desert", "Heat on the highway", "A vintage car crosses an empty desert highway at golden hour, heat haze shimmering off the asphalt, slow tracking shot.",+ ((70, 120, 190), (250, 196, 120), (120, 62, 32), (190, 112, 70), (255, 236, 170))),+ ("aurora", "North light", "An aurora unfolds over a frozen lake, green and violet curtains reflected in the ice, a tiny cabin glowing on the shore.",+ ((2, 8, 26), (20, 60, 80), (6, 12, 22), (18, 32, 52), (120, 255, 190))),+ ("storm", "The keeper", "A lighthouse on a black cliff during a storm, its beam sweeping through heavy rain, waves exploding against the rocks.",+ ((24, 30, 44), (70, 84, 104), (8, 10, 16), (30, 38, 52), (240, 240, 210))),+ ("forest", "First light", "Morning mist drifts through a pine forest clearing, sunbeams cutting between the trunks, a deer lifts its head.",+ ((120, 150, 150), (230, 220, 180), (16, 34, 26), (48, 78, 62), (255, 244, 200))),+ ("city", "Blue hour", "Rooftops of an old city at blue hour, lights coming on in the windows one by one, a slow aerial push across the skyline.",+ ((12, 26, 70), (120, 110, 170), (8, 12, 26), (26, 34, 70), (255, 214, 140))),+ ("canyon", "Red canyon", "A lone rider on horseback at the edge of a vast red canyon, dust in the air, wide establishing shot at sunset.",+ ((90, 60, 90), (250, 140, 80), (70, 22, 14), (150, 60, 36), (255, 220, 150))),+]+++def _ridge(rng: np.random.Generator, n: int, base: float, amp: float, octaves: int = 5) -> np.ndarray:+ x = np.linspace(0, 1, n)+ y = np.full(n, base)+ for o in range(octaves):+ f = 2 ** o * rng.uniform(1.5, 3.0)+ y += amp / (2.3 ** o) * np.sin(2 * math.pi * (f * x + rng.uniform(0, 1)))+ return y+++def _lerp(a, b, t):+ return tuple(int(a[i] + (b[i] - a[i]) * t) for i in range(3))+++def draw_scene(sid: str, pal, seed: int) -> Image.Image:+ rng = np.random.default_rng(seed)+ top, bottom, near, far, light = pal+ # Sky: vertical gradient with a soft glow where the light sits.+ t = np.linspace(0, 1, H)[:, None, None]+ sky = (np.array(top)[None, None, :] * (1 - t) + np.array(bottom)[None, None, :] * t)+ sky = np.repeat(sky, W, axis=1).astype(np.float32)+ lx, ly = rng.uniform(0.3, 0.7) * W, rng.uniform(0.38, 0.52) * H+ yy, xx = np.mgrid[0:H, 0:W]+ d = np.sqrt((xx - lx) ** 2 + ((yy - ly) * 1.4) ** 2)+ glow = np.exp(-(d / (W * 0.22)) ** 2)[..., None]+ sky = sky * (1 - 0.65 * glow) + np.array(light)[None, None, :] * 0.65 * glow+ img = Image.fromarray(np.clip(sky, 0, 255).astype(np.uint8))+ dr = ImageDraw.Draw(img, "RGBA")+ if sid in ("desert", "canyon", "fjord", "forest", "city"):+ r = 34 if sid != "forest" else 60+ dr.ellipse([lx - r, ly - r, lx + r, ly + r], fill=light + (230,))+ if sid == "aurora":+ for k in range(5):+ cx = rng.uniform(0.1, 0.9) * W+ col = (90 + 40 * k % 160, 255 - 30 * k, 190 + 10 * k)+ for j in range(60):+ x0 = cx + 380 * math.sin(j / 9 + k)+ dr.line([(x0, 60 + 3 * j), (x0 + 40, 300 + 3 * j)], fill=col + (10,), width=26)+ for _ in range(240):+ sx, sy = rng.uniform(0, W), rng.uniform(0, H * 0.5)+ dr.point((sx, sy), fill=(255, 255, 255, int(rng.uniform(80, 220))))+ # Far and near ridges.+ horizon = 0.62 if sid not in ("city",) else 0.7+ for layer, (col, base, amp) in enumerate([(far, horizon - 0.08, 0.06), (near, horizon + 0.02, 0.09)]):+ ys = _ridge(rng, W, base * H, amp * H, 6 if sid != "city" else 1)+ if sid == "city":+ ys = np.zeros(W)+ x = 0+ while x < W:+ bw = int(rng.uniform(30, 90))+ ys[x:x + bw] = (base - rng.uniform(0.02, 0.22 if layer else 0.15)) * H+ x += bw+ poly = [(0, H)] + [(i, float(ys[i])) for i in range(0, W, 4)] + [(W, H)]+ dr.polygon(poly, fill=col + (255,))+ if sid == "city" and layer == 1:+ for _ in range(420):+ wx = rng.uniform(0, W)+ top_y = ys[int(wx)]+ wy = rng.uniform(top_y + 6, H - 10)+ if rng.uniform() < 0.55:+ dr.rectangle([wx, wy, wx + 3, wy + 4], fill=light + (int(rng.uniform(120, 255)),))+ # Water for the lake / fjord scenes: mirror of the sky band with ripples.+ if sid in ("fjord", "aurora", "storm"):+ wy = int(H * 0.74)+ band = np.asarray(img).copy()+ refl = band[wy - (H - wy):wy][::-1].astype(np.float32) * 0.55+ ripple = (np.sin(np.arange(H - wy) * 0.9)[:, None, None] * 6)+ band[wy:] = np.clip(refl + ripple, 0, 255).astype(np.uint8)+ img = Image.fromarray(band)+ dr = ImageDraw.Draw(img, "RGBA")+ if sid == "fjord":+ for _ in range(140):+ x, y = rng.uniform(0, W), rng.uniform(H * 0.15, H * 0.95)+ r = rng.uniform(1.5, 4.5) * (y / H + 0.3)+ dr.ellipse([x - r, y - r, x + r, y + r], fill=(255, 196, 110, int(rng.uniform(140, 255))))+ bx, by = W * 0.5, H * 0.8+ dr.polygon([(bx - 70, by), (bx + 70, by), (bx + 52, by + 18), (bx - 52, by + 18)], fill=(20, 16, 14, 255))+ dr.rectangle([bx - 6, by - 38, bx + 8, by], fill=(232, 178, 40, 255))+ dr.ellipse([bx - 6, by - 50, bx + 8, by - 36], fill=(40, 30, 24, 255))+ if sid == "diner":+ for k in range(7):+ x0 = rng.uniform(0, W - 200)+ y0 = rng.uniform(H * 0.15, H * 0.55)+ col = [(255, 46, 159), (94, 234, 255), (177, 74, 255)][k % 3]+ dr.rounded_rectangle([x0, y0, x0 + rng.uniform(120, 300), y0 + 12], 6, fill=col + (200,))+ for _ in range(500):+ x, y = rng.uniform(0, W), rng.uniform(0, H)+ dr.line([(x, y), (x - 3, y + 18)], fill=(200, 220, 255, 40), width=1)+ if sid == "storm":+ dr.rectangle([W * 0.7, H * 0.36, W * 0.7 + 18, H * 0.6], fill=(220, 220, 210, 255))+ dr.polygon([(W * 0.7 + 9, H * 0.37), (0, H * 0.18), (0, H * 0.34)], fill=(250, 250, 220, 50))+ for _ in range(900):+ x, y = rng.uniform(0, W), rng.uniform(0, H)+ dr.line([(x, y), (x - 6, y + 22)], fill=(200, 210, 230, 50), width=1)+ if sid == "forest":+ for _ in range(26):+ x = rng.uniform(0, W)+ wdt = rng.uniform(8, 26)+ dr.rectangle([x, H * 0.2, x + wdt, H], fill=(14, 26, 20, 235))+ for k in range(6):+ x = W * 0.45 + k * 30+ dr.polygon([(x, 0), (x + 60, 0), (x - 160, H), (x - 260, H)], fill=(255, 250, 220, 18))+ if sid in ("desert",):+ dr.polygon([(W * 0.5 - 6, H * 0.6), (W * 0.5 + 6, H * 0.6), (W * 0.9, H), (W * 0.1, H)], fill=(44, 40, 44, 255))+ for k in range(10):+ y = H * 0.62 + (k ** 1.8) * 4+ dr.rectangle([W * 0.5 - 1 - k * 0.6, y, W * 0.5 + 1 + k * 0.6, y + 2 + k], fill=(240, 220, 160, 255))+ img = img.filter(ImageFilter.GaussianBlur(0.7))+ # Grain + vignette: the two things that make a still read as a frame.+ arr = np.asarray(img).astype(np.float32)+ arr += rng.normal(0, 5, arr.shape)+ vig = 1 - 0.45 * (((xx - W / 2) / (W / 1.6)) ** 2 + ((yy - H / 2) / (H / 1.4)) ** 2)+ arr *= np.clip(vig, 0.35, 1)[..., None]+ return Image.fromarray(np.clip(arr, 0, 255).astype(np.uint8))+++def make_clip(still: Path, out: Path, seconds: float, w: int, h: int, freq: int) -> None:+ frames = int(seconds * 24)+ vf = (f"scale=2560:-2,zoompan=z='min(1.0+on*0.0011,1.25)':d={frames}:"+ f"x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s={w}x{h}:fps=24,format=yuv420p")+ af = (f"anoisesrc=color=pink:amplitude=0.06:duration={seconds},lowpass=f=900,"+ f"volume=0.6[a0];sine=f={freq}:duration={seconds},volume=0.05[a1];[a0][a1]amix=inputs=2")+ subprocess.run(["ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-loop", "1", "-i", str(still),+ "-filter_complex", af, "-vf", vf, "-t", str(seconds), "-c:v", "libx264", "-preset", "veryfast",+ "-crf", "22", "-c:a", "aac", "-b:a", "96k", "-movflags", "+faststart", "-shortest", str(out)],+ check=True)+++def make_song(out: Path, seconds: float, base: int) -> None:+ expr = (f"0.18*sin(2*PI*{base}*t)*exp(-mod(t,0.5)*5)+0.12*sin(2*PI*{base*1.5}*t)*(0.5+0.5*sin(2*PI*0.25*t))"+ f"+0.08*sin(2*PI*{base*2}*t)*exp(-mod(t+0.25,0.5)*8)")+ subprocess.run(["ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-f", "lavfi",+ "-i", f"aevalsrc='{expr}':s=44100:d={seconds}", "-ac", "2", str(out)], check=True)+++def sparse(path: Path, size: int = 2 << 20) -> None:+ """A structurally valid .safetensors whose one tensor is a sparse hole.++ The panel checks the header at boot (length prefix, JSON, data_offsets+ against the file size), so an empty file reads as a corrupt download and+ the page fills with Repair banners. This passes that check and costs no+ disk: the data region is a truncate() hole."""+ path.parent.mkdir(parents=True, exist_ok=True)+ header = json.dumps({"__metadata__": {"format": "design_preview"},+ "w": {"dtype": "U8", "shape": [size], "data_offsets": [0, size]}}).encode()+ header += b" " * (-len(header) % 8)+ with open(path, "wb") as fh:+ fh.write(len(header).to_bytes(8, "little"))+ fh.write(header)+ fh.truncate(8 + len(header) + size)+++def seed_models(models: Path) -> None:+ req = json.loads((ROOT / "required_files.json").read_text())+ for repo in req["repos"]:+ local = Path(repo["local_dir"])+ rel = local.relative_to("mlx_models") if local.parts[0] == "mlx_models" else local+ for f in repo.get("files", []):+ name = f if isinstance(f, str) else f.get("path") or f.get("name")+ if not name:+ continue+ p = models / rel / name+ if name.endswith(".json"):+ p.parent.mkdir(parents=True, exist_ok=True)+ p.write_text(json.dumps({"_design_preview": True, "pad": "x" * 2048}))+ else:+ sparse(p)+++def seed(work: Path) -> None:+ if work.exists():+ shutil.rmtree(work)+ out, up, state, models = (work / n for n in ("outputs", "uploads", "state", "models"))+ for d in (out, up / "library" / "manual", state, models):+ d.mkdir(parents=True, exist_ok=True)+ stills = work / "stills"+ stills.mkdir()+ now = time.time()+ clips = []+ for i, (sid, title, prompt, pal) in enumerate(SCENES):+ still = stills / f"{sid}.png"+ draw_scene(sid, pal, 1000 + i).save(still)+ mp4 = out / f"{sid}_{title.lower().replace(' ', '_')}.mp4"+ dims = (1280, 720) if i % 3 else (1024, 576)+ seconds = 5.0 if i % 2 == 0 else 4.0+ make_clip(still, mp4, seconds, *dims, freq=180 + 40 * i)+ engine = "h3" if sid in ("diner", "storm") else "ltx"+ side = {+ "params": {"prompt": prompt, "mode": "i2v" if i % 3 == 1 else "t2v", "width": dims[0], "height": dims[1],+ "frames": int(seconds * 24) + 1, "quality": "balanced", "seed": str(41000 + i * 7),+ "engine": engine, "preset_label": title},+ "engine": engine, "elapsed_sec": 140 + 23 * i, "model": "ltx-2.5-mlx-q4" if engine == "ltx" else "hailuo-h3",+ "generated_at": now - 600 * (i + 1),+ }+ (out / (mp4.name + ".json")).write_text(json.dumps(side, indent=2))+ ts = now - 600 * (i + 1)+ os.utime(mp4, (ts, ts))+ clips.append(mp4)+ lib = up / "library" / "manual"+ for i, (sid, title, prompt, pal) in enumerate(SCENES[:6]):+ img = draw_scene(sid, pal, 3000 + i).resize((1024, 576))+ png = lib / f"still_{sid}.png"+ img.save(png)+ (lib / (png.name + ".json")).write_text(json.dumps({+ "schema": "phosphene/library/image@1", "png_path": str(png), "prompt": prompt, "refs": [],+ "engine": "mflux", "family": "flux2", "model": "flux2-klein-4b", "seed": 9000 + i,+ "width": 1024, "height": 576, "aspect": "16:9", "elapsed_sec": 18 + i,+ "generated_at": now - 300 * (i + 1), "source": "panel.queue.image"}, indent=2))+ os.utime(png, (now - 300 * (i + 1) - 30,) * 2)+ for i, (name, base) in enumerate((("forty_frames_to_go", 110), ("neon_mile", 146))):+ wav = out / f"song_{name}.wav"+ make_song(wav, 20.0, base)+ (out / (wav.name + ".json")).write_text(json.dumps({+ "params": {"mode": "music", "prompt": "synthwave, warm analog bass, female vocal, 96 bpm",+ "preset_label": name.replace("_", " ").title()},+ "engine": "music", "elapsed_sec": 200 + 40 * i, "generated_at": now - 200 * (i + 1)}, indent=2))+ os.utime(wav, (now - 200 * (i + 1) - 5,) * 2)+ seed_models(models)+ # Two installed LoRAs, so the picker shows rows rather than its empty+ # state; a sidecar each, in the CivitAI shape the panel reads.+ loras = models / "loras"+ for i, (slug, name, trig) in enumerate((("anamorphic_night", "Anamorphic Night", "anamorphic_style"),+ ("super8_memories", "Super 8 Memories", "super8_style"))):+ sparse(loras / f"{slug}.safetensors")+ (loras / f"{slug}.json").write_text(json.dumps({+ "name": name, "trigger_words": [trig], "recommended_strength": 0.8 + 0.1 * i,+ "base_model": "LTXV 2.3", "kind": "style", "civitai_id": 9100 + i,+ "description": "A look LoRA for cinematic night exteriors."}, indent=2))+ # One storyboard with an edit whose clips are real seeded files.+ bid = "sb_design_preview"+ d = state / "storyboards" / bid+ d.mkdir(parents=True)+ shots = []+ for n, mp4 in enumerate(clips[:5]):+ shots.append({"n": n + 1, "title": SCENES[n][1], "mode": "text", "engine": "ltx",+ "prompt": SCENES[n][2], "duration_s": 5.0, "seed": 101 + n, "refs": [], "status": "planned"})+ (d / "storyboard.json").write_text(json.dumps({+ "schema": 1, "id": bid, "title": "Three places", "created_at": int(now - 3600), "cast": [],+ "engine_mode": "ltx", "policy": {}, "brief": "A quiet film about three places at the edge of the day.",+ "shots": shots}, indent=2))+ film = 0.0+ eclips = []+ for n, mp4 in enumerate(clips[:5]):+ dur = 4.0+ eclips.append({"id": f"kprev{n}", "path": str(mp4), "proxy": None, "kind": "video", "start": 0.0, "end": dur,+ "film_start": film, "film_end": film + dur, "source": "auto", "locked": False})+ film += dur+ (d / "edit.json").write_text(json.dumps({+ "version": 2, "board": bid, "revision": 1,+ "audio": {"path": str(out / "song_forty_frames_to_go.wav"), "duration": 20.0, "offset": 0.0, "mode": "under"},+ "overlays": [], "beats": None, "clips": eclips}, indent=2))+ print(f"seeded {work}: {len(clips)} clips, 6 stills, 2 songs, models + 1 board")+++if __name__ == "__main__":+ seed(Path(sys.argv[1] if len(sys.argv) > 1 else "/tmp/phos-preview").resolve())diff --git a/scripts/design_preview/serve.py b/scripts/design_preview/serve.pynew file mode 100644index 0000000..a48f0a0--- /dev/null+++ b/scripts/design_preview/serve.py@@ -0,0 +1,72 @@+#!/usr/bin/env python3+"""Boot the real panel against a seeded preview directory, as a 64 GB Mac.++ python3 scripts/design_preview/seed.py /tmp/phos-preview+ python3 scripts/design_preview/serve.py /tmp/phos-preview --port 8240++The panel itself runs unmodified. Two things are faked so a Linux box (or a+small Mac) draws the screens an M4 Max sees:++ * hostinfo reports 64 GiB / "Apple M4 Max", so tier-gated controls (Q8,+ Character, Keyframes, Extend, H3) render as available instead of locked;+ * LTX_HELPER_PYTHON points at this interpreter, which is not a venv, so the+ engine-environment check stands down ("not ours to judge") instead of+ covering the page with its repair banner.++Nothing renders: there is no engine. Use shoot.mjs to stub /status for the+generating states. Never bind :8199 (the owner's panel) or :8198.+"""+from __future__ import annotations++import argparse+import os+import runpy+import sys+from pathlib import Path++ROOT = Path(__file__).resolve().parents[2]+++def main() -> None:+ ap = argparse.ArgumentParser()+ ap.add_argument("work")+ ap.add_argument("--port", type=int, default=8240)+ ap.add_argument("--ram-gb", type=float, default=64.0)+ args = ap.parse_args()+ if args.port in (8198, 8199):+ sys.exit("refusing to bind a real panel port")+ work = Path(args.work).resolve()+ os.environ.update({+ "LTX_PORT": str(args.port),+ "LTX_STATE_DIR": str(work / "state"),+ "LTX_OUTPUT_DIR": str(work / "outputs"),+ "LTX_UPLOADS_DIR": str(work / "uploads"),+ "LTX_MODELS_DIR": str(work / "models"),+ "LTX_HELPER_PYTHON": sys.executable,+ "LTX_NO_BROWSER": "1",+ "LTX_DEFERRED_DOWNLOADS": "off",+ "PHOSPHENE_SEPARATOR_AUTOINSTALL": "0",+ "PHOSPHENE_NO_TELEMETRY": "1",+ "PHOSPHENE_ANALYTICS_DISABLED": "1",+ "PHOSPHENE_DISABLE_VERSION_CHECK": "1",+ })+ sys.path.insert(0, str(ROOT))+ os.chdir(ROOT)+ import hostinfo+ ram = int(args.ram_gb * 1024 ** 3)+ hostinfo.total_ram_bytes = lambda: ram+ hostinfo.chip_brand = lambda: "Apple M4 Max"+ _mu = hostinfo.memory_usage++ def memory_usage():+ info = dict(_mu() or {})+ info.update(total_gb=args.ram_gb, used_gb=round(args.ram_gb * 0.31, 1), pressure_pct=22, swap_gb=0.0)+ return info+ hostinfo.memory_usage = memory_usage+ hostinfo.available_bytes = lambda: int(ram * 0.62)+ sys.argv = [str(ROOT / "mlx_ltx_panel.py")]+ runpy.run_path(str(ROOT / "mlx_ltx_panel.py"), run_name="__main__")+++if __name__ == "__main__":+ main()diff --git a/scripts/design_preview/shoot.cjs b/scripts/design_preview/shoot.cjsnew file mode 100644index 0000000..0c5c33d--- /dev/null+++ b/scripts/design_preview/shoot.cjs@@ -0,0 +1,166 @@+#!/usr/bin/env node+// Screenshot every studio surface, dark and light, against a panel booted by+// serve.py. POSTs are blocked (nothing can queue, save or delete), and /status+// is replayed from one real snapshot so a "generating" stage can be staged+// without an engine.+//+// NODE_PATH=$(npm root -g) node scripts/design_preview/shoot.cjs \+// --url http://127.0.0.1:8240 --out docs/redesign/shots/after [--only stage,create]+//+// Each surface is one entry in SURFACES: a name and a function that drives the+// page into that state. Add a surface there; nothing else needs to change.+const { chromium } = require('playwright');+const fs = require('fs');+const path = require('path');++const args = Object.fromEntries(process.argv.slice(2).reduce((a, v, i, all) => {+ if (v.startsWith('--')) a.push([v.slice(2), all[i + 1] && !all[i + 1].startsWith('--') ? all[i + 1] : true]);+ return a;+}, []));+const BASE = (args.url || 'http://127.0.0.1:8240').replace(/\/$/, '');+const OUT = args.out || 'shots';+const ONLY = args.only ? String(args.only).split(',') : null;+const THEMES = args.themes ? String(args.themes).split(',') : ['dark', 'light'];+const VW = Number(args.width || 1440), VH = Number(args.height || 900);+fs.mkdirSync(OUT, { recursive: true });++const PROMPT = 'A lone fisherman in a yellow coat drifts across a still fjord at dusk, hundreds of paper lanterns rising around his boat.';++function job(id, pct, phase, extra = {}) {+ return {+ id, started_ts: (globalThis.__now || Date.now() / 1000) - 74,+ params: { mode: 't2v', engine: 'ltx', prompt: PROMPT, width: 1024, height: 576, frames: 121,+ quality: 'balanced', preset_label: 'Lantern fjord', seed: '41007' },+ progress: { pct, phase_label: phase, elapsed_sec: 74, eta_sec: 96, preview: {}, step: 3, steps: 8 },+ ...extra,+ };+}++async function settle(page, ms = 700) { await page.waitForTimeout(ms); }+async function wf(page, name) {+ await page.evaluate(n => workflowSwitch(n), name);+ await settle(page, 900);+}++const SURFACES = [+ ['create', async (page) => { await wf(page, 'manual'); }],+ ['create-selected', async (page) => {+ await wf(page, 'manual');+ const card = page.locator('.car-card').first();+ if (await card.count()) { await card.click(); await settle(page, 1200); }+ }],+ ['create-image-mode', async (page) => {+ await wf(page, 'manual');+ await page.locator('#modeGroup [data-mode="i2v"]').click();+ await settle(page);+ }],+ ['stage-generating', async (page, st) => {+ await wf(page, 'manual');+ st.running = true; st.current = job('preview-1', 34, 'Denoising video + audio · step 3 of 8');+ st.queue = [];+ await page.evaluate(() => poll()); await settle(page, 2500);+ }],+ ['stage-live-preview', async (page, st) => {+ await wf(page, 'manual');+ st.running = true; st.current = job('preview-2', 71, 'Denoising video + audio · step 6 of 8');+ st.current.progress.preview = { url: BASE + st.__still, meaningful: true };+ await page.evaluate(() => poll()); await settle(page, 2600);+ }],+ ['queue', async (page, st) => {+ await wf(page, 'manual');+ st.running = true; st.current = job('preview-3', 52, 'Denoising video + audio · step 4 of 8');+ st.queue = [1, 2, 3].map(i => ({ id: 'q' + i, status: 'queued', params: { ...job('x', 0, '').params,+ prompt: ['Blue hour over the old city, lights coming on one by one.', 'A lighthouse on a black cliff in a storm.', 'Morning mist in a pine forest clearing.'][i - 1],+ preset_label: ['Blue hour', 'The keeper', 'First light'][i - 1] } }));+ await page.evaluate(() => poll()); await settle(page, 600);+ await page.locator('.bottom-pane .tabs button[data-tab="queue"]').click(); await settle(page, 900);+ }],+ ['oneshot', async (page) => { await wf(page, 'oneshot'); }],+ ['images', async (page) => { await wf(page, 'studio'); }],+ ['storyboard', async (page) => { await wf(page, 'storyboard'); await settle(page, 800); }],+ ['editor', async (page) => {+ await page.evaluate(() => { try { localStorage.setItem('phos_ed_doc', 'sb_design_preview'); } catch (e) {} });+ await wf(page, 'editor');+ await page.evaluate(() => { if (typeof edOpenBoard === 'function') edOpenBoard('sb_design_preview'); });+ await settle(page, 2500);+ }],+ ['audio', async (page) => { await wf(page, 'audio'); }],+ ['speech', async (page) => { await wf(page, 'audio'); await page.evaluate(() => audioModeSet('speech')); await settle(page); }],+ ['pro', async (page) => { await wf(page, 'manual'); await page.evaluate(() => openProModal()); await settle(page); }],+ ['train', async (page) => { await wf(page, 'train'); }],+ ['loras', async (page) => {+ await wf(page, 'manual');+ await page.evaluate(() => { const d = document.getElementById('lorasDetails'); if (d) { d.open = true; d.scrollIntoView({ block: 'start' }); } });+ await settle(page, 900);+ }],+ ['civitai', async (page) => {+ await wf(page, 'manual');+ await page.evaluate(() => openCivitaiModal('video'));+ await settle(page, 1800);+ }],+ ['lightbox', async (page) => {+ await wf(page, 'manual');+ const card = page.locator('.car-card').first();+ if (await card.count()) { await card.click(); await settle(page, 900); }+ await page.evaluate(() => openExpandLightbox());+ await settle(page, 1500);+ }],+ ['settings', async (page) => { await wf(page, 'manual'); await page.evaluate(() => openSettingsModal()); await settle(page, 1200); }],+ ['models', async (page) => { await wf(page, 'manual'); await page.evaluate(() => openModelsModal()); await settle(page, 1200); }],+];++(async () => {+ const base = await (await fetch(BASE + '/status')).json();+ globalThis.__now = base.server_now;+ const still = (base.outputs || []).find(o => /\.png$/i.test(o.path || ''));+ const browser = await chromium.launch(args.browser ? { channel: args.browser } : {});+ const index = [];+ for (const theme of THEMES) {+ for (const [name, drive] of SURFACES) {+ if (ONLY && !ONLY.includes(name)) continue;+ const context = await browser.newContext({ viewport: { width: VW, height: VH }, deviceScaleFactor: 1,+ reducedMotion: args.reduced ? 'reduce' : 'no-preference' });+ await context.addInitScript(t => { try { localStorage.setItem('phos_appearance', t); } catch (e) {} }, theme);+ await context.addCookies([{ name: 'phos_theme', value: theme, url: BASE }]);+ const st = JSON.parse(JSON.stringify(base));+ st.__still = still ? still.url : '';+ const errors = [];+ await context.route('**/*', route => {+ const req = route.request();+ if (new URL(req.url()).origin !== new URL(BASE).origin) return route.abort();+ if (req.method() === 'POST') return route.fulfill({ status: 403, json: { error: 'design preview: POST blocked' } });+ if (new URL(req.url()).pathname === '/civitai/search') {+ const imgs = (base.outputs || []).filter(o => /\.png$/i.test(o.path || ''));+ const names = ['Anamorphic Night', 'Super 8 Memories', 'Kodachrome 64', 'Neon Noir', 'Soft Morning Haze', 'Dune Light', 'Ink & Wash', 'Analog VHS'];+ const items = names.map((n, i) => ({ id: 9100 + i, name: n, creator: ['lumen', 'frameworks', 'kodaklad', 'noirhaus'][i % 4],+ downloads: 1200 + i * 731, size_kb: 120000 + i * 9000, trigger_words: [n.toLowerCase().split(' ')[0] + '_style'],+ base_model: 'LTX-2.3', preview_url: imgs.length ? BASE + imgs[i % imgs.length].url : '', preview_type: 'image',+ civitai_url: 'https://civitai.com/models/' + (9100 + i), source: 'civitai', nsfw: false }));+ return route.fulfill({ json: { items, has_more: true, next_cursor: 'x' } });+ }+ if (new URL(req.url()).pathname === '/status') {+ const body = JSON.parse(JSON.stringify(st)); delete body.__still;+ return route.fulfill({ json: body });+ }+ return route.fallback();+ });+ const page = await context.newPage();+ page.on('pageerror', e => errors.push(e.message));+ await page.goto(BASE + '/', { waitUntil: 'domcontentloaded' });+ await page.waitForFunction(() => typeof workflowSwitch === 'function' && typeof poll === 'function', null, { timeout: 30000 });+ // The TEST PANEL badge is the panel's own guard against mistaking a+ // throwaway instance for an install; a user never sees it, so the+ // shots do not either.+ await page.addStyleTag({ content: '.profile-badge.test-badge{display:none!important}' });+ await page.waitForTimeout(1500);+ try { await drive(page, st); } catch (e) { errors.push('drive: ' + e.message); }+ const file = `${name}-${theme}.png`;+ await page.screenshot({ path: path.join(OUT, file) });+ index.push({ name, theme, file, errors });+ console.log(file, errors.length ? 'ERR ' + errors.join(' | ').slice(0, 300) : 'ok');+ await context.close();+ }+ }+ await browser.close();+ fs.writeFileSync(path.join(OUT, 'index.json'), JSON.stringify(index, null, 2));+})();diff --git a/scripts/fetch_pack_release.py b/scripts/fetch_pack_release.pyindex e6703c4..b66cf51 100644--- a/scripts/fetch_pack_release.py+++ b/scripts/fetch_pack_release.py@@ -123,7 +123,6 @@ def lock_dest(dest_dir: Path) -> int:except ImportError: # not a POSIX system: nothing to lock withreturn -1lock = pack_lock_path(dest_dir)- lock.parent.mkdir(parents=True, exist_ok=True)fd = os.open(str(lock), os.O_RDWR | os.O_CREAT, 0o644)try:fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)@@ -291,6 +290,48 @@ def sha256_file(path: Path) -> str:# --------------------------------------------------------------------------- ## Assembly# --------------------------------------------------------------------------- #+def _pack_path(root: Path, name: str) -> Path:+ """Confine a publisher's flat filename to the chosen pack directory.++ The destination itself may be a user-selected symlink (Pinokio's shared+ models). Children must not be symlinks, including dangling ones: partials+ and progress files are opened for writing, and shards may be resumed.+ This checks existing paths; it is not a sandbox against another local+ process replacing paths concurrently.+ """+ if (not isinstance(name, str) or not name or name in (".", "..")+ or any(c in name for c in ("/", "\\", ":"))+ or any(ord(c) < 32 or ord(c) == 127 for c in name)):+ raise ValueError(f"unsafe pack filename: {name!r}")+ path = root / name+ if path.is_symlink() or not path.resolve().is_relative_to(root.resolve()):+ raise ValueError(f"unsafe pack path: {path}")+ return path+++def _validate_file_paths(name: str, spec: dict, dest_dir: Path) -> None:+ if name == PARTS_DIRNAME:+ raise ValueError(f"reserved pack filename: {name!r}")+ _pack_path(dest_dir, name)+ partial = _pack_path(dest_dir, name + ".partial")+ _pack_path(dest_dir, _progress_path(partial).name)+ parts_dir = _pack_path(dest_dir, PARTS_DIRNAME)+ # A spec may legitimately carry no shards here (e.g. the lock-contract+ # manifests that mock assemble_file): assemble_file is the only reader of+ # spec["shards"], so the preflight must not be stricter about structure+ # than the base. Any shards that DO exist are still confined, which is all+ # the guard needs — a manifest can only escape via a shard it declares.+ for shard in spec.get("shards") or []:+ _pack_path(parts_dir, shard["asset"])+++def _validate_pack_paths(files: dict, dest_dir: Path) -> None:+ # Validate the whole manifest before writing anything, even if an unsafe+ # entry follows valid ones. Extra sidecars are legitimate publisher output.+ for name, spec in files.items():+ _validate_file_paths(name, spec, dest_dir)++def _progress_path(partial: Path) -> Path:return partial.with_suffix(partial.suffix + ".progress")@@ -329,7 +370,8 @@ def assemble_file(name: str, spec: dict, dest_dir: Path, mirror: dict,the difference between +1.9 GB and +11.3 GB on the transformer, on machinesthat are already tight enough that we quantised the model for them."""- target = dest_dir / name+ _validate_file_paths(name, spec, dest_dir)+ target = _pack_path(dest_dir, name)want_sha = spec["sha256"]want_bytes = int(spec["bytes"])@@ -339,9 +381,9 @@ def assemble_file(name: str, spec: dict, dest_dir: Path, mirror: dict,returnlog(f"[fetch] {name} — present but does not match the manifest, refetching")- parts_dir = dest_dir / PARTS_DIRNAME+ parts_dir = _pack_path(dest_dir, PARTS_DIRNAME)parts_dir.mkdir(parents=True, exist_ok=True)- partial = dest_dir / (name + ".partial")+ partial = _pack_path(dest_dir, name + ".partial")shards = spec["shards"]done = _read_progress(partial)if done:@@ -354,7 +396,7 @@ def assemble_file(name: str, spec: dict, dest_dir: Path, mirror: dict,continueasset = shard["asset"]label = f"{name} [{idx + 1}/{len(shards)}]"- shard_path = parts_dir / asset+ shard_path = _pack_path(parts_dir, asset)download_shard(asset_url(mirror, asset), shard_path,int(shard["bytes"]), shard["sha256"],attempts=attempts, timeout=timeout, label=label)@@ -391,6 +433,7 @@ def assemble_file(name: str, spec: dict, dest_dir: Path, mirror: dict,# --------------------------------------------------------------------------- #def check_pack(manifest: dict, dest_dir: Path) -> list[str]:"""Names of declared files that are missing or do not match the manifest."""+ _validate_pack_paths(manifest["files"], dest_dir)bad: list[str] = []for name, spec in manifest["files"].items():path = dest_dir / name@@ -407,6 +450,17 @@ def fetch_pack(repo_key: str, root: Path, dest: Path | None,repo = load_repo_entry(repo_key, root)mirror = mirror_of(repo)dest_dir = dest or (root / repo["local_dir"])+ # Native bootstrap uses Python -I, which omits the script directory from+ # sys.path. Load our sibling by its exact source path in that mode too.+ import importlib.util+ spec = importlib.util.spec_from_file_location(+ "model_path_guard", Path(__file__).with_name("model_path_guard.py"))+ model_path_guard = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(model_path_guard)+ configured = os.environ.get("LTX_MODELS_DIR")+ model_root = Path(configured) if configured else (root / "mlx_models" if dest is None else dest.parent)+ model_path_guard.require(model_root, dest_dir, write=not check_only,+ allow_new=not configured and dest is None)url = asset_url(mirror, mirror["manifest_asset"])log(f"[fetch] {repo_key}: {repo.get('name', repo_key)} → {dest_dir}")@@ -415,6 +469,7 @@ def fetch_pack(repo_key: str, root: Path, dest: Path | None,files = manifest.get("files")if not isinstance(files, dict) or not files:raise SystemExit(f"release manifest for {repo_key} declares no files")+ _validate_pack_paths(files, dest_dir)# The manifest is the mirror's word for what a pack is; required_files.json# is the app's. They must not drift, and a drift found HERE (before 21 GB is@@ -436,7 +491,11 @@ def fetch_pack(repo_key: str, root: Path, dest: Path | None,f"file_sizes for: {', '.join(drift)}")- dest_dir.mkdir(parents=True, exist_ok=True)+ model_path_guard.require(model_root, dest_dir, write=not check_only,+ allow_new=not configured and dest is None)+ if not check_only:+ model_path_guard.prepare_directory(model_root, dest_dir,+ allow_new=not configured and dest is None)if check_only:bad = check_pack(manifest, dest_dir)if bad:@@ -464,6 +523,7 @@ def fetch_pack(repo_key: str, root: Path, dest: Path | None,def _fetch_locked(repo_key: str, files: dict, dest_dir: Path, mirror: dict,*, attempts: int, timeout: int) -> int:+ _validate_pack_paths(files, dest_dir)total_gb = sum(int(s["bytes"]) for s in files.values()) / 1e9log(f"[fetch] {len(files)} file(s), {total_gb:.2f} GB — resumable, sha256-verified")diff --git a/scripts/fleet_timings_build.py b/scripts/fleet_timings_build.pyindex a3bb58a..42b8c99 100644--- a/scripts/fleet_timings_build.py+++ b/scripts/fleet_timings_build.py@@ -124,11 +124,13 @@ def _sql_literal(s: str) -> str:# pinned to 7), so an event without it - every version before 4.19.11, none of# which ran v1.3 - falls back to the old rule: <= 5 points Fast, else Best.# Turbo gets a lane of its own that no price reads, and so does Pika H3 Flex-# (also 7 points) until it has receipts of its own.+# (also 7 points) until it has receipts of its own. H3 Flex Turbo (5.0) is 5+# points, so without its lane it would fall into Fast's range._SPEED_EXPR = ("multiIf(properties.engine != 'h3', '', ""properties.h3_sampler = 'v13', 'v13', ""properties.h3_sampler = 'flex', 'flex', "+ "properties.h3_sampler = 'flex_turbo', 'flex_turbo', ""properties.h3_sampler = 'fast', 'fast', ""properties.h3_sampler = 'turbo', 'turbo', ""properties.h3_sampler = 'best', 'best', "diff --git a/scripts/lipsync_offset.py b/scripts/lipsync_offset.pynew file mode 100644index 0000000..50c852e--- /dev/null+++ b/scripts/lipsync_offset.py@@ -0,0 +1,68 @@+"""Inspect FaceMesh mouth/envelope timing without modifying media.++Usage: python scripts/lipsync_offset.py measurement.npz [measurement.npz ...]+The NPZ contains mouth, band and fps from the FaceMesh diagnostic. Only the+CLI needs numpy. Correlation measures envelope timing, not phoneme accuracy.+Positive lag means the mouth is late; a negative lag suggests delaying picture.+"""+import argparse+import json+import math+++def _correlation(a, b):+ ma, mb = sum(a) / len(a), sum(b) / len(b)+ aa, bb = [x - ma for x in a], [x - mb for x in b]+ denominator = math.sqrt(sum(x * x for x in aa) * sum(x * x for x in bb))+ return sum(x * y for x, y in zip(aa, bb)) / denominator if denominator else None+++def measure(mouth, envelope, fps, max_lag=6, edge=6):+ """Use the v2 diagnostic's three-frame smoothing and fixed frame clock.++ Return full and half-clip lag curves so a single maximum cannot hide+ timing changes within the shot. No result here authorizes a global delay.+ """+ mouth, envelope = list(map(float, mouth)), list(map(float, envelope))+ n = len(mouth)+ if (len(envelope) != n or not math.isfinite(fps) or fps <= 0+ or not isinstance(max_lag, int) or max_lag < 0+ or not isinstance(edge, int) or edge < 0+ or n < 2 * (edge + max_lag + 3)+ or not all(math.isfinite(x) for x in mouth + envelope)):+ raise ValueError("Need equal, finite frame series, positive fps and enough frames")++ def smooth(values):+ padded = [0.0] + values + [0.0]+ return [sum(padded[i:i + 3]) / 3 for i in range(n)]++ m, e = smooth(mouth), smooth(envelope)+ flat = max(mouth) == min(mouth) or max(envelope) == min(envelope)++ def search(lo, hi):+ curve = []+ for lag in range(-max_lag, max_lag + 1):+ indices = range(max(lo, -lag), min(hi, n - lag))+ r = None if flat else _correlation([m[i + lag] for i in indices], [e[i] for i in indices])+ curve.append(dict(lag_frames=lag, lag_ms=1000 * lag / fps, r=r))+ valid = [p for p in curve if p['r'] is not None]+ return dict(zero=curve[max_lag], best=max(valid, key=lambda p: p['r']) if valid else None,+ curve=curve)++ return dict(fps=fps, frames=n, sign="positive = mouth late", band=search(edge, n - edge),+ halves=[search(edge, n // 2), search(n // 2, n - edge)])+++def main():+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument('measurements', nargs='+')+ args = parser.parse_args()+ import numpy as np+ for path in args.measurements:+ with np.load(path, allow_pickle=False) as data:+ result = measure(data['mouth'], data['band'], float(data['fps']))+ print(json.dumps(dict(source=path, **result), allow_nan=False))+++if __name__ == '__main__':+ main()diff --git a/scripts/measure_editor_layout.py b/scripts/measure_editor_layout.pyindex a1c22df..ac4d63d 100644--- a/scripts/measure_editor_layout.py+++ b/scripts/measure_editor_layout.py@@ -492,6 +492,14 @@ def start_chrome(binary: str, profile: Path,"--disable-gpu","--disable-extensions","--disable-background-networking",+ "--disable-component-update",+ "--no-service-autorun",+ # A throwaway browser must not wait for the operator's Keychain.+ "--password-store=basic",+ "--use-mock-keychain",+ "--disable-background-timer-throttling",+ "--disable-backgrounding-occluded-windows",+ "--disable-renderer-backgrounding","--disable-dev-shm-usage","--mute-audio","--window-size=1920,1000",diff --git a/scripts/measure_health_chip.py b/scripts/measure_health_chip.pyindex eab4d4e..54e7609 100644--- a/scripts/measure_health_chip.py+++ b/scripts/measure_health_chip.py@@ -77,7 +77,9 @@ JS_READY = """const f = document.getElementById('hcFace');if (!f) return 'no #hcFace';const t = (f.textContent || '').trim();- return (t && t !== 'checking…') ? 'ok' : 'face still ' + JSON.stringify(t);+ // The initial label is 'memory', which is not a completed status poll.+ const short = f.dataset.short || '';+ return (t.includes('GB') && short.endsWith('%')) ? 'ok' : 'face still ' + JSON.stringify(t);})()"""@@ -111,8 +113,6 @@ JS_MEASURE = r"""header: box(header), cluster: box(cl), chip: cb, hit,faceText: face ? (face.textContent || '').trim() : null,faceShort: face ? (face.dataset.short || '') : null,- memoryWarning: !!(mem && (mem.classList.contains('pill-warn') || mem.classList.contains('pill-danger'))),- chipWarning: !!(chip && (chip.classList.contains('is-warn') || chip.classList.contains('is-danger'))),shown,// What is PAINTED, not what the text says: a face squeezed to 0 px// still has its text (that was the narrow-width bug).@@ -178,14 +178,8 @@ def check(dist: str, width: int, m: dict) -> list[str]:out.append(f"{tag}: the face is ellipsized at {width} px")shown = m.get("shown") or ""if width < NARROW:- # A busy Mac intentionally names the warning at narrow widths. The- # percentage still has to exist in the Memory row; a bare label with- # no actual warning/readout must not make this visibility gate pass.- memory_warning = (shown == "memory" and m.get("memoryWarning")- and m.get("chipWarning") and "GB" in (m.get("memText") or "")- and "%" in (m.get("memText") or ""))- if not shown.endswith("%") and not memory_warning:- out.append(f"{tag}: narrow face should show the percentage or a confirmed memory warning, shows {shown!r}")+ if not shown.endswith("%"):+ out.append(f"{tag}: narrow face should be the percentage, shows {shown!r}")else:if "GB" not in shown or "%" not in shown:out.append(f"{tag}: the face should carry the memory reading, shows {shown!r}")diff --git a/scripts/measure_pro_lamp.py b/scripts/measure_pro_lamp.pynew file mode 100644index 0000000..184fee9--- /dev/null+++ b/scripts/measure_pro_lamp.py@@ -0,0 +1,96 @@+#!/usr/bin/env python3+"""Exercise the real Pro dialog without submitting jobs or opening store links.+Run with the shared GPU locks held: python3 scripts/measure_pro_lamp.py URL OUT+Requires Playwright Chromium and WebKit. OUT receives screenshots and a 5.2 s MP4.+"""+import json+from pathlib import Path+import subprocess+import sys+import time+from urllib.parse import urlparse+from playwright.sync_api import sync_playwright++url, out = sys.argv[1], Path(sys.argv[2])+out.mkdir(parents=True, exist_ok=True)+checks = []++def check(value, label):+ assert value, label+ checks.append(label)++with sync_playwright() as p:+ for engine in ('chromium', 'webkit'):+ browser = getattr(p, engine).launch()+ for reduced in (False, True):+ context = browser.new_context(viewport={'width': 1440, 'height': 1000},+ reduced_motion='reduce' if reduced else 'no-preference')+ context.route('**/*', lambda r: r.continue_() if urlparse(r.request.url).netloc == urlparse(url).netloc else r.abort())+ page = context.new_page()+ page.goto(url, wait_until='domcontentloaded')+ page.wait_for_function('typeof openProModal === "function"')+ page.locator('#proBtn').click()+ check(page.locator('#proModal').is_visible(), engine + ': Pro opens')+ check(page.locator('#proModal button').evaluate('(e)=>e===document.activeElement'), engine + ': close receives focus')+ page.keyboard.press('Shift+Tab')+ check(page.locator('#proModal a').last.evaluate('(e)=>e===document.activeElement'), engine + ': backward focus trap')+ page.keyboard.press('Tab')+ check(page.locator('#proModal button').evaluate('(e)=>e===document.activeElement'), engine + ': forward focus trap')+ text = page.locator('#proModal').inner_text()+ for fact in ('$15', '$120', '$149', '200 buyers', 'Hardship licences', 'free app stays free', 'not on sale yet'):+ check(fact in text, engine + ': ' + fact)+ check(page.locator('#lightsOnTitle').evaluate('(e)=>getComputedStyle(e).textTransform') == 'none', engine + ': title stays in sentence case')+ get_animations = "document.querySelector('.lights-on-header').getAnimations({subtree:true})"+ if reduced:+ check(page.evaluate(get_animations + '.length') == 0, engine + ': reduced motion has no animations')+ check(page.locator('.lamp-bulb').evaluate('(e)=>getComputedStyle(e).opacity') == '1', engine + ': reduced motion starts lit')+ else:+ page.wait_for_timeout(3100)+ check(page.evaluate(get_animations + '.every(a=>a.playState==="finished")'), engine + ': entrance finishes')+ page.evaluate('openProModal()')+ check(page.evaluate(get_animations + '.every(a=>a.playState==="finished")'), engine + ': duplicate open does not replay')+ page.screenshot(path=str(out / f'studio-{engine}-{ "reduced" if reduced else "on"}.png'))+ page.keyboard.press('Escape')+ check(not page.locator('#proModal').is_visible(), engine + ': Escape closes')+ check(page.locator('#proBtn').evaluate('(e)=>e===document.activeElement'), engine + ': focus returns')+ page.locator('#proBtn').click()+ if not reduced:+ check(page.evaluate(get_animations + '.some(a=>a.playState==="running" && a.currentTime<700)'), engine + ': revisit replays')+ page.locator('#proModal button').click()+ page.set_viewport_size({'width': 390, 'height': 844})+ page.evaluate('openProModal()')+ page.wait_for_timeout(3000 if not reduced else 50)+ check(page.locator('.pro-card').evaluate('(e)=>e.scrollWidth<=e.clientWidth+1'), engine + ': narrow dialog has no horizontal overflow')+ page.screenshot(path=str(out / f'studio-{engine}-narrow-{reduced}.png'))+ if reduced:+ page.set_viewport_size({'width': 1440, 'height': 1000})+ page.evaluate("document.documentElement.dataset.theme='light'")+ page.screenshot(path=str(out / f'studio-{engine}-light.png'))+ context.close()+ if engine == 'chromium':+ c = browser.new_context(viewport={'width':1440,'height':1000}, device_scale_factor=1)+ c.route('**/*', lambda r: r.continue_() if urlparse(r.request.url).netloc == urlparse(url).netloc else r.abort())+ page=c.new_page(); page.goto(url,wait_until='domcontentloaded'); page.wait_for_function('typeof openProModal === "function"'); page.evaluate('document.fonts.ready')+ # Capture real elapsed-time browser frames as PNGs. This avoids the+ # lossy WebM recorder adding ringing to the lamp's thin SVG lines.+ frames = out / 'recording'; frames.mkdir(exist_ok=True)+ page.wait_for_timeout(500)+ start = time.monotonic(); page.locator('#proBtn').click()+ captures = []+ while time.monotonic() - start < 5.2:+ stamp = time.monotonic() - start+ frame = frames / f'frame-{len(captures):04d}.png'+ page.screenshot(path=str(frame))+ captures.append((frame.resolve(), stamp))+ page.wait_for_timeout(max(0, int(1000 * (1/24 - (time.monotonic()-start-stamp)))))+ c.close()+ listing = []+ for i, (frame, stamp) in enumerate(captures):+ following = captures[i+1][1] if i+1 < len(captures) else 5.2+ listing += ["file '" + str(frame).replace("'", "'\\''") + "'", f'duration {max(.001,following-stamp):.6f}']+ listing += ["file '" + str(captures[-1][0]).replace("'", "'\\''") + "'"]+ (frames/'frames.txt').write_text('\n'.join(listing)+'\n')+ subprocess.run(['ffmpeg','-v','error','-y','-f','concat','-safe','0','-i',str(frames/'frames.txt'),'-t','5.2','-r','30','-an','-c:v','libx264','-preset','fast','-crf','16','-pix_fmt','yuv420p','-movflags','+faststart',str(out/'lamp.mp4')],check=True)+ browser.close()+(out/'browser-checks.json').write_text(json.dumps(checks,indent=2)+'\n')+print(f'{len(checks)} browser checks passed')diff --git a/scripts/measure_studio_motion.py b/scripts/measure_studio_motion.pynew file mode 100644index 0000000..146bbd2--- /dev/null+++ b/scripts/measure_studio_motion.py@@ -0,0 +1,118 @@+#!/usr/bin/env python3+"""Browser gate for studio motion. All POSTs blocked; no GPU jobs.+Run with Playwright installed: python scripts/measure_studio_motion.py --url URL+"""+import argparse+import copy+import json+from urllib.request import urlopen+from playwright.sync_api import sync_playwright+++def check(url):+ with urlopen(url + '/status', timeout=10) as response:+ base = json.load(response)+ results = []+ with sync_playwright() as pw:+ browser = pw.chromium.launch()+ for reduced in ('no-preference', 'reduce'):+ context = browser.new_context(viewport={'width': 1440, 'height': 900}, reduced_motion=reduced)+ page = context.new_page()+ state = copy.deepcopy(base)+ state.update(running=False, current=None, queue=[], history=[])+ errors = []+ page.on('pageerror', lambda error: errors.append(str(error)))+ context.route('**/*', lambda route: route.fulfill(status=403, json={'error': 'UI test: POST blocked'})+ if route.request.method == 'POST' else route.fallback())+ context.route('**/status', lambda route: route.fulfill(json=state))+ page.goto(url, wait_until='domcontentloaded')+ page.wait_for_function("typeof window.studioProgress === 'function' && typeof poll === 'function'")+ assert page.locator('#studioStageMark').is_hidden()+ assert page.locator('#nowCard .ph-mark').count() == 0+ for outcome in ('done', 'failed', 'stopped'):+ job = {'id': 'motion-' + outcome, 'started_ts': base['server_now'] - 10,+ 'params': {'mode': 't2v', 'engine': 'ltx', 'prompt': 'UI status replay',+ 'width': 1024, 'height': 576, 'frames': 121, 'quality': 'balanced'},+ 'progress': {'pct': 45, 'phase_label': 'Working', 'elapsed_sec': 10, 'preview': {}}}+ state.update(running=True, current=job, history=[])+ page.evaluate('poll()')+ assert page.locator('#studioStageMark').is_visible()+ assert page.locator('[aria-label="Render progress"]').get_attribute('aria-valuenow') == '45'+ # Polling must not reconstruct the mark or restart its motion.+ page.evaluate("window.reviewLoadingMark = document.getElementById('studioStageMark')")+ page.evaluate('poll()')+ assert page.locator('#studioProgressValue').inner_text() == '45%'+ assert page.evaluate("reviewLoadingMark === document.getElementById('studioStageMark')")+ state.update(running=False, current=None, history=[dict(job, status=outcome, error='UI test')])+ page.evaluate('poll()')+ assert page.locator('#studioStageMark').is_hidden()+ complete = page.locator('#nowCard').evaluate("e => e.classList.contains('is-complete')")+ assert complete == (outcome == 'done'), (outcome, complete)+ page.wait_for_timeout(1200)+ assert page.locator('#studioProgressValue').is_hidden()+ # A new job must cancel the previous completion reset timer.+ state.update(running=True, current=dict(job, id='first'), history=[])+ page.evaluate('poll()')+ state.update(running=False, current=None, history=[dict(job, id='first', status='done')])+ page.evaluate('poll()')+ state.update(running=True, current=dict(job, id='next'), history=[])+ page.evaluate('poll()')+ page.wait_for_timeout(1200)+ assert page.locator('#studioProgressValue').inner_text() == '45%'+ assert page.locator('#studioProgressValue').is_visible()+ assert page.locator('#studioStageMark').is_visible()+ # Six independent directions, a slow morph and hue drift; static+ # under reduced motion, even while a job is actively running.+ animations = page.locator('#studioStageMark').evaluate(+ "e => e.getAnimations({subtree:true}).filter(a => a.playState === 'running').map(a => a.animationName)")+ if reduced == 'reduce':+ assert not animations, animations+ else:+ assert animations.count('fm-turn') == 6, animations+ assert 'fm-breathe' in animations+ assert 'fm-hue' in animations+ page.evaluate("phosToast('Motion gate', {duration:150})")+ page.wait_for_timeout(500)+ assert page.locator('.phos-toast').count() == 0+ if reduced == 'reduce':+ assert page.locator('#progressFill').evaluate("e => getComputedStyle(e,'::after').display") == 'none'+ assert page.evaluate("document.getAnimations().filter(a => a.playState === 'running' && a.effect.getTiming().iterations === Infinity).length") == 0+ # Failed/delayed first frames must retain the artwork. Successful+ # decode crossfades both layers, then stops hidden ring work.+ page.route('**/motion-preview.jpg', lambda r: r.fulfill(status=404))+ state['current']['progress']['preview'] = {'url': url + '/motion-preview.jpg', 'meaningful': True}+ page.evaluate('poll()')+ page.wait_for_timeout(450)+ assert page.locator('#studioStageMark').is_visible()+ assert not page.locator('#playerWrap').evaluate("e => e.classList.contains('has-live-frame')")+ page.unroute('**/motion-preview.jpg')+ page.route('**/motion-preview.jpg*', lambda r: r.fulfill(+ content_type='image/svg+xml', body='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="teal"/></svg>'))+ state['current']['progress']['preview']['url'] += '?ready=1'+ page.evaluate('poll()')+ page.wait_for_function("document.querySelector('#playerWrap').classList.contains('has-live-frame')")+ page.wait_for_timeout(100)+ opacity = page.locator('.live-stage-warming').evaluate('e => Number(getComputedStyle(e).opacity)')+ assert 0 < opacity < 1, opacity+ page.wait_for_timeout(900)+ assert page.locator('#studioStageMark').is_hidden()+ assert page.locator('#studioStageMark').evaluate(+ "e => e.getAnimations({subtree:true}).filter(a => a.playState === 'running').length") == 0+ # Back-to-back jobs cannot inherit the previous job's loaded frame.+ state['current'] = dict(job, id='fresh', progress={'pct': 3, 'phase_label': 'Loading model', 'preview': {}})+ page.evaluate('poll()')+ assert page.locator('#studioStageMark').is_visible()+ assert page.locator('.live-stage-image').count() == 0+ assert page.locator('.live-stage-progress').inner_text() == '3%'+ assert not errors, errors+ results.append({'motion': reduced, 'success_failure_stop': True, 'successive_jobs': True, 'toast_dismissal': True, 'first_frame_crossfade': True, 'failed_image_retains_mark': True, 'fresh_job_resets_frame': True})+ context.close()+ browser.close()+ return results+++if __name__ == '__main__':+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument('--url', required=True)+ args = parser.parse_args()+ print(json.dumps(check(args.url.rstrip('/')), indent=2))diff --git a/scripts/model_path_guard.py b/scripts/model_path_guard.pynew file mode 100644index 0000000..51aca06--- /dev/null+++ b/scripts/model_path_guard.py@@ -0,0 +1,79 @@+"""Read-only checks for existing model destinations. Never repair a path by mkdir."""+import os+from pathlib import Path++REMEDY = ('Restore access to the model folder at the same path, then try again. '+ 'Existing files and downloaded parts are kept.')+_seen = set()+++def problem(root, target=None, *, write=False, allow_new=False):+ root = Path(root).absolute()+ target = Path(target).absolute() if target is not None else root+ # Inspect lexical ancestors before resolving: resolve() hides broken links.+ for path in dict.fromkeys([root, *root.parents, target, *target.parents]):+ if path.is_symlink() and not path.is_dir():+ return 'Model folder unavailable. ' + REMEDY+ if not root.is_dir():+ if not allow_new or str(root) in _seen or root.exists():+ return 'Model folder unavailable. ' + REMEDY+ else:+ _seen.add(str(root))+ # Imported packs contain local folders and links to their original files.+ # A disconnected source is unavailable, not an invitation to replace it.+ for path in [target, *target.parents]:+ marker = path / '.phosphene_linked_from'+ if marker.is_file():+ try:+ source = Path(marker.read_text().strip())+ if not source.is_dir() or not os.access(source, os.R_OK | os.X_OK):+ return 'Linked model folder unavailable. ' + REMEDY+ if any(p.is_symlink() and not p.exists() for p in path.rglob('*')):+ return 'Linked model files unavailable. ' + REMEDY+ except OSError:+ return 'Linked model folder unavailable. ' + REMEDY+ if path == root:+ break+ for path in dict.fromkeys([root, target]):+ while not path.exists() and not path.is_symlink() and path != path.parent:+ path = path.parent+ if not path.is_dir() or not os.access(path, os.R_OK | os.X_OK):+ return 'Model folder unavailable. ' + REMEDY+ if write and not os.access(path, os.W_OK | os.X_OK):+ return 'Model folder is read-only. ' + REMEDY+ return ''+++def require(root, target=None, **kwargs):+ reason = problem(root, target, **kwargs)+ if reason:+ raise OSError(reason)+++def prepare_directory(root, target, *, allow_new=False):+ """Create pack descendants through an open root, never recreate that root.++ If it is renamed after admission, operations stay on the opened directory.+ A broken descendant link fails at open rather than creating its target.+ """+ root, target = Path(root).absolute(), Path(target).absolute()+ require(root, target, write=True, allow_new=allow_new)+ if not root.exists() and allow_new:+ root.mkdir(parents=True, exist_ok=True) # first stock install only+ _seen.add(str(root))+ if not target.is_relative_to(root):+ # Explicit absolute registry destinations retain their precedence.+ # Their parent must already exist, just as an external model root must.+ root = target.parent+ fd = os.open(root, os.O_RDONLY | os.O_DIRECTORY)+ try:+ for name in target.relative_to(root).parts:+ try:+ os.mkdir(name, dir_fd=fd)+ except FileExistsError:+ pass+ child = os.open(name, os.O_RDONLY | os.O_DIRECTORY, dir_fd=fd)+ os.close(fd)+ fd = child+ finally:+ os.close(fd)diff --git a/scripts/music/yue2_run.py b/scripts/music/yue2_run.pyindex b3d1270..c83ed0a 100644--- a/scripts/music/yue2_run.py+++ b/scripts/music/yue2_run.py@@ -469,10 +469,18 @@ def main(argv=None):lora_runtime = yue2_lora.LoRARuntime(adapters)config = GenerationConfig(ode_steps=int(args.steps))- pipe = YuE2Pipeline(- args.model_dir, args.vae_dir, precision=args.precision, generation_config=config,- memory_budget_gib=budget, vae_core_frames=args.vae_core_frames, progress=False,- )+ # The constructor starts the memory guard and samples at once: a Mac that+ # is already short (a 16 GB Mac with a browser open) stops HERE, and that+ # is the same memory-guard stop as one mid-song - exit 3, so the panel+ # says what to do instead of a generic "exited with code 1" (4.19.12).+ try:+ pipe = YuE2Pipeline(+ args.model_dir, args.vae_dir, precision=args.precision, generation_config=config,+ memory_budget_gib=budget, vae_core_frames=args.vae_core_frames, progress=False,+ )+ except MemoryError as exc:+ say("error", f"memory guard: {exc}")+ return 3# Surface the NAR / VAE progress the pipeline only reports when its own# stderr progress is enabled.from lyra import nar as _nardiff --git a/scripts/pinokio/h3_checkout.sh b/scripts/pinokio/h3_checkout.shindex 96379c8..ddd74f6 100755--- a/scripts/pinokio/h3_checkout.sh+++ b/scripts/pinokio/h3_checkout.sh@@ -36,8 +36,8 @@# keeps its H3 step optional: scripts/post_update.sh runs this file through# `defang`, which turns the FATAL line into a WARN and never ends the Update.set -u-H3_PIN_SHA="4df59c71629d6c65a6473fee822ae498f66922d0"-H3_PIN_REF="phosphene/v4.19.19-image"+H3_PIN_SHA="63893b3f33a62316a8b2065bcfba69ec0cc49aff"+H3_PIN_REF="phosphene/v5.0-image2"H3_LOCAL_BRANCH="phosphene-pinned"H3_URL="https://github.com/mrbizarro/minimax-h3-mlx.git"H3_DIR="${1:-}"diff --git a/scripts/pinokio/music_preflight.sh b/scripts/pinokio/music_preflight.shindex 568cf0f..07dc006 100644--- a/scripts/pinokio/music_preflight.sh+++ b/scripts/pinokio/music_preflight.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Same 24 GB floor as MUSIC_MIN_RAM_GB and the sidebar. Unknown RAM/df is fail-open.+# Same 16 GB floor as MUSIC_MIN_RAM_GB and the sidebar. Unknown RAM/df is fail-open.# HOW A REFUSAL STOPS THE INSTALL (4.20). Pinokio 8.2 ignores a shell.run step's# exit code; it stops a script only when the step's OUTPUT matches /error:/i or# /errno /i (pinokiod kernel/shells.js default `on` handlers). Both refusals@@ -9,8 +9,8 @@set -u# Linux has no hw.memsize; MemTotal (kB) is the same number there.MUSIC_MEM=$(sysctl -n hw.memsize 2>/dev/null || awk '/^MemTotal:/ {printf "%.0f\n", $2 * 1024}' /proc/meminfo 2>/dev/null || true)-if [[ "$MUSIC_MEM" =~ ^[0-9]+$ ]] && [ "$MUSIC_MEM" -lt 24000000000 ]; then- echo "FATAL error: YuE2 (the music engine) needs a Mac with at least 24 GB of memory; this Mac has $((MUSIC_MEM / 1000000000)) GB. Nothing was downloaded and the rest of Phosphene is unaffected."+if [[ "$MUSIC_MEM" =~ ^[0-9]+$ ]] && [ "$MUSIC_MEM" -lt 16000000000 ]; then+ echo "FATAL error: YuE2 (the music engine) needs a Mac with at least 16 GB of memory; this Mac has $((MUSIC_MEM / 1000000000)) GB. Nothing was downloaded and the rest of Phosphene is unaffected."exit 1fiMUSIC_DEST="${LTX_MUSIC_MODELS:-mlx_models/yue2}"@@ -26,5 +26,5 @@ elif [[ "$MUSIC_FREE" =~ ^[0-9]+$ ]] && [ "$MUSIC_FREE" -lt 13671875 ]; thenecho "FATAL error: YuE2 (the music engine) needs at least 14 GB free on the drive that holds the models (this Mac has $((MUSIC_FREE / 1048576)) GB free). Nothing was downloaded - free up space, then click Install again."exit 1else- echo 'YuE2 preflight OK (24 GB memory, 14 GB free disk required).'+ echo 'YuE2 preflight OK (16 GB memory, 14 GB free disk required).'fidiff --git a/scripts/pinokio/update_transaction.sh b/scripts/pinokio/update_transaction.shnew file mode 100644index 0000000..6e7f1d0--- /dev/null+++ b/scripts/pinokio/update_transaction.sh@@ -0,0 +1,12 @@+#!/usr/bin/env bash+# One process owns the source journal and dependency repair lock.+cd "$(dirname "$0")/../.." || { echo 'FATAL error: cannot open the app folder.'; exit 1; }+for py in ltx-2-mlx/env/bin/python python3 python; do+ if command -v "$py" >/dev/null 2>&1; then+ "$py" update_transaction.py && exit 0+ echo 'FATAL error: Update did not finish. Keep the update receipt and run Update again.'+ exit 1+ fi+done+echo 'FATAL error: Python is missing. Repair the engine, then run Update again.'+exit 1diff --git a/scripts/post_update.sh b/scripts/post_update.shindex f2fc5fc..f74097f 100644--- a/scripts/post_update.sh+++ b/scripts/post_update.sh@@ -284,14 +284,8 @@ echo 'Installing/refreshing the mflux image-engine pack (Ideogram 4 + Qwen-Edit)# Idempotent — skips when its marker is present."$PY" "$ROOT/patch_mflux_fbcache.py"-# ---- 7b. Vocal separation for Lip-sync ("Listen to the voice only") ----------# After step 7 on purpose: demucs is installed with torch PINNED to the copy-# the mflux pack just settled, so it can never move the image engine's torch.-# Existing installs get it here — the Lip-sync form's voice-only box has been-# ON by default since 4.15 and nothing installed the separator before 4.17.x.-# BEST-EFFORT and idempotent: ready installs print "ready" in about a second.-PHOSPHENE_SEPARATOR_VIA=update bash "$ROOT/scripts/pinokio/a2v_stems_deps.sh" "$ROOT/ltx-2-mlx" \- || echo 'WARN: vocal separation did not install - video is unaffected; the Lip-sync form offers Install.'+# Vocal separation installs from the Lip-sync form when requested.+# Updating the runtime must not fetch its weights on a model-free install.# ---- 8. Weight self-heal ----------------------------------------------------# Every fetch here is BEST-EFFORT. An Update must not be brickable, and each of@@ -313,31 +307,9 @@ elseecho 'LTX-2.3 is not installed — skipping its spatial-upscaler self-heal (install it from Settings → Models if you want to train a character).'fi-# LTX-2.5, the DEFAULT generation (~28 GB). Anyone who installed before-# 2026-08-12 has 2.3 weights only, and 2.5 is what the panel boots into — so-# without this an Update leaves them on a default lane with nothing behind it.-# Mirrored as GitHub release assets (our own quantisation of a gated upstream,-# read-only HF token), hence the fetcher rather than `hf download`. It verifies-# what it already has, so the steady state is a read pass.-echo 'Ensuring the LTX-2.5 weights are present (default generation)…'-defang "$PY" "$ROOT/scripts/fetch_pack_release.py" --repo-key q4_25 --repo-key gemma4_25 --repo-key tae \- || echo 'WARN: LTX-2.5 weight fetch failed — open the panel, go to Models, and click Download for the LTX 2.5 rows to retry. It resumes.'--# The three IC-LoRAs the optional modes need. Colorize + Control are un-gated-# originals; Ingredients comes from DeepBeepMeep/LTX-2, which mirrors the-# BYTE-IDENTICAL gated file un-gated — and --include is CRITICAL there because-# that repo is ~708 GB.-echo 'Ensuring the Colorize IC-LoRA is present (restore mode, optional)…'-defang "$HF" download DoctorDiffusion/LTX-2.3-IC-LoRA-Colorizer --local-dir "$ROOT/mlx_models/loras/ic" --include 'LTX-2.3-22b-IC-LoRA-Colorizer-0.9.safetensors' \- || echo 'WARN: Colorize IC-LoRA fetch failed — the Colorize mode will fetch it on first use, or click Repair.'--echo 'Ensuring the Ingredients IC-LoRA is present (multi-reference mode, optional)…'-defang "$HF" download DeepBeepMeep/LTX-2 --local-dir "$ROOT/mlx_models/loras/ic" --include 'ltx-2.3-22b-ic-lora-ingredients-0.9.safetensors' \- || echo 'WARN: Ingredients IC-LoRA fetch failed — the Ingredients mode will fetch it on first use, or click Repair.'--echo 'Ensuring the Control IC-LoRA is present (Union, control mode, optional)…'-defang "$HF" download Lightricks/LTX-2.3-22b-IC-LoRA-Union-Control --local-dir "$ROOT/mlx_models/loras/ic" --include 'ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors' \- || echo 'WARN: Control IC-LoRA fetch failed — the Control mode will fetch it on first use, or click Repair.'+# Models are installed on request in the panel. Updating code must not turn+# a model-free install into a 30 GB download, or install optional adapters.+echo 'Choose new model downloads inside Phosphene.'# ---- 8b. H3 compact (Q8) engine — the memory-halving default (optional) ----# v4.8.0 made the Q8 DiT H3's AUTO default on every machine, but installs madediff --git a/scripts/public_exclude.txt b/scripts/public_exclude.txtindex 3de8bfc..37a4420 100644--- a/scripts/public_exclude.txt+++ b/scripts/public_exclude.txt@@ -45,7 +45,9 @@ scripts/public_leak_patterns.txt# Nothing at runtime imports them (a gate checks the snapshot boots).conftest.pytest_*.py+test_*.jsscripts/test_*.py+tests/test_*.pyscripts/release_gates.sh## Maintainer-only material: the release checklist, research notes, launch@@ -67,3 +69,4 @@ QWEN.md.clinerules.cursorrules.windsurfrules+docs/redesign/diff --git a/scripts/speech/speech_constraints.txt b/scripts/speech/speech_constraints.txtnew file mode 100644index 0000000..432cbdb--- /dev/null+++ b/scripts/speech/speech_constraints.txt@@ -0,0 +1,39 @@+# Speech engine venv (speech-mlx/.venv, Python 3.12): the known-good set.+# Resolved from mlx-audio 0.5.8 (2026-10-05) on 2026-10-22; every package exact.+# The ONLY install into that venv is scripts/speech/speech_setup.sh packages (-c this file).+# Not the LTX venv's set on purpose: mlx-audio needs mlx>=0.32, LTX holds 0.31.1.+annotated-doc==0.0.5+anyio==4.15.1+cffi==2.1.1+click==8.5.0+filelock==4.2.4+fsspec==2026.9.0+h11==0.16.0+hf-xet==1.7.0+httpcore2==2.16.0+httpx2==2.16.0+huggingface-hub==2.2.0+idna==3.20+markdown-it-py==4.2.0+mdurl==0.1.2+miniaudio==1.71+mlx==0.32.4+mlx-audio==0.5.8+mlx-metal==0.32.4+numpy==2.5.4+packaging==26.3+pycparser==3.12+pygments==2.21.0+pyyaml==6.0.3+regex==2026.9.29+rich==15.0.0+safetensors==0.8.0+scipy==1.18.1+shellingham==1.5.4+sounddevice==0.5.6+tokenizers==0.23.3+tqdm==4.70.1+transformers==5.20.2+truststore==0.10.5+typer==0.27.3+typing-extensions==4.16.0diff --git a/scripts/speech/speech_fetch.py b/scripts/speech/speech_fetch.pynew file mode 100755index 0000000..9f4ca34--- /dev/null+++ b/scripts/speech/speech_fetch.py@@ -0,0 +1,193 @@+#!/usr/bin/env python3+"""The Speech pack: the single downloader and verifier.++ speech-mlx/.venv/bin/python scripts/speech/speech_fetch.py # download + verify+ python3 scripts/speech/speech_fetch.py --check # offline, sizes only++Two checkpoints of Qwen3-TTS 12 Hz 1.7B (Apache-2.0), the 8-bit MLX+conversions by mlx-community, each at a PINNED revision listed in+speech_manifest.json with every file's size and sha256:++ <models>/customvoice/ the nine preset voices + delivery instructions+ <models>/base/ voice cloning from a short clip++The two share one speech tokenizer byte for byte, so the second copy is a+hard link (one download, ~0.7 GB saved on disk).++Resumable: a file whose sha256 already matches is kept; a half-downloaded+file resumes where it stopped (huggingface_hub keeps the partial under+<models>/.staging). Phosphene re-hosts nothing.++The check half of this file (pack_problems, PACK_BYTES) is stdlib-only, so+the panel imports it to answer "is Speech installed" without the engine venv.+"""+from __future__ import annotations++import argparse+import hashlib+import json+import os+import shutil+import sys+import time+from pathlib import Path++HERE = Path(__file__).resolve().parent+MANIFEST = json.loads((HERE / "speech_manifest.json").read_text())+PACKS: dict = MANIFEST["packs"]+SHARED = set(MANIFEST.get("shared") or [])+# Bytes on disk once installed (the shared tokenizer counted once).+PACK_BYTES = sum(p["bytes"] for p in PACKS.values()) - sum(+ f["size"] for f in PACKS["base"]["files"] if f["path"] in SHARED)+RECEIPT = "pack_source.json"+++def models_dir(arg: str | None = None) -> Path:+ root = HERE.parent.parent+ raw = arg or os.environ.get("LTX_SPEECH_MODELS") or "mlx_models/speech"+ p = Path(raw).expanduser()+ return p if p.is_absolute() else root / p+++def pack_problems(models: Path) -> list[str]:+ """Offline, sizes only — cheap enough for every /status poll."""+ out: list[str] = []+ for key, pack in PACKS.items():+ for f in pack["files"]:+ p = models / key / f["path"]+ try:+ size = p.stat().st_size+ except OSError:+ out.append(f"{key}/{f['path']} missing")+ continue+ if size != f["size"]:+ out.append(f"{key}/{f['path']} is {size} bytes, expected {f['size']}")+ return out+++def sha256(p: Path) -> str:+ h = hashlib.sha256()+ with open(p, "rb") as fh:+ for chunk in iter(lambda: fh.read(8 << 20), b""):+ h.update(chunk)+ return h.hexdigest()+++def say(msg: str) -> None:+ print(f"[speech-fetch] {msg}", flush=True)+++def fatal(msg: str) -> None:+ # One line Pinokio and the panel both recognise as the reason (see+ # scripts/pinokio/README.md: FATAL error: <reason + what to do>).+ print(f"FATAL error: {msg}", flush=True)+ sys.exit(1)+++def _good(p: Path, f: dict) -> bool:+ try:+ return p.stat().st_size == f["size"] and sha256(p) == f["sha256"]+ except OSError:+ return False+++def fetch(models: Path, min_free_gb: float) -> None:+ models.mkdir(parents=True, exist_ok=True)+ staging = models / ".staging"+ todo: list[tuple[str, dict]] = []+ for key, pack in PACKS.items():+ for f in pack["files"]:+ if not _good(models / key / f["path"], f):+ todo.append((key, f))+ if not todo:+ say("every file is present and verified")+ write_receipt(models)+ return+ need = sum(f["size"] for k, f in todo if not (k == "base" and f["path"] in SHARED))+ # A resumed install already holds part of it in staging; count only what is left.+ staged = 0+ if staging.is_dir():+ for p in staging.rglob("*"):+ try:+ staged += p.stat().st_size if p.is_file() else 0+ except OSError:+ pass+ need = max(0, need - staged)+ free = shutil.disk_usage(models).free+ if free < need + min_free_gb * 2**30:+ fatal(f"Not enough disk space for Speech: it needs {need / 1e9:.1f} GB plus "+ f"{min_free_gb:.0f} GB headroom and {free / 1e9:.1f} GB is free. Free some space, then Install again.")+ try:+ from huggingface_hub import hf_hub_download+ from huggingface_hub.utils import logging as hf_logging+ hf_logging.set_verbosity_error() # no "unauthenticated requests" nag on the card+ except ImportError:+ fatal("The speech engine's packages are missing (huggingface_hub). Click Install again; it repairs the engine first.")+ say(f"{len(todo)} file(s) to fetch, {need / 1e9:.2f} GB")+ for i, (key, f) in enumerate(todo, 1):+ dest = models / key / f["path"]+ dest.parent.mkdir(parents=True, exist_ok=True)+ twin = next((models / k / f["path"] for k in PACKS if k != key+ and f["path"] in SHARED and _good(models / k / f["path"], f)), None)+ if twin is not None:+ dest.unlink(missing_ok=True)+ try:+ os.link(twin, dest)+ except OSError:+ shutil.copy2(twin, dest)+ say(f"{i}/{len(todo)} {key}/{f['path']} (linked to the identical copy)")+ continue+ say(f"{i}/{len(todo)} {key}/{f['path']} {f['size'] / 1e9:.2f} GB")+ repo, rev = PACKS[key]["repo"], PACKS[key]["revision"]+ got = None+ for attempt in range(1, 4):+ try:+ got = Path(hf_hub_download(repo, f["path"], revision=rev, local_dir=str(staging / key)))+ break+ except Exception as e: # network blips: retry, then say what to do+ if attempt == 3:+ fatal(f"Download of {f['path']} failed after 3 tries ({type(e).__name__}). "+ "Check the connection and click Install again; finished files are kept.")+ say(f"retrying {f['path']} in {5 * attempt} s ({type(e).__name__})")+ time.sleep(5 * attempt)+ if sha256(got) != f["sha256"]:+ got.unlink(missing_ok=True)+ fatal(f"{f['path']} did not match its pinned checksum and was deleted. Click Install again to fetch it fresh.")+ os.replace(got, dest)+ shutil.rmtree(staging, ignore_errors=True)+ bad = [p for p in pack_problems(models)]+ if bad:+ fatal("The Speech pack is still incomplete: " + "; ".join(bad[:3]) + ". Click Install again.")+ write_receipt(models)+ say("done: Speech is ready")+++def write_receipt(models: Path) -> None:+ (models / RECEIPT).write_text(json.dumps({+ "model": "Qwen3-TTS 12Hz 1.7B (CustomVoice + Base), 8-bit MLX",+ "license": "Apache-2.0",+ "sources": {k: {"repo": p["repo"], "revision": p["revision"], "upstream": p.get("upstream")}+ for k, p in PACKS.items()},+ "files": {f"{k}/{f['path']}": f["sha256"] for k, p in PACKS.items() for f in p["files"]},+ }, indent=1))+++def main() -> int:+ ap = argparse.ArgumentParser()+ ap.add_argument("--models", default=None)+ ap.add_argument("--check", action="store_true")+ ap.add_argument("--min-free-gb", type=float, default=2.0)+ a = ap.parse_args()+ models = models_dir(a.models)+ if a.check:+ bad = pack_problems(models)+ for b in bad:+ print(b)+ print("ok" if not bad else f"{len(bad)} problem(s)")+ return 0 if not bad else 1+ fetch(models, a.min_free_gb)+ return 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/scripts/speech/speech_manifest.json b/scripts/speech/speech_manifest.jsonnew file mode 100644index 0000000..1b704f2--- /dev/null+++ b/scripts/speech/speech_manifest.json@@ -0,0 +1,148 @@+{+ "packs": {+ "customvoice": {+ "repo": "mlx-community/Qwen3-TTS-12Hz-1.7B-CustomVoice-8bit",+ "revision": "41d3337e8b7f2843a75841595fc14e4b9a7a4b96",+ "license": "apache-2.0",+ "upstream": [+ "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"+ ],+ "files": [+ {+ "path": "config.json",+ "size": 6058,+ "sha256": "43f29f9ab55cf387bd2ce1d07e9d95a5ca8974fa2fda4e2b45c13ae64aad3bfa"+ },+ {+ "path": "generation_config.json",+ "size": 245,+ "sha256": "f1b90b4513f3b34c62851049e2492d7b4c5940daf1276f89c82b8ef04127f3aa"+ },+ {+ "path": "merges.txt",+ "size": 1671839,+ "sha256": "599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3"+ },+ {+ "path": "model.safetensors",+ "size": 2393308931,+ "sha256": "b696f4bf45f54497b6de758981e76f1410bd68af05a657477dee466b0202df1a"+ },+ {+ "path": "model.safetensors.index.json",+ "size": 71786,+ "sha256": "2551ed02dc288b90cd6b7ec98652433f08ef2ae98fb3eda5248a4b9e5b47d08b"+ },+ {+ "path": "preprocessor_config.json",+ "size": 127,+ "sha256": "efdde1022ea9d76928bf7a9cd53139138f5ba2e466e837f08f6105ab1af1c119"+ },+ {+ "path": "speech_tokenizer/config.json",+ "size": 2336,+ "sha256": "ee65bb901c876664ab8707c487157aa1a6ee57c65969b28fb5ec9dc211e68167"+ },+ {+ "path": "speech_tokenizer/configuration.json",+ "size": 76,+ "sha256": "6bc26d64eb5024b4d1dab5a52371958b429256d6c9d59787f1f5294a54e0cebd"+ },+ {+ "path": "speech_tokenizer/model.safetensors",+ "size": 682293092,+ "sha256": "836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258"+ },+ {+ "path": "speech_tokenizer/preprocessor_config.json",+ "size": 234,+ "sha256": "fcb3805e597e786d4067706e602f6688524640f8d3396790e2e09b5942fcbdfb"+ },+ {+ "path": "tokenizer_config.json",+ "size": 7344,+ "sha256": "dc3c31c3bdaedd5016382bb3cbe07323026775ad51f5a4fb564505992ae4a670"+ },+ {+ "path": "vocab.json",+ "size": 2776833,+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"+ }+ ],+ "bytes": 3080138901+ },+ "base": {+ "repo": "mlx-community/Qwen3-TTS-12Hz-1.7B-Base-8bit",+ "revision": "e7dd0585652209fa0d7783659aad4e8a324de11c",+ "license": "apache-2.0",+ "upstream": null,+ "files": [+ {+ "path": "config.json",+ "size": 5522,+ "sha256": "b14fba6bfd391968876248b843b095696b0188187a3d774a3bddc32544d15627"+ },+ {+ "path": "generation_config.json",+ "size": 245,+ "sha256": "f1b90b4513f3b34c62851049e2492d7b4c5940daf1276f89c82b8ef04127f3aa"+ },+ {+ "path": "merges.txt",+ "size": 1671839,+ "sha256": "599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3"+ },+ {+ "path": "model.safetensors",+ "size": 2417320525,+ "sha256": "b965c581ccf6aa852a4124feeb7a8a111542ee7b213139368b4cc7ba7fd4728b"+ },+ {+ "path": "model.safetensors.index.json",+ "size": 78070,+ "sha256": "9592a7c0ac3261a6211978416ef1796d3841225ac0ff0f9d6bfb5d1a6b49e5e9"+ },+ {+ "path": "preprocessor_config.json",+ "size": 127,+ "sha256": "efdde1022ea9d76928bf7a9cd53139138f5ba2e466e837f08f6105ab1af1c119"+ },+ {+ "path": "speech_tokenizer/config.json",+ "size": 2336,+ "sha256": "ee65bb901c876664ab8707c487157aa1a6ee57c65969b28fb5ec9dc211e68167"+ },+ {+ "path": "speech_tokenizer/configuration.json",+ "size": 76,+ "sha256": "6bc26d64eb5024b4d1dab5a52371958b429256d6c9d59787f1f5294a54e0cebd"+ },+ {+ "path": "speech_tokenizer/model.safetensors",+ "size": 682293092,+ "sha256": "836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258"+ },+ {+ "path": "speech_tokenizer/preprocessor_config.json",+ "size": 234,+ "sha256": "fcb3805e597e786d4067706e602f6688524640f8d3396790e2e09b5942fcbdfb"+ },+ {+ "path": "tokenizer_config.json",+ "size": 7344,+ "sha256": "dc3c31c3bdaedd5016382bb3cbe07323026775ad51f5a4fb564505992ae4a670"+ },+ {+ "path": "vocab.json",+ "size": 2776833,+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"+ }+ ],+ "bytes": 3104156243+ }+ },+ "shared": [+ "speech_tokenizer/model.safetensors"+ ],+ "note": "Qwen3-TTS 12Hz 1.7B (Apache-2.0, Qwen team), 8-bit MLX conversions by mlx-community. Pinned revisions; every file sha256-verified."+}\ No newline at end of filediff --git a/scripts/speech/speech_run.py b/scripts/speech/speech_run.pynew file mode 100755index 0000000..fd7f041--- /dev/null+++ b/scripts/speech/speech_run.py@@ -0,0 +1,290 @@+#!/usr/bin/env python3+"""Phosphene Speech runner: a script in, one WAV out.++Runs inside the speech engine's own venv (`speech-mlx/.venv`, mlx-audio pinned+in scripts/speech/speech_constraints.txt). The panel builds the argv and the+environment; this file owns nothing but the synthesis.++Two voice kinds, two checkpoints of the same model (Qwen3-TTS 12 Hz 1.7B,+Apache-2.0, 8-bit MLX conversions):++ preset CustomVoice: nine built-in speakers, and a free-text delivery+ instruction ("dry, deadpan, slightly offended") that steers emotion.+ clone Base: a voice from a short reference clip. With the clip's words+ (ref_text) the model continues the recording (closest match); without+ them it uses only the speaker embedding.++Protocol on stdout, one line each, flushed:+ [speech] stage <name>+ [speech] line <i>/<n>+ [speech] done {json}+ [speech] error <sentence>+Exit codes: 0 ok, 2 bad input, 3 memory guard, 1 anything else.+"""+from __future__ import annotations++import argparse+import json+import os+import re+import resource+import shutil+import subprocess+import sys+import tempfile+import time+import wave+from pathlib import Path++# Pinokio exports these into every app it launches. They are PyTorch switches+# and mean nothing to MLX, but nothing about this engine was validated with+# them, so they go before anything imports a framework (phosphene-release §0).+for _k in ("PYTORCH_ENABLE_MPS_FALLBACK", "PYTORCH_MPS_FAST_MATH"):+ os.environ.pop(_k, None)++SAMPLE_RATE = 24000+LINE_GAP_S = 0.35 # silence between script lines (a breath, not a cut)+EDGE_PAD_S = 0.12 # silence kept at the head and tail+PEAK_DBFS = -1.0+MAX_CHARS = 2000+RC_INPUT, RC_MEMORY = 2, 3+++def say(kind: str, msg: str = "") -> None:+ print(f"[speech] {kind} {msg}".rstrip(), flush=True)+++def fail(code: int, msg: str) -> None:+ say("error", msg)+ sys.exit(code)+++def split_lines(script: str) -> list[str]:+ """One generation per non-empty line. Long lines are split at sentence+ ends so no single pass runs past ~400 characters (the model drifts on very+ long single prompts)."""+ out: list[str] = []+ for raw in script.replace("\r", "\n").split("\n"):+ line = " ".join(raw.split())+ if not line:+ continue+ while len(line) > 400:+ cut = max(line.rfind(". ", 0, 400), line.rfind("? ", 0, 400), line.rfind("! ", 0, 400))+ cut = cut + 1 if cut > 80 else 400+ out.append(line[:cut].strip())+ line = line[cut:].strip()+ if line:+ out.append(line)+ return out+++def trim_silence(audio, threshold: float = 0.008, pad_s: float = EDGE_PAD_S):+ import numpy as np+ if audio.size == 0:+ return audio+ win = int(0.02 * SAMPLE_RATE)+ n = audio.size // win+ if n < 2:+ return audio+ rms = np.sqrt((audio[: n * win].reshape(n, win) ** 2).mean(axis=1))+ loud = np.nonzero(rms > threshold)[0]+ if loud.size == 0:+ return audio+ pad = int(pad_s * SAMPLE_RATE)+ start = max(0, loud[0] * win - pad)+ end = min(audio.size, (loud[-1] + 1) * win + pad)+ return audio[start:end]+++def write_wav(path: Path, audio) -> None:+ import numpy as np+ pcm = (np.clip(audio, -1.0, 1.0) * 32767.0).astype("<i2")+ with wave.open(str(path), "wb") as w:+ w.setnchannels(1)+ w.setsampwidth(2)+ w.setframerate(SAMPLE_RATE)+ w.writeframes(pcm.tobytes())+++def change_speed(src: Path, dst: Path, speed: float) -> None:+ """Pitch-preserving tempo change. atempo takes 0.5–2.0 per stage."""+ ffmpeg = shutil.which("ffmpeg")+ if not ffmpeg:+ fail(1, "Speed needs ffmpeg and none was found on PATH. Set Speed to 1.0, or restart Phosphene from Pinokio.")+ r = subprocess.run([ffmpeg, "-v", "error", "-y", "-i", str(src), "-filter:a", f"atempo={speed:.3f}",+ "-ar", str(SAMPLE_RATE), "-ac", "1", "-c:a", "pcm_s16le", str(dst)],+ stdin=subprocess.DEVNULL, capture_output=True, text=True, errors="replace")+ if r.returncode != 0 or not dst.is_file():+ fail(1, "ffmpeg could not change the speed: " + (r.stderr.strip().splitlines() or ["no output"])[-1])+++def prepare_reference(src: str, work: Path, max_s: int = 20) -> str:+ """The clip the model clones from, as a 24 kHz mono WAV of at most max_s.+ mlx-audio's own reader handles WAV/MP3/FLAC but not every container a user+ drops (a .mov, an .m4a from a phone), and a long clip only slows the clone+ down. ffmpeg normalises all of them; without ffmpeg the file goes as is."""+ ffmpeg = shutil.which("ffmpeg")+ if not ffmpeg:+ return src+ out = work / "reference.wav"+ r = subprocess.run([ffmpeg, "-v", "error", "-y", "-i", src, "-vn", "-t", str(max_s), "-ac", "1",+ "-ar", str(SAMPLE_RATE), "-c:a", "pcm_s16le", str(out)],+ stdin=subprocess.DEVNULL, capture_output=True, text=True, errors="replace")+ if r.returncode != 0 or not out.is_file() or out.stat().st_size < 4096:+ fail(RC_INPUT, "The voice clip could not be read as audio. Use a WAV, MP3, M4A or FLAC of someone speaking.")+ return str(out)+++def peak_footprint_gb() -> float | None:+ """This process's lifetime peak physical footprint (what Activity+ Monitor's Memory column counts, GPU buffers included), from macOS+ proc_pid_rusage(RUSAGE_INFO_V4).ri_lifetime_max_phys_footprint.+ ru_maxrss leaves the Metal buffers out, so it understates an MLX job."""+ try:+ import ctypes+ lib = ctypes.CDLL("/usr/lib/libSystem.dylib")+ buf = (ctypes.c_uint64 * 48)()+ if lib.proc_pid_rusage(os.getpid(), 4, ctypes.byref(buf)) != 0:+ return None+ # 16-byte uuid, then uint64 fields; lifetime_max_phys_footprint is #28.+ return round(buf[2 + 28] / 1e9, 2)+ except Exception:+ return None+++def low_memory() -> bool:+ """True when the Mac is close to swapping. vm_stat is cheap and needs no+ extra package; a 16 GB Mac with a browser open is where this matters."""+ try:+ out = subprocess.run(["vm_stat"], capture_output=True, text=True, errors="replace", timeout=3).stdout+ except (OSError, subprocess.SubprocessError):+ return False+ page = 16384+ m = re.search(r"page size of (\d+)", out)+ if m:+ page = int(m.group(1))+ def pages(name):+ mm = re.search(rf"{name}:\s+(\d+)", out)+ return int(mm.group(1)) if mm else 0+ free = (pages("Pages free") + pages("Pages inactive") + pages("Pages speculative")) * page+ return free < 0.6 * 2**30+++def main(argv: list[str] | None = None) -> int:+ ap = argparse.ArgumentParser()+ ap.add_argument("--pack", required=True, help="mlx_models/speech")+ ap.add_argument("--kind", choices=("preset", "clone"), required=True)+ ap.add_argument("--voice", default="")+ ap.add_argument("--ref-audio", default="")+ ap.add_argument("--ref-text", default="")+ ap.add_argument("--style", default="", help="delivery instruction (presets)")+ ap.add_argument("--language", default="english")+ ap.add_argument("--speed", type=float, default=1.0)+ ap.add_argument("--seed", type=int, default=-1)+ ap.add_argument("--temperature", type=float, default=0.9)+ ap.add_argument("--text-file", required=True)+ ap.add_argument("--out", required=True)+ a = ap.parse_args(argv)++ script = Path(a.text_file).read_text(encoding="utf-8", errors="replace")+ lines = split_lines(script)+ if not lines:+ fail(RC_INPUT, "The script is empty. Write at least one line.")+ if sum(len(l) for l in lines) > MAX_CHARS:+ fail(RC_INPUT, f"The script is longer than {MAX_CHARS} characters. Split it into shorter takes.")+ if not 0.5 <= a.speed <= 2.0:+ fail(RC_INPUT, "Speed must be between 0.5 and 2.0.")+ pack = Path(a.pack)+ if a.kind == "preset":+ model_dir = pack / "customvoice"+ if not a.voice:+ fail(RC_INPUT, "Pick a voice.")+ else:+ model_dir = pack / "base"+ if not a.ref_audio or not Path(a.ref_audio).is_file():+ fail(RC_INPUT, "The voice clip is missing. Pick the character again, or add the clip again.")+ if not (model_dir / "config.json").is_file():+ fail(1, f"The speech model is not installed at {model_dir}. Open Audio → Speech and install it.")++ work = Path(tempfile.mkdtemp(prefix="phos-speech-run-"))+ # With the clip's words the model continues the recording, so the clip must+ # not be cut mid-sentence (30 s ceiling); without them 20 s is plenty.+ ref_audio = (prepare_reference(a.ref_audio, work, 30 if a.ref_text.strip() else 20)+ if a.kind == "clone" else "")++ say("stage", "load")+ t0 = time.time()+ import numpy as np+ import mlx.core as mx+ if os.environ.get("PHOSPHENE_SPEECH_DEVICE") == "cpu": # debugging only: very slow+ mx.set_default_device(mx.cpu)+ mx.set_cache_limit(256 * 2**20)+ from mlx_audio.tts.utils import load_model+ model = load_model(str(model_dir))+ load_s = time.time() - t0+ seed = a.seed if a.seed >= 0 else int.from_bytes(os.urandom(4), "little") & 0x7FFFFFFF+ mx.random.seed(seed)++ kw: dict = {"lang_code": a.language, "temperature": a.temperature, "split_pattern": ""}+ if a.kind == "preset":+ kw["voice"] = a.voice+ if a.style.strip():+ kw["instruct"] = a.style.strip()[:300]+ else:+ kw["ref_audio"] = ref_audio+ if a.ref_text.strip():+ kw["ref_text"] = a.ref_text.strip()++ pieces = []+ gap = np.zeros(int(LINE_GAP_S * SAMPLE_RATE), dtype=np.float32)+ t1 = time.time()+ for i, line in enumerate(lines):+ say("line", f"{i + 1}/{len(lines)}")+ if low_memory():+ fail(RC_MEMORY, "Stopped before the Mac ran out of memory. Close other apps (a browser with many tabs is the usual one) and try again.")+ chunks = [np.asarray(r.audio, dtype=np.float32).reshape(-1) for r in model.generate(text=line, **kw)]+ if not chunks:+ fail(1, f"The model returned no audio for line {i + 1}.")+ audio = trim_silence(np.concatenate(chunks), pad_s=0.0 if len(lines) > 1 else EDGE_PAD_S)+ if pieces:+ pieces.append(gap)+ pieces.append(audio)+ gen_s = time.time() - t1+ audio = np.concatenate(pieces)+ if len(lines) > 1:+ pad = np.zeros(int(EDGE_PAD_S * SAMPLE_RATE), dtype=np.float32)+ audio = np.concatenate([pad, audio, pad])+ peak = float(np.abs(audio).max()) if audio.size else 0.0+ if peak > 0:+ audio = audio * (10 ** (PEAK_DBFS / 20) / peak)++ say("stage", "write")+ out = Path(a.out)+ out.parent.mkdir(parents=True, exist_ok=True)+ partial = out.with_name(out.stem + ".partial" + out.suffix)+ if abs(a.speed - 1.0) > 1e-3:+ with tempfile.TemporaryDirectory() as td:+ raw = Path(td) / "raw.wav"+ write_wav(raw, audio)+ change_speed(raw, partial, a.speed)+ else:+ write_wav(partial, audio)+ with wave.open(str(partial), "rb") as w:+ seconds = w.getnframes() / float(w.getframerate())+ os.replace(partial, out)+ shutil.rmtree(work, ignore_errors=True)+ done = {"audio_seconds": round(seconds, 3), "sample_rate": SAMPLE_RATE, "lines": len(lines),+ "seed": seed, "load_seconds": round(load_s, 2), "generate_seconds": round(gen_s, 2),+ "mlx_peak_gb": round(mx.get_peak_memory() / 1e9, 2),+ "process_peak_gb": peak_footprint_gb(),+ "rss_peak_gb": round(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e9, 2),+ "realtime_factor": round(seconds / gen_s, 2) if gen_s > 0 else None}+ say("done", json.dumps(done))+ return 0+++if __name__ == "__main__":+ try:+ sys.exit(main())+ except KeyboardInterrupt:+ sys.exit(130)diff --git a/scripts/speech/speech_setup.sh b/scripts/speech/speech_setup.shnew file mode 100755index 0000000..6be261f--- /dev/null+++ b/scripts/speech/speech_setup.sh@@ -0,0 +1,66 @@+#!/usr/bin/env bash+# Speech engine setup, one step per call (the panel's install card runs them in+# order; every step is idempotent, so Install again resumes):+#+# bash scripts/speech/speech_setup.sh preflight memory + disk+# bash scripts/speech/speech_setup.sh venv Python 3.12 venv at speech-mlx/.venv+# bash scripts/speech/speech_setup.sh packages mlx-audio at the known-good set+#+# Paths stay RELATIVE to the app folder (the cwd): uv 0.11.23 splits a -c path+# at spaces, and the Mac app lives under "Application Support".+# A real failure prints ONE "FATAL error: <reason + next click>" line (Pinokio+# and the panel both act on it); nothing optional prints that word.+set -uo pipefail+STEP="${1:-}"+ROOT_REL="${LTX_SPEECH_ROOT:-speech-mlx}"+VENV="$ROOT_REL/.venv"+# The engine + packages need ~1 GB; the weights step checks its own remaining bytes+# (speech_fetch.py), so a resumed install is never refused for space it already used.+MIN_FREE_GB="${SPEECH_MIN_FREE_GB:-2}"+MIN_RAM_GB="${SPEECH_MIN_RAM_GB:-16}"+case "$STEP" in+ preflight)+ ram_gb=$(( $(sysctl -n hw.memsize 2>/dev/null || echo 0) / 1073741824 ))+ # 16 GB Macs report 16; allow a GiB of rounding.+ if [ "$ram_gb" -gt 0 ] && [ "$ram_gb" -lt $(( MIN_RAM_GB - 1 )) ]; then+ echo "FATAL error: Speech needs about ${MIN_RAM_GB} GB of unified memory and this Mac has ${ram_gb} GB."+ exit 1+ fi+ mkdir -p "${LTX_SPEECH_MODELS:-mlx_models/speech}"+ free_kb=$(df -Pk "${LTX_SPEECH_MODELS:-mlx_models/speech}" | awk 'NR==2 {print $4}')+ if [ -n "$free_kb" ] && [ "$free_kb" -lt $(( MIN_FREE_GB * 1048576 )) ]; then+ echo "FATAL error: Speech needs ${MIN_FREE_GB} GB free disk and only $(( free_kb / 1048576 )) GB is free. Free some space, then click Install again."+ exit 1+ fi+ echo "preflight ok: ${ram_gb} GB memory, $(( free_kb / 1048576 )) GB free"+ ;;+ venv)+ if ! "$VENV/bin/python" -c 'import sys; assert sys.version_info[:2] == (3, 12)' >/dev/null 2>&1; then+ uv venv --clear --python 3.12 "$VENV" || {+ echo "FATAL error: could not create the Python 3.12 environment for Speech. Check your connection and free disk space (Python downloads the first time), then click Install again."+ exit 1+ }+ fi+ echo "venv ok"+ ;;+ packages)+ uv pip install --python "$VENV/bin/python" -c scripts/speech/speech_constraints.txt "mlx-audio==0.5.8" || {+ echo "FATAL error: could not install the speech engine packages. Check your connection, then click Install again."+ exit 1+ }+ "$VENV/bin/python" -c 'import mlx.core, mlx_audio.tts.utils, huggingface_hub' >/dev/null 2>&1 || {+ echo "FATAL error: the speech engine installed but does not start on this Mac. Click Install again to repair it."+ exit 1+ }+ # The panel reads this to call the engine ready: written only after the probe+ # passed, and it names the constraints it was built from (a later change makes+ # the venv stale, and Install again repairs it).+ "$VENV/bin/python" -c 'import hashlib,sys; print(hashlib.sha256(open(sys.argv[1],"rb").read()).hexdigest())' \+ scripts/speech/speech_constraints.txt > "$VENV/.phosphene_speech_packages"+ echo "packages ok"+ ;;+ *)+ echo "FATAL error: unknown speech setup step '$STEP' - report this line."+ exit 2+ ;;+esacdiff --git a/scripts/test_bench_ui.cjs b/scripts/test_bench_ui.cjsnew file mode 100644index 0000000..0d2f8a3--- /dev/null+++ b/scripts/test_bench_ui.cjs@@ -0,0 +1,38 @@+// Bench UI failure handling without a browser or network.+const assert = require('node:assert/strict');+const fs = require('node:fs');+const vm = require('node:vm');+const source = fs.readFileSync('webapp/js/bench.js', 'utf8');+const nodes = new Map();+const toasts = [];+let copyOk = false;+const context = vm.createContext({+ console, setInterval, clearInterval,+ navigator: {clipboard: {writeText: async () => { throw Error('denied'); }}},+ fetch: async () => ({status:200,json:async()=>({ok:true,text:'PB1 results'})}),+ phosToast: (msg, opts) => toasts.push([msg, opts.kind]),+ document: {+ hidden:false,+ body:{appendChild:()=>{}},+ getElementById: id => { if (!nodes.has(id)) nodes.set(id, {}); return nodes.get(id); },+ createElement: () => ({select(){},remove(){}}),+ execCommand: () => copyOk,+ },+});+vm.runInContext(source, context);+(async () => {+ vm.runInContext("BENCH.shown='test';", context);+ await context.benchCopy();+ assert.equal(toasts.pop()[1], 'warning');+ copyOk = true;+ await context.benchCopy();+ assert.deepEqual(toasts.pop(), ['Results copied', 'success']);+ context.fetch = async () => {throw Error('offline');};+ await context.benchCopy();+ assert.equal(toasts.pop()[1], 'warning');+ vm.runInContext(`_bPaintSteps({steps:[{id:'warmup',label:'Engine warm-up',status:'ready'}]},+ {running:false,last_run:'test',steps:[{id:'warmup',status:'failed',reason:'engine unavailable'}]});`, context);+ assert.match(nodes.get('benchSteps').innerHTML, /engine unavailable/);+ assert.match(nodes.get('benchSteps').innerHTML, /is-failed/);+ console.log('Bench UI: clipboard failure, fallback success, offline copy, retained failure PASS');+})().catch(e => {console.error(e);process.exitCode=1;});diff --git a/speech_engine.py b/speech_engine.pynew file mode 100644index 0000000..45e3b87--- /dev/null+++ b/speech_engine.py@@ -0,0 +1,273 @@+"""Speech — text to speech in preset voices or a character's own voice.++The panel-side half of Audio → Speech. Pure logic only (no panel globals), so+it is importable and testable on its own; mlx_ltx_panel.py owns the queue+glue (run_speech_job_inner, the install task) and calls in here.++Engine: Qwen3-TTS 12 Hz 1.7B (Apache-2.0, the Qwen team) through mlx-audio+(MIT), 8-bit MLX conversions by mlx-community, in its own Python 3.12 venv+(`speech-mlx/.venv`; scripts/speech/speech_constraints.txt is the known-good+set). Two checkpoints of the same model:++ customvoice nine preset speakers + a free-text delivery instruction+ base a voice cloned from a short clip of someone speaking++Why this model: see docs/SPEECH.md ("Choosing the model"). In one line: the+only candidate that is Apache/MIT end to end, runs natively on MLX, clones+from a few seconds, AND takes emotion as words — at ~4 GB peak, so it runs on+a 16 GB Mac next to the panel.++SAFETY: cloning a voice requires the caller to confirm, per request, that the+voice is their own or that they have the speaker's permission (Phosphene's+acceptable-use policy forbids impersonation). make_job refuses a clone job+without `speech_voice_consent`; the confirmation is written into the output's+sidecar. There are no celebrity presets — the presets are the model's own+fictional speakers.+"""+from __future__ import annotations++import os+import re+from pathlib import Path++SPEECH_MIN_RAM_GB = 16.0+SPEECH_SAMPLE_RATE = 24000+SPEECH_MAX_CHARS = 2000+# Words per second of natural English read speech at Speed 1.0 — the+# dialogue-fit hint ("about 6 s") and the length estimate both use it.+WORDS_PER_SECOND = 2.8+# Measured on an M4 Max (GPU, 8-bit, 2026-10-22; docs/SPEECH.md → Memory and+# speed): a job is ~3 s of process start + model load, then 3.5–5x realtime.+EST_LOAD_SEC = 3.0+EST_SEC_PER_AUDIO_SEC = 0.25+# A lip-sync clip is one LTX window (~10 s at 24 fps, 257 frames max).+LIPSYNC_MAX_SEC = 10.0++ENV_STRIP = ("PYTORCH_ENABLE_MPS_FALLBACK", "PYTORCH_MPS_FAST_MATH")++# The model's own speakers (model card: Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice).+# Fictional voices — no real person is imitated. English speakers first.+PRESETS: tuple[dict, ...] = (+ {"id": "ryan", "label": "Ryan", "sub": "dynamic male voice, strong rhythm", "native": "English"},+ {"id": "aiden", "label": "Aiden", "sub": "sunny American male, clear midrange", "native": "English"},+ {"id": "serena", "label": "Serena", "sub": "warm, gentle young female", "native": "Chinese"},+ {"id": "vivian", "label": "Vivian", "sub": "bright, slightly edgy young female", "native": "Chinese"},+ {"id": "uncle_fu", "label": "Uncle Fu", "sub": "seasoned male, low and mellow", "native": "Chinese"},+ {"id": "dylan", "label": "Dylan", "sub": "youthful male, clear and natural", "native": "Chinese (Beijing)"},+ {"id": "eric", "label": "Eric", "sub": "lively male, slightly husky", "native": "Chinese (Sichuan)"},+ {"id": "ono_anna", "label": "Ono Anna", "sub": "playful female, light and nimble", "native": "Japanese"},+ {"id": "sohee", "label": "Sohee", "sub": "warm female, rich emotion", "native": "Korean"},+)+PRESET_IDS = frozenset(p["id"] for p in PRESETS)++# One-click delivery styles. Each is the instruction text the model reads;+# the box under them takes any other wording ("whispering, like a secret").+STYLES: tuple[dict, ...] = (+ {"id": "natural", "label": "Natural", "instruct": ""},+ {"id": "warm", "label": "Warm", "instruct": "Warm and friendly, smiling while speaking."},+ {"id": "excited", "label": "Excited", "instruct": "Very excited and energetic, fast and bright."},+ {"id": "deadpan", "label": "Deadpan", "instruct": "Dry and deadpan, flat delivery, completely serious."},+ {"id": "dramatic", "label": "Dramatic", "instruct": "Grand and theatrical, like a ringmaster announcing the show."},+ {"id": "whisper", "label": "Whisper", "instruct": "Whispering softly, close to the microphone, secretive."},+ {"id": "sad", "label": "Sad", "instruct": "Sad and quiet, slow, on the edge of tears."},+ {"id": "angry", "label": "Angry", "instruct": "Angry and sharp, forceful, clipped words."},+)+STYLE_BY_ID = {s["id"]: s for s in STYLES}++LANGUAGES = ("auto", "english", "chinese", "japanese", "korean", "german",+ "french", "russian", "portuguese", "spanish", "italian")+++class SpeechRequestError(ValueError):+ """A speech request that cannot be queued as asked (400, plain words)."""+++def _v(form: dict, key: str, default: str = "") -> str:+ v = form.get(key, default)+ if isinstance(v, list):+ v = v[0] if v else default+ return str(v if v is not None else default).strip()+++def _truthy(s: str) -> bool:+ return s.lower() in ("1", "true", "yes", "on")+++def speech_params(form: dict, normalize_path=lambda p: p) -> dict:+ """The explicit allowlist (queue construction, dispatch, replays).+ Every field a job can carry is named here; anything else is dropped."""+ text = _v(form, "speech_text").replace("\r\n", "\n")+ kind = _v(form, "speech_voice_kind", "preset")+ kind = kind if kind in ("preset", "character", "clip") else "preset"+ style_id = _v(form, "speech_style", "natural")+ style_id = style_id if style_id in STYLE_BY_ID else "natural"+ instruct = _v(form, "speech_instruct")[:300]+ try:+ speed = float(_v(form, "speech_speed", "1.0") or 1.0)+ except ValueError:+ speed = 1.0+ try:+ seed = int(_v(form, "speech_seed", "-1") or -1)+ except ValueError:+ seed = -1+ lang = _v(form, "speech_language", "english").lower()+ return {+ "mode": "speech", "engine": "speech",+ "speech_text": text[:SPEECH_MAX_CHARS + 1],+ "speech_voice_kind": kind,+ "speech_voice": _v(form, "speech_voice").lower()[:64],+ # A character id (trigger) or an uploaded clip path. Resolved and+ # checked by validate_speech(); the job stores the resolved path.+ "speech_character": _v(form, "speech_character")[:64],+ "speech_ref_audio": normalize_path(_v(form, "speech_ref_audio")),+ "speech_ref_text": _v(form, "speech_ref_text")[:600],+ "speech_style": style_id,+ "speech_instruct": instruct,+ "speech_speed": max(0.5, min(2.0, speed)),+ "speech_language": lang if lang in LANGUAGES else "english",+ "speech_seed": max(-1, min(2**31 - 1, seed)),+ "speech_title": _v(form, "speech_title")[:120],+ "speech_voice_consent": _truthy(_v(form, "speech_voice_consent")),+ }+++def instruction_for(p: dict) -> str:+ """The delivery instruction the preset model reads: the typed one wins,+ else the picked style's. Clones take none (the Base model has no+ instruction input — delivery follows the clip and the punctuation)."""+ if p.get("speech_voice_kind") != "preset":+ return ""+ return (p.get("speech_instruct") or STYLE_BY_ID.get(p.get("speech_style") or "", {}).get("instruct") or "").strip()+++def words(text: str) -> int:+ return len(re.findall(r"[\w']+", text or ""))+++def estimate(text: str, speed: float = 1.0, speed_factor: float = 1.0) -> dict:+ """Audio length from the word count, wall time from the measured rate.+ Always labelled an estimate."""+ spoken = words(text) / WORDS_PER_SECOND if text else 0.0+ # The model always speaks at its own pace; Speed is an ffmpeg tempo pass+ # afterwards, so it changes the file's length, not the time to make it.+ audio = spoken / max(0.5, speed)+ wall = (EST_LOAD_SEC + spoken * EST_SEC_PER_AUDIO_SEC) * speed_factor+ return {"audio_sec": round(audio, 1), "eta_sec": round(wall), "lipsync_fits": audio <= LIPSYNC_MAX_SEC}+++def validate_speech(p: dict, characters: list[dict]) -> dict:+ """Refuse what would render something else, before it is queued.+ Returns the params with the reference clip resolved for clone kinds."""+ text = p.get("speech_text") or ""+ if not text.strip():+ raise SpeechRequestError("Write the line to speak.")+ if len(text) > SPEECH_MAX_CHARS:+ raise SpeechRequestError(f"The script is longer than {SPEECH_MAX_CHARS} characters. Split it into shorter takes.")+ kind = p["speech_voice_kind"]+ if kind == "preset":+ if p["speech_voice"] not in PRESET_IDS:+ raise SpeechRequestError("Pick one of the voices in the list.")+ return {**p, "speech_ref_audio": "", "speech_ref_text": ""}+ # A cloned voice. The confirmation is not optional and is asked per job.+ if not p.get("speech_voice_consent"):+ raise SpeechRequestError(+ "Cloning a voice needs your confirmation that it is your own voice or that you "+ "have the speaker's permission. Tick the box under the voice, then Generate again.")+ if kind == "character":+ cid = p.get("speech_character") or ""+ ch = next((c for c in characters if c.get("id") == cid), None)+ if ch is None:+ raise SpeechRequestError(f"There is no character called {cid or '(none)'} on this Mac.")+ ref = ch.get("voice_sample") or ""+ if not ref or not Path(ref).is_file():+ raise SpeechRequestError(+ f"{ch.get('name') or cid} has no voice sample. Add one in Train, or pick a preset voice.")+ return {**p, "speech_ref_audio": ref, "speech_voice": "", "speech_character_name": ch.get("name") or cid}+ ref = p.get("speech_ref_audio") or ""+ if not ref:+ raise SpeechRequestError("Add a short clip of the voice (5 to 20 seconds of clear speech).")+ if not Path(ref).is_file():+ raise SpeechRequestError(f"There is no audio file at {ref}.")+ if Path(ref).suffix.lower() not in (".wav", ".mp3", ".m4a", ".flac", ".aac", ".ogg", ".mp4", ".mov"):+ raise SpeechRequestError("The voice clip must be an audio file (WAV, MP3, M4A or FLAC).")+ return {**p, "speech_voice": "", "speech_character": ""}+++def child_env(base: dict | None = None, path: str | None = None) -> dict:+ """The runner's env, decided rather than inherited (phosphene-release §0)."""+ env = {k: v for k, v in (base if base is not None else os.environ).items()+ if k not in ENV_STRIP and k not in ("PYTHONPATH", "PYTHONHOME", "VIRTUAL_ENV")}+ env["PYTHONUNBUFFERED"] = "1"+ env["HF_HUB_OFFLINE"] = "1" # weights are local; never fetch at render time+ env["TOKENIZERS_PARALLELISM"] = "false"+ if path is not None:+ env["PATH"] = path+ return env+++def argv(python: Path, runner: Path, models: Path, p: dict, text_file: Path, ref_audio: Path | None,+ out: Path) -> list[str]:+ kind = "preset" if p["speech_voice_kind"] == "preset" else "clone"+ cmd = [str(python), str(runner), "--pack", str(models), "--kind", kind,+ "--language", p["speech_language"], "--speed", f"{p['speech_speed']:.2f}",+ "--seed", str(p["speech_seed"]), "--text-file", str(text_file), "--out", str(out)]+ if kind == "preset":+ cmd += ["--voice", p["speech_voice"]]+ style = instruction_for(p)+ if style:+ cmd += ["--style", style]+ else:+ cmd += ["--ref-audio", str(ref_audio)]+ if p.get("speech_ref_text"):+ cmd += ["--ref-text", p["speech_ref_text"]]+ return cmd+++_LINE_RE = re.compile(r"^\[speech\] (stage|line|done|error)\s*(.*)$")+++def progress(line: str) -> dict | None:+ """Decode the runner's protocol for the Now card."""+ m = _LINE_RE.match(line.strip())+ if not m:+ return None+ kind, rest = m.group(1), m.group(2).strip()+ if kind == "stage":+ return {"phase": rest, "phase_label": {"load": "Loading the voice model",+ "write": "Writing the WAV"}.get(rest, rest), "pct": 5 if rest == "load" else 95}+ if kind == "line":+ try:+ i, n = (int(x) for x in rest.split("/"))+ except ValueError:+ return None+ return {"phase": "speak", "phase_label": f"Speaking line {i} of {n}" if n > 1 else "Speaking",+ "pct": int(10 + 80 * (i - 1) / max(1, n))}+ if kind == "done":+ return {"phase": "done", "phase_label": "Done", "pct": 100}+ return {"phase": "error", "phase_label": rest[:200], "pct": 0}+++def output_stem(p: dict, stamp: str, slug: str) -> str:+ return f"speech_{stamp}_{slug}" if slug else f"speech_{stamp}"+++def voice_label(p: dict) -> str:+ kind = p.get("speech_voice_kind")+ if kind == "preset":+ return next((x["label"] for x in PRESETS if x["id"] == p.get("speech_voice")), p.get("speech_voice") or "")+ if kind == "character":+ return p.get("speech_character_name") or p.get("speech_character") or "character"+ return "your clip"+++def voices_payload(characters: list[dict]) -> dict:+ """What the voice picker offers. Characters appear only when they carry a+ voice sample (the clip is what the model clones from)."""+ return {+ "presets": list(PRESETS),+ "styles": [{"id": s["id"], "label": s["label"], "instruct": s["instruct"]} for s in STYLES],+ "characters": [{"id": c["id"], "name": c.get("name") or c["id"],+ "has_sample": bool(c.get("voice_sample"))}+ for c in characters if c.get("voice_sample")],+ "languages": list(LANGUAGES),+ }diff --git a/storyboard_editor.py b/storyboard_editor.pyindex 9ce3c6b..6eabd14 100644--- a/storyboard_editor.py+++ b/storyboard_editor.py@@ -70,6 +70,10 @@ __all__ = ["CLIP_KINDS", "BRIGHTNESS_LIMIT","proxy_dir", "proxy_fingerprint", "proxy_name", "proxy_cmd","plan_proxies", "prune_proxies",+ "OVERLAY_PREVIEW_RECIPE_VERSION", "OVERLAY_PREVIEW_PREFIX",+ "overlay_preview_name", "overlay_preview_cmd", "plan_overlay_previews",+ "pix_fmt_has_alpha",+ "CUT_SPEC_VERSION", "CUT_FIT_SLOWEST", "edit_from_cut","peaks_path", "compute_peaks", "save_peaks", "load_peaks","clip_peaks_path", "clip_peaks", "prune_clip_peaks","edit_path", "load_edit", "save_edit", "validate_edit", "normalise_edit",@@ -1952,12 +1956,126 @@ def plan_proxies(clips, board_dir, *, width: int = PROXY_WIDTH) -> dict:stale = []if d.is_dir():for f in sorted(d.iterdir()):+ # An OVERLAY'S preview lives in the same folder (the proxy route+ # is the one door that serves this folder) but is not a clip's:+ # the clip prune must never delete it. `plan_overlay_previews`+ # prunes its own.+ if f.name.startswith(OVERLAY_PREVIEW_PREFIX):+ continueif f.is_file() and f.suffix == ".mp4" and f.name not in wanted:stale.append(f)return {"dir": d, "width": int(width), "build": build,"reuse": reuse, "stale": stale}+# ---------------------------------------------------------------------------+# OVERLAY PREVIEWS — a video on the overlay lane, in a form the stage can play+# ---------------------------------------------------------------------------+# THE DEFECT THIS CLOSES: the stage painted EVERY overlay through one <img>,+# so a video overlay (a spinning logo as a ProRes 4444 .mov with alpha, the+# normal way a branded sting arrives) was handed to `/image`, failed, and+# WebKit drew its broken-image glyph — a "?" in the middle of every frame,+# over the film, while the render composited the same file perfectly.+#+# A video overlay gets a PREVIEW COPY, made the way a clip gets its proxy:+# beside the proxies, named by the source's fingerprint, built once. Two+# recipes, decided by whether the source carries alpha:+#+# * ALPHA — HEVC with an alpha layer through VideoToolbox (`hvc1`), which is+# the transparency WebKit (the Mac app, Safari, the iPhone Remote) decodes+# natively. Measured on the SUNDAY MASS sting: 95.6 MB ProRes 4444 ->+# 4.9 MB, 64 s of 1280x720 in 5.5 s, corners decoded fully transparent in+# WebKit. A GOP of 12 keeps a seek to half a second of decode.+# * OPAQUE — the clip proxy's own all-intra H.264 recipe, picture only.+#+# The render never reads the preview: it composites the ORIGINAL, exactly as+# it always has. The preview is only ever an approximation for the stage.+OVERLAY_PREVIEW_RECIPE_VERSION = 1+OVERLAY_PREVIEW_PREFIX = "ov-"+OVERLAY_PREVIEW_GOP = "12"+OVERLAY_PREVIEW_ALPHA_QUALITY = "0.75"+OVERLAY_PREVIEW_Q = "55"+++def pix_fmt_has_alpha(pix_fmt) -> bool:+ """Does an ffprobe `pix_fmt` carry an alpha plane? (`yuva444p12le`,+ `rgba`, `bgra`, `argb`, `gbrap`, `ya8`, `pal8` is palette-alpha too.)"""+ f = str(pix_fmt or "").lower()+ if not f:+ return False+ return (f.startswith(("yuva", "gbrap", "ya")) or f in ("pal8",)+ or any(k in f for k in ("rgba", "bgra", "argb", "abgr")))+++def overlay_preview_name(src) -> str:+ """`ov-<slug>_<fingerprint>.mp4`. Same identity rule as `proxy_name`+ (path + mtime + size + recipe), its own recipe number, and the prefix+ that keeps the clip prune's hands off it."""+ p = Path(str(src))+ try:+ st = p.stat()+ mtime_ns, size = st.st_mtime_ns, st.st_size+ except OSError:+ mtime_ns, size = 0, 0+ raw = (f"{p.resolve() if p.exists() else p}\0{mtime_ns}\0{size}"+ f"\0ov{OVERLAY_PREVIEW_RECIPE_VERSION}")+ fp = hashlib.sha1(raw.encode("utf-8", "replace")).hexdigest()[:12]+ return f"{OVERLAY_PREVIEW_PREFIX}{_slug(p.stem)}_{fp}.mp4"+++def overlay_preview_cmd(ffmpeg, src, dest, *, alpha: bool,+ width: int = PROXY_WIDTH) -> list[str]:+ """The argv for ONE overlay preview. No sound either way: the overlay+ lane is picture only (the render maps no audio from it)."""+ scale = f"scale='min({int(width)},iw)':-2:flags=bicubic"+ head = [str(ffmpeg), "-y", "-v", "error", "-nostdin", "-i", str(src),+ "-map", "0:v:0", "-an", "-sn", "-dn"]+ if alpha:+ return head + [+ # bgra in, so VideoToolbox receives the alpha plane it encodes+ # into the second layer; `hvc1` is the tag WebKit insists on.+ "-vf", scale + ",format=bgra",+ "-c:v", "hevc_videotoolbox",+ "-alpha_quality", OVERLAY_PREVIEW_ALPHA_QUALITY,+ "-q:v", OVERLAY_PREVIEW_Q, "-g", OVERLAY_PREVIEW_GOP,+ "-tag:v", "hvc1", "-movflags", "+faststart", str(dest)]+ return head + [+ "-vf", scale, "-c:v", "libx264",+ "-g", "1", "-keyint_min", "1", "-sc_threshold", "0", "-bf", "0",+ "-crf", PROXY_CRF, "-preset", PROXY_PRESET, "-pix_fmt", PROXY_PIX_FMT,+ "-movflags", "+faststart", str(dest)]+++def plan_overlay_previews(overlays, board_dir) -> dict:+ """What to build, what to reuse, what is junk — for the overlay lane's+ VIDEO items only (a still is painted from its file, a title is drawn).+ Same shape as `plan_proxies`; `stale` is every `ov-` file no live video+ overlay points at."""+ d = proxy_dir(board_dir)+ build: list[dict] = []+ reuse: list[dict] = []+ wanted: set[str] = set()+ for o in overlays or []:+ if not isinstance(o, dict) or overlay_kind(o) != "video":+ continue+ raw = o.get("path")+ if not raw:+ continue+ name = overlay_preview_name(raw)+ if name in wanted:+ continue+ wanted.add(name)+ row = {"path": str(raw), "name": name, "preview": str(d / name)}+ (reuse if (d / name).is_file() else build).append(row)+ stale = []+ if d.is_dir():+ for f in sorted(d.iterdir()):+ if (f.is_file() and f.name.startswith(OVERLAY_PREVIEW_PREFIX)+ and f.name not in wanted):+ stale.append(f)+ return {"dir": d, "build": build, "reuse": reuse, "stale": stale}++def prune_proxies(stale) -> int:"""Delete the files `plan_proxies` called junk. Never raises."""n = 0@@ -2209,6 +2327,280 @@ def _clip_id(path, start: float, film_start: float) -> str:return "k" + hashlib.sha1(raw.encode("utf-8", "replace")).hexdigest()[:10]+# ---------------------------------------------------------------------------+# AN AGENT'S CUT -> A FILM IN THE EDITOR+# ---------------------------------------------------------------------------+# THE GAP THIS CLOSES: an agent (or a script) that has cut a film by hand —+# clips with in and out points, laid at film seconds, a score under them,+# a logo over them, clip sound at 0.9 — had no way to give that cut to a+# person to keep editing. Recreating SUNDAY MASS on the timeline took about+# twenty API calls (add-shot per clip, then an edit.json written by hand with+# start/end/film_start, speeds, the soundtrack window and the overlay) and+# knowledge of half a dozen document rules nobody should need.+#+# A CUT SPEC is the agent's own vocabulary — `in`, `out`, `at`, `gain` — and+# this is the one place it becomes an edit document. Pure: no disk, no+# ffmpeg. The caller probes the media and passes the durations, so the rules+# below are testable with numbers alone.+#+# {"phosphene_cut": 1, "title": "SUNDAY MASS", "fps": 24,+# "clips": [{"path", "in", "out"?, "at"?, "length"?, "speed"?, "gain"?,+# "title"?}],+# "clip_gain": 0.9, # default for every clip+# "clip_fades": [0.04, 0.06], # sound fade in/out, every clip+# (a clip row also takes "mute": true, "fade_in", "fade_out")+# "soundtrack": {"path", "at"?, "in"?, "out"?, "gain"?},+# "overlays": [{"path", "at", "end", "in"?} | {"text", "at", "end", ...}],+# "sounds": [{"path", "at", "in"?, "out"?, "gain"?, "title"?}]}+#+# THE SLOT RULE is the one an assembler like `cut.py` uses: a clip plays from+# its `at` to the NEXT clip's `at` (the last one for its `length`, else its+# own material). Times snap to whole frames, so every cut is a frame boundary+# and two neighbours always touch — no sub-frame holes for the heal to find.+# `out`, when given, caps the material; the take's own length always does.+#+# WHEN A SLOT IS LONGER THAN ITS MATERIAL (a talking shot whose silent head+# was skipped, a slot rounded up), an assembler holds the last frame. The+# timeline has no "hold"; it has speed. Down to CUT_FIT_SLOWEST the clip is+# slowed to fill its slot exactly (the render's setpts + atempo, the+# preview's playbackRate — the same retime a person would make), and the+# note says so. Past that the clip keeps its material and the slot ends+# early, which the editor shows as a hole: honest, visible, fixable.+CUT_SPEC_VERSION = 1+CUT_FIT_SLOWEST = 0.9+++def edit_from_cut(spec, durations: dict, *, board_id: str = "") -> dict:+ """`{"edit": <edit.json>, "notes": [str], "errors": [str]}` from a cut spec.++ `durations` maps every media path in the spec to its probed length in+ seconds (a path the caller could not probe is absent, and is an error).+ `errors` non-empty means do not save: the edit is incomplete.+ """+ errors: list[str] = []+ notes: list[str] = []+ sp = spec if isinstance(spec, dict) else {}+ fps = _f(sp.get("fps"), 0.0) or float(NLE_FPS)+ frame = 1.0 / fps++ def snap(t: float) -> float:+ return round(round(_f(t) * fps) / fps, 6)++ rows = sp.get("clips")+ if not isinstance(rows, list) or not rows:+ return {"edit": None, "notes": notes,+ "errors": ["the cut has no clips"]}+ default_gain = _f(sp.get("clip_gain"), 1.0)+ cf = sp.get("clip_fades")+ if isinstance(cf, (list, tuple)) and len(cf) == 2:+ default_fades = (max(0.0, _f(cf[0])), max(0.0, _f(cf[1])))+ else:+ default_fades = (0.0, 0.0)+ have_at = all(isinstance(r, dict) and r.get("at") is not None for r in rows)+ order = list(range(len(rows)))+ if have_at:+ order.sort(key=lambda i: _f(rows[i].get("at")))+ clips: list[dict] = []+ cursor = 0.0+ for pos, i in enumerate(order):+ r = rows[i] if isinstance(rows[i], dict) else {}+ who = f"clip {i + 1}"+ path = str(r.get("path") or "").strip()+ if not path:+ errors.append(f"{who}: needs a path")+ continue+ if _looks_like_a_still(path):+ # A STILL holds for its slot: no in-point, no speed, no sound.+ fs = snap(r.get("at")) if have_at else snap(cursor)+ nxt = order[pos + 1] if pos + 1 < len(order) else None+ if have_at and nxt is not None:+ fe = snap(rows[nxt].get("at"))+ else:+ fe = snap(fs + max(frame, _f(r.get("length"), 3.0)))+ if fe - fs < frame - 1e-9:+ errors.append(f"{who}: its slot is shorter than one frame")+ continue+ clip = new_clip(path, 0.0, round(fe - fs, 6), fs, source="human",+ title=str(r.get("title") or Path(path).stem)[:80],+ kind="still", duration=None)+ clips.append(clip)+ cursor = fe+ continue+ dur = durations.get(path)+ if not dur or _f(dur) <= 0:+ errors.append(f"{who}: {Path(path).name} could not be read")+ continue+ dur = _f(dur)+ speed = max(SPEED_MIN, min(SPEED_MAX, _f(r.get("speed"), 1.0) or 1.0))+ t_in = max(0.0, _f(r.get("in")))+ if t_in >= dur - frame:+ errors.append(f"{who}: in-point {t_in:g}s is past the end of "+ f"{Path(path).name} ({dur:g}s)")+ continue+ material_end = dur+ if r.get("out") is not None:+ material_end = min(dur, max(t_in + frame, _f(r.get("out"))))+ fs = snap(r.get("at")) if have_at else snap(cursor)+ # The slot: to the next clip's `at`, else this clip's `length`, else+ # its own material at its speed.+ nxt = order[pos + 1] if pos + 1 < len(order) else None+ if have_at and nxt is not None:+ fe = snap(rows[nxt].get("at"))+ elif r.get("length") is not None:+ fe = snap(fs + _f(r.get("length")))+ else:+ fe = snap(fs + (material_end - t_in) / speed)+ if fe - fs < frame - 1e-9:+ errors.append(f"{who}: its slot is shorter than one frame")+ continue+ want = (fe - fs) * speed+ avail = material_end - t_in+ title = str(r.get("title") or Path(path).stem)[:80]+ if want > avail + 1e-6:+ fit = math.floor(avail / (fe - fs) * 1e6) / 1e6+ if fit >= CUT_FIT_SLOWEST * speed - 1e-9 and fit >= SPEED_MIN:+ notes.append(f"{title}: {avail:.2f}s of picture for a "+ f"{fe - fs:.2f}s slot, slowed to {fit:g}x to fill it")+ speed = fit+ want = (fe - fs) * speed+ else:+ short = round(fe - fs - avail / speed, 3)+ notes.append(f"{title}: only {avail:.2f}s of picture for a "+ f"{fe - fs:.2f}s slot; it ends {short:g}s early "+ f"(a hole on the timeline)")+ fe = snap(fs + avail / speed)+ if fe - fs > avail / speed + 1e-6:+ fe = round(fe - frame, 6)+ want = (fe - fs) * speed+ end = min(round(t_in + want, 6), material_end)+ clip = new_clip(path, t_in, end, fs, source="human",+ title=title, duration=round(dur, 6))+ clip["film_end"] = round(fe, 6)+ if abs(speed - 1.0) > 1e-6:+ clip["speed"] = round(speed, 6)+ g = _f(r.get("gain"), default_gain) if r.get("gain") is not None \+ else default_gain+ g = max(0.0, min(1.0, g))+ afx: dict = {}+ if abs(g - 1.0) > 1e-6:+ # A LEVEL IS A FLAT ENVELOPE — the one curve the preview, the+ # render and the export all read (`audio_gain_points`).+ afx["points"] = [[0.0, round(g, 6)]]+ # EDGE FADES, the assembler's 40/60 ms: a clip's own sound starting+ # or stopping on a hard cut is a click, and an agent that faded its+ # edges must hand over a timeline that does too.+ for key, dflt in (("fade_in", default_fades[0]),+ ("fade_out", default_fades[1])):+ v = max(0.0, _f(r.get(key), dflt) if r.get(key) is not None+ else dflt)+ if v > 1e-9:+ afx[key] = round(v, 6)+ if afx:+ clip["afx"] = afx+ # MUTE drops the take's own sound (a lip-sync shot whose voice is+ # already in the score: two copies phase and clip). The document's+ # own clip mute, so the preview, the render and the export agree.+ if r.get("mute") is True:+ clip["mute"] = True+ clips.append(clip)+ cursor = fe+ for k, c in enumerate(clips):+ c["n"] = k + 1+ edit = {"version": EDIT_VERSION, "board_id": str(board_id or ""),+ "revision": 0, "origin": "manual", "fps": fps,+ "clips": clips, "beats": None, "settings": {},+ # Stamped current: this document was written today, with every+ # level on it chosen, so neither one-time heal has anything to do+ # (the mix heal would otherwise put the legacy 0.20 bed back).+ "audio_repair": AUDIO_REPAIR_VERSION,+ "mix_repair": MIX_REPAIR_VERSION}++ st = sp.get("soundtrack")+ if isinstance(st, dict) and st.get("path"):+ path = str(st["path"])+ dur = _f(durations.get(path))+ if dur <= 0:+ errors.append(f"soundtrack: {Path(path).name} could not be read")+ else:+ at, t_in = max(0.0, _f(st.get("at"))), max(0.0, _f(st.get("in")))+ aud = {"path": path, "duration": round(dur, 6),+ # `offset` is the track second at film zero; a late+ # entrance is a negative one (silence in front).+ "offset": round(t_in - at, 6), "mode": "under",+ "mix": {"bed_gain": round(max(0.0, min(1.0, _f(+ st.get("gain"), 1.0))), 6), "duck": False}}+ if t_in > 0:+ aud["trim_start"] = round(t_in, 6)+ if st.get("out") is not None and _f(st.get("out")) < dur:+ aud["trim_end"] = round(max(t_in, _f(st.get("out"))), 6)+ edit["audio"] = aud+ else:+ edit["audio"] = {}++ ovs = []+ for j, o in enumerate(sp.get("overlays") or []):+ if not isinstance(o, dict):+ continue+ at = snap(o.get("at"))+ endf = snap(o.get("end")) if o.get("end") is not None else None+ if o.get("text"):+ if endf is None or endf <= at:+ errors.append(f"overlay {j + 1}: a title needs an end after its start")+ continue+ row = {"id": f"ov{j + 1}", "kind": "text", "text": str(o["text"])[:400],+ "film_start": at, "film_end": endf, "source": "human"}+ if isinstance(o.get("style"), dict):+ row["style"] = dict(o["style"])+ ovs.append(row)+ continue+ path = str(o.get("path") or "")+ dur = _f(durations.get(path))+ if not path or dur <= 0:+ errors.append(f"overlay {j + 1}: {Path(path).name or 'no file'} "+ f"could not be read")+ continue+ kind = overlay_kind({"path": path, "kind": o.get("kind")})+ t_in = max(0.0, _f(o.get("in")))+ if endf is None:+ endf = snap(at + max(frame, dur - t_in))+ row = {"id": f"ov{j + 1}", "kind": kind, "path": path,+ "film_start": at, "film_end": endf,+ "start": round(t_in, 6), "end": round(t_in + (endf - at), 6),+ "source": "human", "locked": False}+ ovs.append(row)+ if ovs:+ edit["overlays"] = ovs++ strips = []+ for j, a in enumerate(sp.get("sounds") or []):+ if not isinstance(a, dict) or not a.get("path"):+ continue+ path = str(a["path"])+ dur = _f(durations.get(path))+ if dur <= 0:+ errors.append(f"sound {j + 1}: {Path(path).name} could not be read")+ continue+ t_in = max(0.0, _f(a.get("in")))+ t_out = min(dur, _f(a.get("out"), dur)) if a.get("out") is not None else dur+ if t_out - t_in < frame:+ errors.append(f"sound {j + 1}: shorter than one frame")+ continue+ s2 = {"id": f"snd{j + 1}", "path": path, "start": round(t_in, 6),+ "end": round(t_out, 6), "film_start": snap(a.get("at")),+ "duration": round(dur, 6),+ "title": str(a.get("title") or Path(path).stem)[:80]}+ g = _f(a.get("gain"), 1.0)+ if abs(g - 1.0) > 1e-6:+ s2["gain"] = round(max(0.0, min(1.0, g)), 6)+ strips.append(s2)+ if strips:+ edit["audio_tracks"] = [{"id": "trk_cut", "name": "Sounds",+ "strips": strips}]+ edit["duration"] = round(max([c["film_end"] for c in clips] or [0.0]), 6)+ return {"edit": edit if not errors else None, "notes": notes,+ "errors": errors}++def edit_from_plan(plan, *, board_id: str = "", audio: dict | None = None,beats: dict | None = None, proxies: dict | None = None,settings: dict | None = None,@@ -2955,10 +3347,15 @@ def validate_edit(edit) -> list[dict]:bad(f"overlay_{key}_range",f"overlay {j + 1}: fx.{key} must be >= 0")if ofe > ofs:- ospans.append((ofs, ofe, j))+ ospans.append((overlay_kind(o) == "text", ofs, ofe, j))+ # ONE LANE PER LAYER (2 Nov). A title may sit over a picture overlay+ # (a logo bug that runs the whole film is where titles have to go);+ # two pictures, or two titles, may still never share a second. The+ # render composites every title after every picture, so a title is+ # always on top.ospans.sort()- for (a_s, a_e, a_i), (b_s, b_e, b_i) in zip(ospans, ospans[1:]):- if b_s < a_e - TOUCH_TOLERANCE:+ for (a_t, a_s, a_e, a_i), (b_t, b_s, b_e, b_i) in zip(ospans, ospans[1:]):+ if a_t == b_t and b_s < a_e - TOUCH_TOLERANCE:bad("overlays_overlap",f"overlays {a_i + 1} and {b_i + 1} overlap "f"({a_s:.3f}-{a_e:.3f}s and {b_s:.3f}-{b_e:.3f}s) — one "@@ -4165,18 +4562,62 @@ def quantise_gap(gap: float, frame: float) -> float:return 0.0 if g < frame - 1e-9 else round(g, 9)-def heal_subframe_gaps(edit: dict) -> list[dict]:- """Close every sub-frame hole, rippling what follows. Mutates `edit`.+# THE MOST A SHORT CLIP IS SLOWED TO FILL ITS OWN SLOT (2 Nov). A clip whose+# take runs out a hair before its slot ends is held to the slot by playing+# its source fractionally slower — the parity test on SUNDAY MASS measured+# the 3 % the editor already applied to three short shots as inaudible and+# invisible. Beyond this the clip is left as it was rather than stretched.+SLOT_FIT_MAX_SLOW = 0.10- Returns one row per hole closed, so a caller can say what it did. A LOCKED- clip is an anchor and is never moved — the hole before it stays, because- the alternative is honouring a pin by breaking it — and the ripple restarts- from there so nothing downstream of an anchor inherits a shift the anchor- did not take.- An unlinked sound strip travels with its picture by the SAME delta, so a- J-cut's offset is exactly what it was: `clip_audio_drift` is a difference- of two constants and moving both by one number leaves it alone.+def _fit_slot(c: dict, film_start: float, film_end: float) -> bool:+ """Make clip `c` fill exactly [film_start, film_end) on the film WITHOUT+ touching any other clip. The source start never moves; the tail grows or+ shrinks, and a video whose take has no more source is slowed (at most+ SLOT_FIT_MAX_SLOW) instead. Returns False, changing nothing, when the+ slot cannot be filled that way. Stills and slugs take any slot."""+ fs, fe = float(film_start), float(film_end)+ if fe - fs <= 1e-9:+ return False+ if clip_kind(c) != "video":+ c["film_start"], c["film_end"] = round(fs, 6), round(fe, 6)+ c["end"] = round(max(0.0, fe - fs), 6)+ return True+ sp = clip_speed(c)+ st = _f(c.get("start"))+ want_end = st + (fe - fs) * sp+ dur = c.get("duration")+ if isinstance(dur, (int, float)) and dur > 0 and want_end > float(dur) + 1e-6:+ avail = float(dur) - st+ new_sp = avail / (fe - fs)+ if avail <= 0 or new_sp < sp * (1.0 - SLOT_FIT_MAX_SLOW) - 1e-9:+ return False+ c["speed"] = round(new_sp, 6)+ want_end = float(dur)+ c["end"] = round(want_end, 6)+ c["film_start"], c["film_end"] = round(fs, 6), round(fe, 6)+ return True+++def heal_subframe_gaps(edit: dict) -> list[dict]:+ """Close every sub-frame hole WITHOUT MOVING ANYTHING AFTER IT. Mutates+ `edit`. Returns one row per hole closed, so a caller can say what it did.++ A hole under one frame is closed by the clip BEFORE it reaching across it+ (its tail grows, or it plays fractionally slower when its take has no+ more source: `_fit_slot`). Nothing downstream moves.++ WHY NOT RIPPLE (2 Nov). This used to close the hole by pulling every later+ clip earlier, and the shift accumulated: on SUNDAY MASS three takes that+ came out a hair short slid the lip-sync shots off their music cues, 39.0 s+ to 38.917 s and 55.0 s to 54.908 s — two frames, enough to see the mouth+ miss the voice. A cut placed on the music must stay on the music.++ When the clip before cannot reach (no source left even slowed 10 %), the+ clip after the hole moves back by the sub-frame amount ALONE, its tail+ held where it was — again nothing else moves. A LOCKED clip is never+ moved or resized from its start; it may still grow its tail to close a+ hole behind it, which does not move it."""if not isinstance(edit, dict):return []@@ -4184,29 +4625,41 @@ def heal_subframe_gaps(edit: dict) -> list[dict]:clips.sort(key=lambda c: _f(c.get("film_start")))frame = frame_seconds(edit)closed: list[dict] = []- cursor, delta = 0.0, 0.0+ prev = None+ cursor = 0.0for i, c in enumerate(clips):- length = _f(c.get("film_end")) - _f(c.get("film_start"))- if c.get("locked"):- # An anchor does not move, so nothing after it is carrying a shift.- cursor = max(cursor, _f(c.get("film_end")))- delta = 0.0- continue- fs = _f(c.get("film_start")) - delta+ fs = _f(c.get("film_start"))gap = fs - cursor- if 1e-9 < gap < frame - 1e-9:- closed.append({"after": i - 1, "film_start": round(cursor, 6),- "duration": round(gap, 6),- "frames": round(gap / frame, 4)})- delta += gap- fs = cursor- if delta > 1e-9:- c["film_start"] = round(fs, 6)- c["film_end"] = round(fs + length, 6)- aud = c.get("audio")- if isinstance(aud, dict) and aud.get("film_start") is not None:- aud["film_start"] = round(_f(aud.get("film_start")) - delta, 6)- cursor = _f(c.get("film_end"))+ # A hole right before a LOCKED clip is left alone, as it always was:+ # the lock may sit between frames, and the length heal stops the clip+ # before it on the last whole frame on purpose (heal_subframe_lengths).+ if 1e-9 < gap < frame - 1e-9 and not c.get("locked"):+ row = {"after": i - 1, "film_start": round(cursor, 6),+ "duration": round(gap, 6), "frames": round(gap / frame, 4)}+ done = False+ if prev is not None:+ done = _fit_slot(prev, _f(prev.get("film_start")), fs)+ if not done:+ fe = _f(c.get("film_end"))+ was = dict(c)+ # The clip after the hole starts earlier by the hole, keeping+ # its own tail: its source start moves back when it can.+ sp = clip_speed(c)+ st = _f(c.get("start"))+ if clip_kind(c) != "video" or st - gap * sp >= -1e-9:+ if clip_kind(c) == "video":+ c["start"] = round(max(0.0, st - gap * sp), 6)+ c["film_start"] = round(cursor, 6)+ c["film_end"] = round(fe, 6)+ if clip_kind(c) != "video":+ c["end"] = round(fe - cursor, 6)+ done = True+ else:+ c.clear(); c.update(was)+ if done:+ closed.append(row)+ prev = c+ cursor = max(cursor, _f(c.get("film_end")))return closed@@ -4266,83 +4719,66 @@ def heal_subframe_lengths(edit: dict) -> list[dict]:# magnitude larger (up to half a frame, ~20 ms at 24 fps).NOISE = 1e-4- def _plan(run: list[dict], floor: bool) -> list[tuple]:- """What healing `run` would do, WITHOUT touching it: one row per- clip — (clip, new source end or None, film start, film length,- length change, frames, old length, old start)."""- rows: list[tuple] = []- shift = 0.0- for c in run:- fs0, fe0 = _f(c.get("film_start")), _f(c.get("film_end"))- length = fe0 - fs0- if length <= 0:- continue- if floor:- frames = max(1, math.floor(length / frame + NOISE / frame))- else:- frames = max(1, round(length / frame))- length_q = frames * frame- d = length_q - length- new_end = None- # NEVER PAST THE TAKE'S OWN END. A correction that would ask for- # source the file does not have is skipped rather than clamped — a- # clamp would silently leave the stored film length and the source- # window disagreeing by the very sub-frame amount this pass exists- # to remove. Skipping costs nothing downstream: `shift` (below)- # still carries whatever earlier clips already corrected, so this- # clip's POSITION stays right even when its own length does not.- if abs(d) > NOISE and clip_kind(c) == "video":- sp = clip_speed(c)- ne = _f(c.get("start")) + length_q * sp- dur = c.get("duration")- if isinstance(dur, (int, float)) and dur > 0 and ne > float(dur) + 1e-6:- d, length_q = 0.0, length- else:- new_end = ne- rows.append((c, new_end, fs0 + shift, length_q, d, frames, length, fs0))- shift += d- return rows-- # A LOCKED CLIP IS AN ANCHOR, and the clips between two anchors are one- # run: their corrections accumulate as a `shift` that moves everything- # after them in the run, and the next anchor does not move. EDITOR-3- # (Codex 4.17.0): that shift used to be reset at the anchor WITHOUT ever- # being checked against it, so two 0.98 s clips before a clip locked at- # 1.96 s (24 fps) each grew to 1.0 s and the second one ran 40 ms INTO- # the locked clip — a `clips_overlap` document, written by Save after- # validation had passed, that the render then refused. A run whose- # rounded-to-nearest lengths would cross the next anchor is healed by- # rounding DOWN instead: every length change is then ≤ 0, so nothing in- # the run moves later and nothing can reach the anchor.+ # ON THE FILM'S OWN FRAME GRID, NOT A RUNNING SHIFT (2 Nov). Each clip's+ # two edges are rounded to the nearest frame of the FILM's clock, so a+ # cut moves by at most half a frame and never by the sum of the+ # corrections before it. The old pass rounded each LENGTH and slid every+ # later clip by the running total: on SUNDAY MASS three takes a hair+ # short pulled the lip-sync shots two frames off their music cues.+ # Two clips that touched still touch (the same number rounds the same+ # way). A clip whose take cannot reach its rounded tail is held to it by+ # playing fractionally slower (`_fit_slot`); past SLOT_FIT_MAX_SLOW its+ # tail rounds DOWN instead, leaving one frame of black, never a shift.+ # A LOCKED clip is not rounded at all and nothing may cross into it.+ def q(t: float) -> float:+ return round(round(t / frame) * frame, 6)+fixed: list[dict] = []- runs: list[tuple[list[dict], float | None]] = []- cur: list[dict] = []- for c in clips:+ order = clips+ for i, c in enumerate(order):if c.get("locked"):- runs.append((cur, _f(c.get("film_start"))))- cur = []- else:- cur.append(c)- runs.append((cur, None))- for run, anchor in runs:- if not run:continue- rows = _plan(run, floor=False)- if anchor is not None and rows and \- max(r[2] + r[3] for r in rows) > max(anchor, max(r[7] + r[6] for r in rows)) + NOISE:- rows = _plan(run, floor=True)- for c, new_end, fs, length_q, d, frames, length, fs0 in rows:- if new_end is not None:- c["end"] = round(new_end, 6)- if abs(d) > NOISE:- fixed.append({"id": c.get("id"), "was": round(length, 6),- "now": round(length_q, 6), "frames": frames})- if abs(fs - fs0) > NOISE or abs(d) > NOISE:- c["film_start"] = round(fs, 6)- c["film_end"] = round(fs + length_q, 6)- aud = c.get("audio")- if isinstance(aud, dict) and aud.get("film_start") is not None:- aud["film_start"] = round(_f(aud.get("film_start")) + (fs - fs0), 6)+ fs0, fe0 = _f(c.get("film_start")), _f(c.get("film_end"))+ length = fe0 - fs0+ if length <= 0:+ continue+ fs, fe = q(fs0), q(fe0)+ prev_end = max([_f(x.get("film_end")) for x in order[:i]] or [0.0])+ if fs < prev_end - NOISE:+ fs = prev_end+ nxt = order[i + 1] if i + 1 < len(order) else None+ if nxt is not None and nxt.get("locked"):+ # Never into a locked clip; and on the grid even when the lock+ # itself sits between frames (its own position is not ours to+ # round), so the tail stops at the last frame before it.+ anchor = _f(nxt.get("film_start"))+ fe = min(fe, round(math.floor(anchor / frame + NOISE / frame) * frame, 6))+ if fe - fs < frame - NOISE:+ fe = fs + frame+ if nxt is not None and fe > _f(nxt.get("film_start")) + NOISE:+ continue # no room for even one frame: leave it+ if abs(fs - fs0) <= NOISE and abs(fe - fe0) <= NOISE:+ continue+ was = dict(c)+ if not _fit_slot(c, fs, fe):+ # The take is too short even slowed: round the tail DOWN to the+ # last whole frame it can reach. One frame of black at most.+ sp = clip_speed(c)+ dur = c.get("duration")+ avail = (float(dur) - _f(c.get("start"))) / sp if isinstance(dur, (int, float)) and dur > 0 else length+ frames_ok = math.floor((min(avail, fe - fs) + NOISE) / frame)+ if frames_ok < 1 or not _fit_slot(c, fs, fs + frames_ok * frame):+ c.clear(); c.update(was)+ continue+ d = (_f(c.get("film_start")) - fs0)+ aud = c.get("audio")+ if isinstance(aud, dict) and aud.get("film_start") is not None and abs(d) > NOISE:+ aud["film_start"] = round(_f(aud.get("film_start")) + d, 6)+ new_len = _f(c.get("film_end")) - _f(c.get("film_start"))+ if abs(new_len - length) > NOISE or abs(d) > NOISE:+ fixed.append({"id": c.get("id"), "was": round(length, 6),+ "now": round(new_len, 6),+ "frames": int(round(new_len / frame))})return fixeddiff --git a/subtitles.py b/subtitles.pynew file mode 100644index 0000000..bb1868c--- /dev/null+++ b/subtitles.py@@ -0,0 +1,652 @@+"""Subtitles - captions for a clip or a cut, timed to the audio.++Phosphene usually KNOWS the words: an H3 prompt carries its dialogue in+`<d>[English] ...</d>`, an LTX prompt in `says, "..."`, a music job carries its+lyrics. So the words come from the script and only the timing comes from the+audio. Whisper (large-v3-turbo on MLX) is the ear: it hears the clip with word+times, the script's words are matched to what it heard, and each script line is+then snapped to the audio by forced alignment (Whisper's own cross-attention,+fed the known words, the same model, no second download). A line Whisper did+not hear at all (a sung line under loud music) is still placed: it is aligned+inside the gap between the lines around it. A clip with no script falls back to+Whisper's own words.++Pure logic + a CLI; the panel calls it in a subprocess of an env that has+mlx_whisper (`python subtitles.py make CLIP --prompt-file .. --out ..`).++ make clip -> cues.json + .srt + .vtt (+ --burn out.mp4)+ burn clip + cues.json -> out.mp4 (libass when ffmpeg has it, else cards)+"""+from __future__ import annotations++import argparse+import difflib+import json+import os+import re+import shutil+import subprocess+import sys+import time+import unicodedata+from dataclasses import asdict, dataclass, field+from pathlib import Path++MODEL = os.environ.get("PHOSPHENE_SUBS_MODEL", "mlx-community/whisper-large-v3-turbo")+SR = 16000+MAX_CHARS = 42 # per caption row (Netflix-style limit)+MIN_CUE = 1.0 # s; a shorter cue is held longer when there is room+HOLD = 0.35 # s after the last word, so the eye can finish reading+LEAD = 0.08 # s before the first word++# ---------------------------------------------------------------- the script++_D_TAG = re.compile(r"<d>\s*(?:\[([^\]]{1,24})\])?\s*(.*?)\s*</d>", re.S | re.I)+_SAYS = re.compile(+ r"\b(says|said|asks|asked|replies|whispers|shouts|calls|announces|murmurs|mutters|sings|sang|chants)\b"+ r"[^\"“]{0,48}[\"“]([^\"”]{1,400})[\"”]", re.I)+# the same, single-quoted: "sings the words 'He was soft, so we could be hard'"+_SAYS1 = re.compile(+ r"\b(says|said|asks|asked|replies|whispers|shouts|calls|announces|murmurs|mutters|sings|sang|chants)\b"+ r"[^\"'\u2018\u201c]{0,48}(?<![A-Za-z])['\u2018]([^'\u2019]{1,400})['\u2019](?=[\s,.;:!?)]|$)", re.I)+_SECTION = re.compile(r"^\s*[\[(][^\])]*[\])]\s*$")+++@dataclass+class Line:+ text: str+ kind: str = "say" # say | song+ lang: str | None = None # from <d>[Latin]+ translation: str | None = None+++def script_from_prompt(prompt: str) -> list[Line]:+ """Dialogue lines in prompt order. H3 `<d>[Lang] text</d>` first; else LTX+ `he says, "text"`. A sung verb marks the line as a song."""+ out: list[Line] = []+ for lang, text in _D_TAG.findall(prompt or ""):+ text = " ".join(text.split())+ if text:+ out.append(Line(text, "say", (lang or "").strip() or None))+ if out:+ return out+ found = sorted([(m.start(), m.group(1), m.group(2)) for rx in (_SAYS, _SAYS1) for m in rx.finditer(prompt or "")])+ for _, verb, text in found:+ text = " ".join(text.split())+ if text:+ out.append(Line(text, "song" if verb.lower() in ("sings", "sang", "chants") else "say"))+ return out+++def script_from_lyrics(lyrics: str, translations: dict | None = None) -> list[Line]:+ """Lyrics -> one song line per sung line; [Verse] tags and blank lines go."""+ out = []+ for raw in (lyrics or "").splitlines():+ t = raw.strip()+ if not t or _SECTION.match(t):+ continue+ out.append(Line(t, "song", translation=(translations or {}).get(t)))+ return out+++# ---------------------------------------------------------------- matching+++def norm(w: str) -> str:+ w = unicodedata.normalize("NFKD", w)+ return re.sub(r"[^a-z0-9']", "", "".join(c for c in w if not unicodedata.combining(c)).lower())+++def _sim(a: str, b: str) -> float:+ if a == b:+ return 1.0+ if not a or not b:+ return 0.0+ return difflib.SequenceMatcher(None, a, b).ratio()+++def match_words(script: list[str], heard: list[str]) -> list[int | None]:+ """For each script word, the index of the heard word it is, or None.+ LOCAL alignment (Smith-Waterman): free skips at both ends of BOTH sides,+ because a clip may hold more audio than its script and a cut may use only+ part of a song's lyrics (the verse, not the chorus). Gaps inside cost a+ little; fuzzy word similarity lets 'proxies'/'proxy', 'wi-fi'/'wifi' match.+ Below that, one stretch of the script is matched; `match_all` repeats it+ on what is left so two separate heard passages both land."""+ n, m = len(script), len(heard)+ out: list[int | None] = [None] * n+ if not n or not m:+ return out+ GAP = -0.35+ S = [[0.0] * (m + 1) for _ in range(n + 1)]+ B = [[0] * (m + 1) for _ in range(n + 1)] # 0 stop, 1 diag, 2 up, 3 left+ best, bi, bj = 0.0, 0, 0+ for i in range(1, n + 1):+ a = script[i - 1]+ for j in range(1, m + 1):+ sm = _sim(a, heard[j - 1])+ d = S[i - 1][j - 1] + (2.0 * sm - 0.8 if sm >= 0.55 else -1.0)+ u, l = S[i - 1][j] + GAP, S[i][j - 1] + GAP+ v, k = max((0.0, 0), (d, 1), (u, 2), (l, 3))+ S[i][j], B[i][j] = v, k+ if v > best:+ best, bi, bj = v, i, j+ i, j = bi, bj+ while i > 0 and j > 0 and B[i][j]:+ k = B[i][j]+ if k == 1:+ if _sim(script[i - 1], heard[j - 1]) >= 0.55:+ out[i - 1] = j - 1+ i, j = i - 1, j - 1+ elif k == 2:+ i -= 1+ else:+ j -= 1+ return out+++def match_all(script: list[str], heard: list[str]) -> list[int | None]:+ """match_words, then again on the script words before and after the+ matched stretch against the heard words before and after it."""+ out = match_words(script, heard)+ hit = [k for k, v in enumerate(out) if v is not None]+ if not hit:+ return out+ k0, k1 = hit[0], hit[-1]+ h0, h1 = out[k0], out[k1]+ if k0 > 0 and h0 > 0:+ left = match_all(script[:k0], heard[:h0])+ out[:k0] = left+ if k1 + 1 < len(script) and h1 + 1 < len(heard):+ right = match_all(script[k1 + 1:], heard[h1 + 1:])+ out[k1 + 1:] = [None if v is None else v + h1 + 1 for v in right]+ return out+++# ---------------------------------------------------------------- the ear+++class Ear:+ """Whisper on MLX: transcribe with word times, and force-align known text."""++ def __init__(self, model: str = MODEL):+ import mlx.core as mx+ import mlx_whisper+ from mlx_whisper import audio as wa+ from mlx_whisper.load_models import load_model+ from mlx_whisper.tokenizer import get_tokenizer+ self.mx, self.mw, self.wa = mx, mlx_whisper, wa+ self.repo = model+ t = time.time()+ self.model = load_model(model, dtype=mx.float16)+ self.load_s = time.time() - t+ self._tok = {}+ self._get_tokenizer = get_tokenizer++ def tokenizer(self, lang: str | None):+ key = lang or "en"+ if key not in self._tok:+ self._tok[key] = self._get_tokenizer(self.model.is_multilingual, num_languages=self.model.num_languages,+ language=key, task="transcribe")+ return self._tok[key]++ def hear(self, audio, language: str | None = None) -> tuple[list[dict], str]:+ """Words with times. No initial_prompt: feeding the script as a prompt+ made it loop ("66.32 66.32 ...") on SUNDAY MASS; the silence threshold+ stops it inventing words in the gaps."""+ from mlx_whisper.transcribe import ModelHolder+ ModelHolder.model, ModelHolder.model_path = self.model, self.repo # reuse, no reload+ r = self.mw.transcribe(audio, path_or_hf_repo=self.repo, word_timestamps=True, language=language,+ condition_on_previous_text=False, hallucination_silence_threshold=2.0,+ temperature=(0.0, 0.2, 0.4), fp16=True)+ words = [{"w": w["word"].strip(), "s": float(w["start"]), "e": float(w["end"]), "p": float(w.get("probability", 0))}+ for seg in r.get("segments", []) for w in seg.get("words", []) if w["word"].strip()]+ return words, r.get("language") or language or "en"++ def force(self, audio, t0: float, t1: float, text: str, lang: str | None) -> list[dict]:+ """Word times of KNOWN text inside [t0, t1] (seconds). Whisper's+ alignment heads over the decoder fed the given tokens, then DTW: the+ same method its own word timestamps use, but on our words."""+ import numpy as np+ from mlx_whisper.timing import find_alignment+ wa, mx = self.wa, self.mx+ a0, a1 = max(0, int(t0 * SR)), min(len(audio), int(t1 * SR))+ seg = audio[a0:a1]+ if len(seg) < SR * 0.2:+ return []+ n_frames = len(seg) // wa.HOP_LENGTH+ mel = wa.log_mel_spectrogram(np.asarray(seg, dtype=np.float32), n_mels=self.model.dims.n_mels,+ padding=wa.N_SAMPLES)+ mel = wa.pad_or_trim(mel, wa.N_FRAMES, axis=-2).astype(mx.float16)+ tok = self.tokenizer(lang)+ toks = tok.encode(" " + text.strip())+ al = find_alignment(self.model, tok, toks, mel, min(n_frames, wa.N_FRAMES))+ return [{"w": a.word.strip(), "s": t0 + float(a.start), "e": t0 + float(a.end), "p": float(a.probability)}+ for a in al if a.word.strip()]+++def load_audio(path: str):+ import numpy as np+ raw = subprocess.run(["ffmpeg", "-nostdin", "-v", "error", "-i", str(path), "-vn", "-ac", "1", "-ar", str(SR),+ "-f", "s16le", "-"], capture_output=True, check=True).stdout+ return np.frombuffer(raw, np.int16).astype(np.float32) / 32768.0+++# ---------------------------------------------------------------- cues+++@dataclass+class Cue:+ start: float+ end: float+ text: str+ kind: str = "say"+ translation: str | None = None+ source: str = "script" # script | heard+ sure: bool = True # False: placed in a gap, not confirmed by the ear+ words: list = field(default_factory=list)+++def _spans(lines, sw, owner, idx, heard):+ out = []+ for li in range(len(lines)):+ hits = [heard[idx[k]] for k in range(len(sw)) if owner[k] == li and idx[k] is not None]+ nwords = sum(1 for o in owner if o == li)+ out.append([hits[0]["s"], hits[-1]["e"], len(hits) / max(1, nwords), hits]+ if hits and len(hits) >= max(1, round(0.34 * nwords)) else None)+ return out+++def _free_gap(heard, a, b):+ """The longest stretch of [a, b] no heard word sits in."""+ pts = sorted((max(a, h["s"]), min(b, h["e"])) for h in heard if h["e"] > a and h["s"] < b)+ best, cur = (a, a), a+ for s0, e0 in pts:+ if s0 - cur > best[1] - best[0]:+ best = (cur, s0)+ cur = max(cur, e0)+ if b - cur > best[1] - best[0]:+ best = (cur, b)+ return best+++def align_script(ear: Ear, audio, lines: list[Line], heard: list[dict], lang: str | None,+ refine: bool = True, lo: float = 0.0, hi: float | None = None) -> list[Cue]:+ """Known lines -> cues. `lo`/`hi` bound the search to where this source+ plays (a clip's slot in a cut, the span of the music bed).++ 1. Match the script's words to the words Whisper heard (match_all): a line+ with enough matched words is timed by them. Measured on SUNDAY MASS this+ is the most accurate timing we have (median 0.06 s from hand-placed).+ 2. A line it did not hear, BETWEEN heard lines or after them, gets a second+ listen: Whisper again on just the free gap (sung lines under music are+ often heard on a short window when the long pass missed them), and the+ match is redone with those words.+ 3. Still nothing: forced alignment of the known words in the gap. Whisper's+ DTW stretches the first word over any music before it, so the time is a+ guess: the cue is kept, marked unsure, shown for review, never burned.+ `refine=False` stops after step 1 (the bench's "script-match")."""+ dur = len(audio) / SR if hi is None else min(hi, len(audio) / SR)+ heard = [h for h in heard if h["e"] > lo and h["s"] < dur]+ sw, owner = [], []+ for li, ln in enumerate(lines):+ for w in ln.text.split():+ if norm(w):+ sw.append(norm(w))+ owner.append(li)+ idx = match_all(sw, [norm(h["w"]) for h in heard])+ spans = _spans(lines, sw, owner, idx, heard)+ if refine and any(spans) and not all(spans):+ # step 2: listen again in each free gap that holds an unheard line after the first heard one+ first = next(li for li, sp in enumerate(spans) if sp)+ extra = []+ for li in range(first + 1, len(lines)):+ if spans[li]:+ continue+ p = next((spans[k][1] for k in range(li - 1, -1, -1) if spans[k]), lo)+ n_ = next((spans[k][0] for k in range(li + 1, len(lines)) if spans[k]), dur)+ g0, g1 = _free_gap(heard + extra, p, n_)+ if g1 - g0 >= 0.8:+ a0, a1 = int(max(0, g0 - 0.15) * SR), int(min(dur, g1 + 0.15) * SR)+ words, _ = ear.hear(audio[a0:a1], lang)+ extra += [dict(w, s=w["s"] + a0 / SR, e=w["e"] + a0 / SR) for w in words]+ if extra:+ heard = sorted(heard + extra, key=lambda h: h["s"])+ idx = match_all(sw, [norm(h["w"]) for h in heard])+ spans = _spans(lines, sw, owner, idx, heard)+ cues: list[Cue] = []+ first = next((li for li, sp in enumerate(spans) if sp), None)+ for li, ln in enumerate(lines):+ sp = spans[li]+ if sp:+ cues.append(Cue(sp[0], sp[1], ln.text, ln.kind, ln.translation, "script", True,+ [{"w": h["w"], "s": round(h["s"], 3), "e": round(h["e"], 3)} for h in sp[3]]))+ continue+ if not refine or first is None or li < first:+ continue # before anything was heard: not in this cut (the verse before the chorus)+ p = next((spans[k][1] for k in range(li - 1, -1, -1) if spans[k]), lo)+ n_ = next((spans[k][0] for k in range(li + 1, len(lines)) if spans[k]), dur)+ g0, g1 = _free_gap(heard, p, n_)+ nw = len(ln.text.split())+ if g1 - g0 < 0.3 * nw + 0.3:+ continue # no room for it: it is not in the audio+ words = ear.force(audio, g0, g1, ln.text, ln.lang and _lang_code(ln.lang) or lang)+ if not words or sum(w["p"] for w in words) / len(words) < 0.2:+ continue+ cues.append(Cue(words[0]["s"], words[-1]["e"], ln.text, ln.kind, ln.translation, "script", False,+ [dict(w, s=round(w["s"], 3), e=round(w["e"], 3)) for w in words]))+ return cues+++def drop_unsure(cues: list[Cue]) -> list[Cue]:+ """What is burned in: lines the ear confirmed. A line only placed in a gap+ stays in the cue file (the editor shows it for a look) but is not burned."""+ return [c for c in cues if c.sure]+++def cues_from_heard(heard: list[dict], kind: str = "say") -> list[Cue]:+ """No script: group Whisper's words into readable cues (sentence end,+ a pause over 0.6 s, or ~2 rows of text)."""+ cues, cur = [], []+ for i, w in enumerate(heard):+ cur.append(w)+ text = " ".join(x["w"] for x in cur)+ nxt = heard[i + 1] if i + 1 < len(heard) else None+ brk = (nxt is None or nxt["s"] - w["e"] > 0.6 or re.search(r"[.!?…]$", w["w"]) or len(text) > 2 * MAX_CHARS - 10+ or (w["e"] - cur[0]["s"]) > 5.5)+ if brk:+ cues.append(Cue(cur[0]["s"], cur[-1]["e"], text, kind, None, "heard", True,+ [dict(x) for x in cur]))+ cur = []+ return cues+++def _lang_code(name: str) -> str | None:+ from mlx_whisper.tokenizer import TO_LANGUAGE_CODE, LANGUAGES+ n = name.strip().lower()+ return n if n in LANGUAGES else TO_LANGUAGE_CODE.get(n)+++def _settle(cues: list[Cue]) -> list[Cue]:+ """Two sources speaking at once (a line over the choir): the spoken line+ wins the screen, the sung one is cut back around it."""+ cues = sorted(cues, key=lambda c: c.start)+ out: list[Cue] = []+ for c in cues:+ if out and c.start < out[-1].end:+ p = out[-1]+ if norm(p.text.replace(" ", "")) == norm(c.text.replace(" ", "")):+ # the same line from two sources (the song's lyrics and the shot's prompt)+ if (c.sure, c.end - c.start) > (p.sure, p.end - p.start):+ out[-1] = c+ continue+ if p.kind == "song" and c.kind == "say":+ p.end = c.start+ if p.end - p.start < 0.4:+ out.pop()+ elif c.kind == "song" and p.kind == "say":+ c.start = p.end+ if c.end - c.start < 0.4:+ continue+ out.append(c)+ return out+++def finish(cues: list[Cue], dur: float) -> list[Cue]:+ """Lead-in, read-out hold, minimum length, no overlaps."""+ cues = sorted(cues, key=lambda c: c.start)+ for i, c in enumerate(cues):+ nxt = cues[i + 1].start if i + 1 < len(cues) else dur+ prv = cues[i - 1].end if i else 0.0+ c.start = max(prv, c.start - LEAD, 0.0)+ c.end = min(max(c.end + HOLD, c.start + MIN_CUE), max(c.end, nxt - 0.04), dur)+ c.start, c.end = round(c.start, 3), round(c.end, 3)+ return cues+++def wrap(text: str, width: int = MAX_CHARS) -> list[str]:+ """One row if it fits, else two balanced rows (bottom-heavy)."""+ if len(text) <= width:+ return [text]+ words = text.split()+ best, cut = None, 1+ for k in range(1, len(words)):+ a, b = " ".join(words[:k]), " ".join(words[k:])+ score = abs(len(a) - len(b)) + (0 if len(a) <= len(b) else 3) + (0 if re.search(r"[,.;:!?]$", words[k - 1]) else 4)+ if best is None or score < best:+ best, cut = score, k+ return [" ".join(words[:cut]), " ".join(words[cut:])]+++# ---------------------------------------------------------------- files+++def _ts(t: float, sep: str) -> str:+ ms = int(round(t * 1000))+ return "%02d:%02d:%02d%s%03d" % (ms // 3600000, ms // 60000 % 60, ms // 1000 % 60, sep, ms % 1000)+++def to_srt(cues: list[Cue], notes: bool = True) -> str:+ out = []+ for i, c in enumerate(cues, 1):+ body = "\n".join(wrap(c.text))+ if c.kind == "song" and notes:+ body = "♪ " + body + " ♪"+ if c.translation:+ body += "\n(" + c.translation + ")"+ out.append("%d\n%s --> %s\n%s\n" % (i, _ts(c.start, ","), _ts(c.end, ","), body))+ return "\n".join(out)+++def to_vtt(cues: list[Cue]) -> str:+ out = ["WEBVTT", ""]+ for c in cues:+ body = "\n".join(wrap(c.text))+ if c.kind == "song":+ body = "<i>♪ " + body + " ♪</i>"+ if c.translation:+ body += "\n<i>" + c.translation + "</i>"+ out += ["%s --> %s line:88%%" % (_ts(c.start, "."), _ts(c.end, ".")), body, ""]+ return "\n".join(out)+++# The look that worked on SUNDAY MASS: white dialogue, italic cream sung lines+# between notes, a smaller translation underneath, soft shadow, bottom centre.+STYLE = {"font": "Helvetica Neue", "size": 0.047, "margin": 0.075, "say": "&H00FFFFFF", "song": "&H00C8E8F6",+ "tr": "&H10D8E4EA", "outline": 0.0022, "shadow": 0.0028}+++def to_ass(cues: list[Cue], w: int, h: int, style: dict | None = None) -> str:+ st = dict(STYLE, **(style or {}))+ fs, mv = round(h * st["size"]), round(h * st["margin"])+ ol, sh = max(1, round(h * st["outline"] * 1.6)), max(1, round(h * st["shadow"] * 1.6))+ head = ("[Script Info]\nScriptType: v4.00+\nPlayResX: %d\nPlayResY: %d\nWrapStyle: 2\nScaledBorderAndShadow: yes\n\n"+ "[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, "+ "Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, "+ "MarginL, MarginR, MarginV, Encoding\n") % (w, h)+ row = "Style: %s,%s,%d,%s,&H000000FF,&HA0000000,&H96000000,0,%d,0,0,100,100,0,0,1,%d,%d,2,%d,%d,%d,1\n"+ head += row % ("Say", st["font"], fs, st["say"], 0, ol, sh, mv, mv, mv)+ head += row % ("Song", st["font"], fs, st["song"], 1, ol, sh, mv, mv, mv)+ head += row % ("Tr", st["font"], round(fs * 0.74), st["tr"], 1, ol, sh, mv, mv, mv)+ head += "\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n"++ def t(x):+ cs = int(round(x * 100))+ return "%d:%02d:%02d.%02d" % (cs // 360000, cs // 6000 % 60, cs // 100 % 60, cs % 100)++ ev = []+ for c in cues:+ body = r"\N".join(wrap(c.text))+ if c.kind == "song":+ body = "♪ " + body + " ♪"+ lift = mv+ if c.translation:+ ev.append("Dialogue: 0,%s,%s,Tr,,0,0,%d,,%s" % (t(c.start), t(c.end), mv, c.translation))+ lift = mv + round(fs * 0.74 * 1.25)+ ev.append("Dialogue: 0,%s,%s,%s,,0,0,%d,,%s" % (t(c.start), t(c.end), "Song" if c.kind == "song" else "Say",+ lift, body))+ return head + "\n".join(ev) + "\n"+++def ffmpeg_has_libass(ff: str) -> bool:+ try:+ out = subprocess.run([ff, "-hide_banner", "-filters"], capture_output=True, text=True, timeout=10).stdout+ except Exception: # noqa: BLE001+ return False+ return bool(re.search(r"^\s*\S+\s+subtitles\s", out, re.M))+++def burn(src: str, cues: list[Cue], dst: str, ff: str | None = None, style: dict | None = None) -> str:+ """Burn the cues in. libass when this ffmpeg has it (the Mac app's and+ Pinokio's both do); otherwise a still card per cue laid over the picture."""+ ff = ff or os.environ.get("LTX_FFMPEG") or shutil.which("ffmpeg")+ w, h = map(int, subprocess.run(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries",+ "stream=width,height", "-of", "csv=p=0", src], capture_output=True, text=True,+ check=True).stdout.strip().split(",")[:2])+ work = Path(dst).with_suffix(".subs")+ work.mkdir(exist_ok=True)+ enc = ["-c:v", "libx264", "-crf", "17", "-preset", "medium", "-pix_fmt", "yuv420p", "-c:a", "copy",+ "-movflags", "+faststart"]+ if ffmpeg_has_libass(ff):+ ass = work / "subs.ass"+ ass.write_text(to_ass(cues, w, h, style), encoding="utf-8")+ esc = str(ass).replace("\\", "\\\\").replace(":", "\\:").replace("'", "\\'")+ vf = "subtitles='%s':fontsdir=/System/Library/Fonts" % esc+ subprocess.run([ff, "-nostdin", "-v", "error", "-y", "-i", src, "-vf", vf, *enc, dst], check=True)+ return "libass"+ # fallback: PNG cards+ from PIL import Image, ImageDraw, ImageFilter, ImageFont+ ins, chain, last = [], [], "0:v"+ for i, c in enumerate(cues):+ p = work / ("cue_%03d.png" % i)+ _card(c, w, h, Image, ImageDraw, ImageFilter, ImageFont).save(p)+ ins += ["-i", str(p)]+ chain.append("[%s][%d:v]overlay=0:0:enable='between(t,%.3f,%.3f)'[v%d]" % (last, i + 1, c.start, c.end, i))+ last = "v%d" % i+ if not cues:+ shutil.copyfile(src, dst)+ return "none"+ subprocess.run([ff, "-nostdin", "-v", "error", "-y", "-i", src, *ins, "-filter_complex", ";".join(chain),+ "-map", "[%s]" % last, "-map", "0:a?", *enc, dst], check=True)+ return "cards"+++def _card(c, w, h, Image, ImageDraw, ImageFilter, ImageFont):+ F = "/System/Library/Fonts/"+ s = h / 720+ main = ImageFont.truetype(F + ("SFNSItalic.ttf" if c.kind == "song" else "SFNS.ttf"), round(34 * s))+ small = ImageFont.truetype(F + "SFNSItalic.ttf", round(22 * s))+ col = (246, 232, 200, 255) if c.kind == "song" else (255, 255, 255, 255)+ rows = wrap(c.text)+ if c.kind == "song":+ rows[0], rows[-1] = "♪ " + rows[0], rows[-1] + " ♪"+ img = Image.new("RGBA", (w, h))+ d = ImageDraw.Draw(img)+ y = h - round((96 if c.translation else 70) * s) - (len(rows) - 1) * round(40 * s)+ for r in rows:+ d.text((w / 2, y), r, font=main, fill=col, anchor="ms")+ y += round(40 * s)+ if c.translation:+ d.text((w / 2, y - round(8 * s)), c.translation, font=small, fill=(220, 214, 200, 235), anchor="ms")+ a = img.getchannel("A")+ shadow = Image.new("RGBA", (w, h), (0, 0, 0, 0))+ shadow.putalpha(a.filter(ImageFilter.MaxFilter(5)).filter(ImageFilter.GaussianBlur(3 * s)).point(lambda v: int(v * .85)))+ return Image.alpha_composite(shadow, img)+++# ---------------------------------------------------------------- CLI+++def make(clip: str, lines: list[Line], out: str, language: str | None = None, ear: Ear | None = None,+ refine: bool = True, sources: list | None = None) -> dict:+ """`lines` for one clip; `sources` = [(t0, t1, lines), ...] for a cut, one+ per clip with a script and one per music bed with lyrics."""+ t0 = time.time()+ ear = ear or Ear()+ audio = load_audio(clip)+ dur = len(audio) / SR+ t1 = time.time()+ heard, lang = ear.hear(audio, language)+ t2 = time.time()+ if sources:+ cues = []+ for a, b, ls in sources:+ cues += align_script(ear, audio, ls, heard, language or lang, refine=refine, lo=a, hi=b)+ cues = _settle(cues)+ mode = "script"+ elif lines:+ cues = align_script(ear, audio, lines, heard, language or lang, refine=refine)+ mode = "script" if refine else "script-match"+ else:+ cues = cues_from_heard(heard)+ mode = "heard"+ cues = finish(cues, dur)+ t3 = time.time()+ base = Path(out)+ base.parent.mkdir(parents=True, exist_ok=True)+ rep = {"clip": str(clip), "mode": mode, "language": lang, "duration": round(dur, 2), "model": ear.repo,+ "timing": {"load_model": round(ear.load_s, 2), "audio": round(t1 - t0, 2), "hear": round(t2 - t1, 2),+ "align": round(t3 - t2, 2)},+ "heard": heard, "cues": [asdict(c) for c in cues]}+ base.with_suffix(".json").write_text(json.dumps(rep, indent=1, ensure_ascii=False))+ base.with_suffix(".srt").write_text(to_srt(cues), encoding="utf-8")+ base.with_suffix(".vtt").write_text(to_vtt(cues), encoding="utf-8")+ return rep+++def _cues(rep: dict) -> list[Cue]:+ return [Cue(**c) for c in rep["cues"]]+++def main(argv=None):+ ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])+ sub = ap.add_subparsers(dest="cmd", required=True)+ m = sub.add_parser("make")+ m.add_argument("clip")+ m.add_argument("--out", required=True, help="base path; writes .json .srt .vtt")+ m.add_argument("--prompt", default="")+ m.add_argument("--prompt-file")+ m.add_argument("--lyrics-file")+ m.add_argument("--translations", help="json {line: translation}")+ m.add_argument("--language")+ m.add_argument("--no-script", action="store_true", help="ignore the script: Whisper's words only")+ m.add_argument("--no-refine", action="store_true", help="script words timed by matching only")+ m.add_argument("--burn", help="also write a captioned copy here")+ m.add_argument("--source", action="append", default=[],+ help="T0:T1:prompt=FILE or T0:T1:lyrics=FILE[:tr=FILE] (a cut: repeat per clip / music bed)")+ b = sub.add_parser("burn")+ b.add_argument("clip")+ b.add_argument("cues")+ b.add_argument("dst")+ b.add_argument("--cards", action="store_true", help="force the PNG-card route")+ a = ap.parse_args(argv)+ if a.cmd == "make":+ prompt = Path(a.prompt_file).read_text() if a.prompt_file else a.prompt+ tr = json.loads(Path(a.translations).read_text()) if a.translations else None+ lines = [] if a.no_script else script_from_prompt(prompt)+ if a.lyrics_file and not a.no_script:+ lines += script_from_lyrics(Path(a.lyrics_file).read_text(), tr)+ sources = []+ for spec in a.source:+ t0, t1, rest = spec.split(":", 2)+ parts = dict(p.split("=", 1) for p in rest.split(":"))+ if "prompt" in parts:+ ls = script_from_prompt(Path(parts["prompt"]).read_text())+ else:+ trs = json.loads(Path(parts["tr"]).read_text()) if "tr" in parts else None+ ls = script_from_lyrics(Path(parts["lyrics"]).read_text(), trs)+ if ls:+ sources.append((float(t0), float(t1), ls))+ rep = make(a.clip, lines, a.out, a.language, refine=not a.no_refine, sources=sources or None)+ print(json.dumps({k: rep[k] for k in ("mode", "language", "duration", "timing")}))+ for c in rep["cues"]:+ print("%7.2f %7.2f %-5s %s %s" % (c["start"], c["end"], c["kind"], "" if c["sure"] else "?", c["text"]))+ if a.burn:+ print("burned with", burn(a.clip, drop_unsure(_cues(rep)), a.burn))+ else:+ rep = json.loads(Path(a.cues).read_text())+ print("burned with", burn(a.clip, _cues(rep), a.dst, ff="/opt/homebrew/bin/ffmpeg" if a.cards else None))+++if __name__ == "__main__":+ sys.exit(main())diff --git a/update.js b/update.jsindex 33c7ece..f41eaaf 100644--- a/update.js+++ b/update.js@@ -1,231 +1,11 @@-// =============================================================================-// update.js — THIN AND STABLE. Pull, then delegate to the post-pull tree.-// =============================================================================-//-// THIS FILE SHOULD IDEALLY NEVER BE EDITED AGAIN. Everything that can break-// lives in `scripts/post_update.sh`.-//-// WHY. Pinokio wires the menu item as { text: "Update", href: "update.js" } —-// it loads this file from disk INTO MEMORY and then executes its steps. Step 1-// below is what pulls the repo, so the repo moves to the new version MID-RUN-// and execution continues from the STALE in-memory copy. cocktailpeanut (who-// wrote Pinokio) hit this himself on 2026-08-12 and confirmed the sequencing-// with timestamps: the repo moved to v3.8.0 at 13:12:17 and the *old* script's-// command failed ~18 s later. His verdict was that it does not require updater-// restructuring — and it doesn't, on his side. On ours it means:-//-// an app can never deliver a fix to its own installer on the click that-// pulls that fix. It always lands one click late, and the user sees a-// failure they have already downloaded the cure for.-//-// `scripts/post_update.sh` is read AFTER the pull, so a broken update step is-// fixable by shipping — the normal way. So is THE VENDORED PIN, which is why-// it lives in `scripts/pinokio/ltx_checkout.sh` and not here: a pin held in-// this file would move one click late on every single bump, forever.-//-// Full analysis of the sequencing is in the header of-// `scripts/post_update.sh`, which exists because of it.-//-// RULES FOR EDITING THIS FILE-// ----------------------------// - No pip/uv calls, no patches, no downloads, no trims. Those all belong in-// scripts/post_update.sh.-// - Assume the copy on the user's disk is ANY historical version. A change-// here gets the scrutiny of a schema migration.-// - Every dispatch stays under 350 chars - the width @Morac2 actually-// bisected as safe (#50), which `node scripts/check_pinokio_scripts.js`-// now enforces for every launcher script (4.20; it was 500).-// - Everything before the pull may only reference files that ALREADY exist-// in the user's current tree. That does not mean "inline it": the-// obstruction guard and the converge step are `scripts/pinokio/*.sh`,-// which ship in the same commit as this file and are therefore exactly as-// current as this file is. Step 1 stays inline because it is what-// establishes the upstream ref the other two depend on.-//-// Note: fs.link is only declared in install.js, not here. Running it on every-// Update would migrate existing model folders into the drive without a Reset,-// conflating durability of model assets with routine code updates and adding a-// 36 GB merge step to a flow that should be fast.+// Pinokio reads this before the source moves. Keep the transaction in one+// process: durable source receipt, dependency repair, then a pending restart.+// Old launcher versions still follow their old path on the first update.module.exports = {- run: [- // ---- 1. Move the panel repo -------------------------------------------- // Branch- and remote-aware, because the same update.js serves the public- // panel (origin/main) and the private dev clone (beta/main) — the- // explicit-origin form `git pull origin <branch>` broke when public- // origin/dev was deleted in the 2026-05-22 split.- //- // THE DISPATCH TEXT MUST NOT CARRY "error:" / "errno " OR A NEWLINE (#114,- // reported by @Morac2, 2026-10-20). Pinokio 8.2 stops a shell.run step when- // its OUTPUT matches /error:/i or /errno /i and ignores the exit code — and- // the shell ECHOES the command before running it, so the fetch step's own- // [ -n "$U" ] || { echo 'FATAL error: no upstream configured'; exit 1; }- // tripped that matcher ON THE SUCCESS PATH, before the step ran: Update- // detached mid-echo with input.event ["error:"] and died. The fetch logic- // therefore moved into scripts/pinokio/update_fetch.sh (behaviour byte-for-- // byte unchanged); its FATAL lines now print only at runtime on a real- // fault, where we still want Pinokio to stop.- //- // That same matcher retires the old "one joined string" note below: a- // `"\n"`-joined message is itself a multi-line echo Pinokio trips on, so- // every dispatch here is now a single `bash scripts/pinokio/*.sh` line and- // the steps that need shell state across commands own it inside that script.- // (The guard and converge steps already moved out for the 350-char ceiling;- // this run finished the job for the fetch step and routed the three file- // guards through scripts/pinokio/must.sh, which turns a missing script's- // non-zero exit into a FATAL line at runtime instead of an echoed one.)- //- // v4.0 FIX — `git pull --ff-only $UPSTREAM` HAD NEVER ONCE SUCCEEDED.- // `$UPSTREAM` expands to "origin/main", and `git pull --ff-only origin/main`- // passes that as the REPOSITORY argument, not a refspec:- // fatal: 'origin/main' does not appear to be a git repository- // So the ff-only attempt always failed and EVERY Phosphene update since- // Y1.002 silently took the reset --hard fallback, printing "history- // diverged from upstream" on a repo that had never diverged. Harmless in- // practice (a panel install carries no local commits, and neither- // `git pull --ff-only` nor `git reset --hard` touches untracked files) but- // it is alarming noise and it meant we had no real ff-only guard at all.- // The bare form uses the configured upstream and fast-forwards correctly;- // the reset --hard fallback is kept, and now only fires when it is true.- // Measured against the real update path, not reasoned about.- // v4.0.1 FIX — THE UPDATE IS TRANSACTIONAL NOW, AND IT WAS NOT.- //- // The old block ignored the fetch result and sent EVERY pull failure to- // `git reset --hard $UPSTREAM`. `$UPSTREAM` is the LOCAL tracking ref, so- // when the fetch was the thing that failed the reset landed on the stale- // ref that was already checked out — a no-op that exits 0. The sequence a- // user offline (or behind an auth failure) actually got was:- //- // failed fetch → failed pull → "successful" reset onto old code →- // successful rev-parse → post_update runs against the old tree →- // Update reports success and nothing has changed.- //- // The same fallback also could not tell a dirty worktree from genuine- // divergent history, so it answered "you have local edits" by destroying- // them.- //- // Split into two steps, both short enough for the dispatch gate, and the- // ordering is the guarantee: NOTHING moves the tree until a fetch has- // provably succeeded, and reset only ever runs against a ref that fetch- // just refreshed.- // A dispatch's own script can be MISSING (a damaged tree): `bash x.sh` then- // exits 127 with a bare "No such file" that Pinokio does not stop on, and- // Update marched on without a fetch (4.19.7 review). Each dispatch ends in- // `|| [ -f x.sh ] || printf 'FATAL \145rror: ...'`: the file test keeps a- // script's OWN failure (which already printed its FATAL line) quiet, and the- // octal \145 ("e") prints the stop-word at RUNTIME without it ever sitting- // in the echoed text (the #114 crash class; check_ltx_pin.js 2b).- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/update_fetch.sh || [ -f scripts/pinokio/update_fetch.sh ] || printf 'FATAL \\145rror: scripts/pinokio/update_fetch.sh is missing - repair with: git checkout -- scripts/pinokio\\n'"- }- },- // Converge. A reset is reached ONLY on proven history divergence.- //- // v4.0.1 second pass — THE UNTRACKED-FILE DELETION PATH. The previous- // version classified every merge failure that left tracked files clean as- // "divergence" and reset. But `git diff --quiet` IGNORES UNTRACKED FILES,- // so the most common non-divergence failure — an untracked path that a- // newly tracked upstream path would overwrite — passed both checks, and- // `git reset --hard` then deleted the user's file as the "obstruction".- // A user who dropped a note or a config beside the app lost it to an- // update that had no local commits to reconcile in the first place.- //- // Divergence is now PROVEN, not inferred from what else failed:- // `git rev-list --count $U..HEAD` is the number of commits this clone has- // that upstream does not. Zero means the history did not diverge, whatever- // made the merge fail — so we stop and print git's own error, which names- // the obstructing paths. Nothing is deleted on that path, ever.- // THE OBSTRUCTION GUARD, and it runs BEFORE anything can move the tree.- //- // The rev-list proof added in the previous pass only covered the- // zero-local-commit case. A clone that has genuinely diverged (A > 0) AND- // holds an untracked file where upstream now tracks one still reached- // `reset --hard`, because both `git diff` checks ignore untracked files —- // so the reset deleted it while legitimately reconciling real divergence.- // Divergence and obstruction are independent facts and the destructive- // step must clear BOTH.- //- // The set is computed from paths the fetched tree will write, then checked- // against the worktree itself. That direction is deliberate: `git status`- // omits ignored files and reports only leaf paths, so it misses both an- // untracked FILE where upstream needs a DIRECTORY and an untracked- // DIRECTORY where upstream needs a FILE. Walking each upstream path toward- // its first existing worktree ancestor covers exact and parent/child- // collisions, including ignored files, without enumerating a multi-GB- // ignored cache. A path already present in HEAD is tracked and belongs to- // the tracked-dirty/divergence checks below, not this obstruction set.- //- // v4.0.2 — A DIRECTORY IS NOT AN OBSTRUCTION, and treating it as one was a- // fleet-wide REFUSAL TO UPDATE. The walk tested only `[ -e ]`, so it- // stopped at the first ancestor that existed and flagged it without asking- // what it was. git cannot create a directory where a FILE sits — a real- // obstruction — but it writes a new file into an existing untracked- // directory without complaint. So a release adding `notes/new.md` to a- // clone with an untracked `notes/` aborted with- // "OBSTRUCTIONS=[notes -> notes/new.md]" while `git merge --ff-only @{u}`- // on that same clone succeeded and both files coexisted. Any release- // adding a tracked file under a folder users commonly have untracked or- // ignored (logs/, cache/, __pycache__/, mlx_models/, ltx-2-mlx/,- // minimax-h3-mlx/, anything they dropped in the app dir) would have- // refused to install itself, fleet-wide, including the fix for it.- //- // BOTH STEPS NOW LIVE IN scripts/pinokio/. They were 455 and 484 chars —- // the two largest dispatches in the repo, both above the ~350 @Morac2- // bisected as safe (#50) even though both sat under the 500 ceiling- // `scripts/check_pinokio_scripts.js` enforces. As one-line `bash` calls- // they are ~250, and the guard's rule is finally legible enough to argue- // with: it is stated as a table of measured `git merge --ff-only`- // outcomes in that file's header.- //- // These are the ONLY steps here that may not be delegated to- // post_update.sh — they run BEFORE the pull. Reading them from- // scripts/pinokio/ is therefore exactly as one-click-late as update.js- // itself, no worse: the two land in the same commit, so a tree carrying- // this update.js carries these scripts. If one is missing the tree is- // damaged, and the guard MUST NOT be skipped — the destructive step below- // is what it protects — so the step must abort with a repair instruction- // instead of proceeding without it.- //- // That abort is now scripts/pinokio/must.sh's job, not an inline- // `if [ -f ... ]; else echo 'FATAL error: ...'` (whose echoed "error:" was- // the #114 crash). must.sh runs the guard; a missing guard makes `bash`- // exit non-zero, and must.sh turns ANY non-zero exit into one- // "FATAL error: <reason> (exit N)" line at RUNTIME, so Pinokio still stops- // — without that word ever sitting in the echoed dispatch. The reason text- // stays free of "error:" / "errno " for the same reason (it rides the- // dispatch line too); check_pinokio_scripts.js enforces that.- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/must.sh 'the update obstruction guard is missing - repair with: git checkout -- scripts/pinokio' bash scripts/pinokio/update_obstruction_guard.sh || [ -f scripts/pinokio/must.sh ] || printf 'FATAL \\145rror: scripts/pinokio/must.sh is missing - repair with: git checkout -- scripts/pinokio\\n'"- }- },- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/must.sh 'the update converge step is missing - repair with: git checkout -- scripts/pinokio' bash scripts/pinokio/update_converge.sh || [ -f scripts/pinokio/must.sh ] || printf 'FATAL \\145rror: scripts/pinokio/must.sh is missing - repair with: git checkout -- scripts/pinokio\\n'"- }- },- // ---- 2. Everything else, from the tree we just pulled ------------------- // One step on purpose. v3.8.2's failure was a Pinokio RUN that stopped- // after a step which exited 0, because that step's stdout carried pip's- // "ERROR: pip's dependency resolver…" block — steps 8-17 of 18 never ran,- // including the codec patch, and the update still presented as finished.- // Inside one shell script Pinokio sees one step, so no amount of scary- // text in the middle can silently drop the tail.- //- // `bash <path>`, never `./<path>` — no execute bit, nothing depends on git- // preserving the mode. The missing-file concession to history (a tree that- // somehow did not pull would otherwise hit a bare "No such file" and say- // nothing useful) is now scripts/pinokio/must.sh's: it runs post_update.sh- // and, if that is missing or fails, prints the one FATAL line Pinokio stops- // on — at runtime, never in the echoed dispatch (the #114 "error:" crash).- {- method: "shell.run",- params: {- message: "bash scripts/pinokio/must.sh 'post_update did not run - the repo pull above may not have landed; re-run Update' bash scripts/post_update.sh || [ -f scripts/pinokio/must.sh ] || printf 'FATAL \\145rror: scripts/pinokio/must.sh is missing - repair with: git checkout -- scripts/pinokio\\n'"- }+ run: [{+ method: "shell.run",+ params: {+ message: "bash scripts/pinokio/update_transaction.sh || printf 'FATAL \\145rror: Update did not finish. Run Update again; keep local edits.\\n'"}- ]+ }]}diff --git a/update_transaction.py b/update_transaction.pynew file mode 100644index 0000000..b41078c--- /dev/null+++ b/update_transaction.py@@ -0,0 +1,267 @@+"""Durable source update and dependency repair, shared by both Update buttons.++The previous Git tree is retained, not the Python environment. After dependency+work starts, recovery means retrying the pinned candidate's repair script. No+package rollback is promised. Journals and locks are local to this checkout.+"""+from __future__ import annotations++import contextlib+import fcntl+import json+import os+from pathlib import Path+import re+import shlex+import subprocess+import sys+import time+import threading+import uuid+++class UpdateError(RuntimeError):+ pass+++class Busy(UpdateError):+ pass+++class Transaction:+ def __init__(self, root):+ self.root = Path(root).resolve()+ self.fd = None+ self.directory = Path(self.git('rev-parse', '--absolute-git-dir'))+ self.path = self.directory / 'phosphene-update.json'++ def command(self, args, *, env=None):+ p = subprocess.run(args, cwd=self.root, env=env, capture_output=True,+ text=True, errors='replace', timeout=180,+ pass_fds=(() if self.fd is None else (self.fd,)))+ if p.returncode:+ raise UpdateError((p.stdout + p.stderr).strip() or f'Command stopped (exit {p.returncode}).')+ return p.stdout.strip()++ def git(self, *args):+ return self.command(['git', *args])++ def read(self):+ try:+ rec = json.loads(self.path.read_text())+ if (not isinstance(rec, dict) or rec.get('schema') != 1+ or rec.get('phase') not in ('fetching', 'source_pending', 'source_ready',+ 'dependencies', 'dependencies_failed', 'awaiting_restart',+ 'restart_requested', 'succeeded', 'current')):+ raise ValueError('unknown journal format')+ return rec+ except FileNotFoundError:+ return {}+ except (ValueError, OSError) as exc:+ raise UpdateError(f'Cannot read {self.path}. Keep this file for recovery: {exc}') from exc++ def save(self, rec, **changes):+ rec.update(changes, updated=time.time())+ tmp = self.path.with_suffix('.tmp')+ with tmp.open('w') as f:+ json.dump(rec, f, indent=2)+ f.write('\n')+ f.flush()+ os.fsync(f.fileno())+ os.replace(tmp, self.path)+ fd = os.open(self.directory, os.O_RDONLY)+ try:+ os.fsync(fd)+ finally:+ os.close(fd)+ return rec++ @contextlib.contextmanager+ def locked(self):+ with (self.directory / 'phosphene-update.lock').open('a') as f:+ try:+ fcntl.flock(f, fcntl.LOCK_EX | fcntl.LOCK_NB)+ except BlockingIOError as exc:+ raise Busy('Another update or dependency repair is still running. Wait for it to finish.') from exc+ self.fd = f.fileno()+ try:+ yield+ finally:+ self.fd = None+ # Do not explicitly unlock: a surviving child inherits the lock.++ def recovery(self, rec):+ ref = rec.get('previous_ref', '')+ cmd = 'cd ' + shlex.quote(str(self.root)) + ' && bash scripts/pinokio/update_transaction.sh'+ note = ('Python packages may have changed; restoring source alone does not restore them.'+ if rec.get('dependencies_started') else 'Dependency repair has not started.')+ return f'Retry this same update: {cmd}. Previous source: {ref or rec.get("previous", "unknown")}. {note}'++ def clean(self):+ if self.git('status', '--porcelain', '-uno'):+ raise UpdateError('Local source edits are present. Save or commit them before retrying Update. Nothing was discarded.')++ def prepare(self):+ with self.locked():+ rec = self.read()+ if rec and rec['phase'] not in ('succeeded', 'current'):+ return self._resume_source(rec)+ if rec.get('phase') == 'succeeded':+ self.clean()+ self.git('fetch', rec['upstream'].split('/')[0])+ if (self.git('rev-parse', 'HEAD') == rec['candidate']+ and self.git('rev-parse', rec['upstream'] + '^{commit}') == rec['candidate']):+ return rec+ old = self.git('rev-parse', 'HEAD')+ upstream = self.git('rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{u}')+ rec = dict(schema=1, id=uuid.uuid4().hex, previous=old,+ previous_ref='', candidate='', upstream=upstream,+ phase='fetching', dependencies_started=False)+ self.save(rec)+ return self._resume_source(rec)++ def _resume_source(self, rec):+ phase = rec['phase']+ if phase in ('awaiting_restart', 'restart_requested', 'succeeded', 'dependencies', 'dependencies_failed', 'source_ready'):+ if self.git('rev-parse', 'HEAD') != rec['candidate']:+ raise UpdateError('Source moved outside this update. ' + self.recovery(rec))+ return rec+ # Fetch does not change source. A retry may fetch again, but once a+ # candidate is recorded every retry uses that exact commit.+ if phase == 'fetching':+ self.clean()+ head = self.git('rev-parse', 'HEAD')+ if head != rec['previous']:+ # No source/dependency mutation has begun. A user may have+ # committed the edits that blocked the first attempt.+ self.save(rec, previous=head)+ self.git('fetch', rec['upstream'].split('/')[0])+ target = self.git('rev-parse', rec['upstream'] + '^{commit}')+ if target == rec['previous']:+ return self.save(rec, phase='current', candidate=target)+ ref = 'refs/phosphene/updates/' + rec['id'] + '/previous'+ self.git('update-ref', ref, rec['previous'])+ self.save(rec, phase='source_pending', candidate=target, previous_ref=ref)+ self.clean()+ head = self.git('rev-parse', 'HEAD')+ if head not in (rec['previous'], rec['candidate']):+ raise UpdateError('Source changed outside this update. ' + self.recovery(rec))+ if head != rec['candidate']:+ # No reset fallback: local commits and edits are never disposable.+ # --no-overwrite-ignore also protects files hidden by .gitignore.+ self.git('merge', '--ff-only', '--no-overwrite-ignore', rec['candidate'])+ self.clean()+ return self.save(rec, phase='source_ready')++ def dependencies(self, env=None, output=print, timeout=3 * 3600):+ with self.locked():+ rec = self.read()+ if not rec:+ raise UpdateError('No update is ready. Run Update first.')+ if rec['phase'] in ('awaiting_restart', 'restart_requested', 'succeeded', 'current'):+ return rec+ if rec['phase'] not in ('source_ready', 'dependencies', 'dependencies_failed'):+ raise UpdateError('Source update is incomplete. Run Update again before repairing dependencies.')+ self.clean()+ if self.git('rev-parse', 'HEAD') != rec['candidate']:+ raise UpdateError('Source changed outside this update. ' + self.recovery(rec))+ self.save(rec, phase='dependencies', dependencies_started=True)+ script = self.root / 'scripts/post_update.sh'+ try:+ if not script.is_file():+ raise UpdateError('scripts/post_update.sh is missing.')+ # Child holds the lock if the updater dies. Incomplete repair+ # reruns on retry; completed repair is never run twice.+ with subprocess.Popen(['bash', str(script), str(self.root)],+ cwd=self.root, env=env, stdin=subprocess.DEVNULL,+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT,+ text=True, errors='replace', pass_fds=(self.fd,)) as proc:+ expired = threading.Event()+ def expire():+ expired.set()+ # Only this owned process. Any surviving child keeps+ # the inherited lock until it exits.+ proc.kill()+ timer = threading.Timer(timeout, expire)+ timer.daemon = True+ timer.start()+ tail = []+ try:+ for line in proc.stdout:+ tail = (tail + [line.rstrip()])[-12:]+ # Pinokio aborts on these words before checking status.+ # Publish the fatal line only AFTER the durable receipt.+ output(re.sub(r'error:|errno ', 'problem: ', line.rstrip(), flags=re.I))+ rc = proc.wait()+ finally:+ timer.cancel()+ if expired.is_set():+ raise UpdateError('Dependency repair exceeded its time limit.')+ if rc:+ detail = next((s.split('PHOSPHENE UPDATE FAILED:', 1)[1].strip()+ for s in tail if 'PHOSPHENE UPDATE FAILED:' in s), '')+ raise UpdateError(f'Dependency repair stopped (exit {rc})' + (f': {detail}' if detail else '.'))+ except Exception as exc:+ message = str(exc) + ' ' + self.recovery(rec)+ self.save(rec, phase='dependencies_failed', error=message)+ raise UpdateError(message) from exc+ return self.save(rec, phase='awaiting_restart', error='')++ def request_restart(self):+ with self.locked():+ rec = self.read()+ if rec.get('phase') in ('awaiting_restart', 'restart_requested'):+ self.clean()+ if self.git('rev-parse', 'HEAD') != rec['candidate']:+ raise UpdateError('Source changed before restart. ' + self.recovery(rec))+ self.save(rec, phase='restart_requested')+ elif rec and rec['phase'] not in ('current', 'succeeded'):+ raise UpdateError(self.recovery(rec))++ def acknowledge(self, boot_sha):+ """Called only by a candidate that bound its HTTP listener."""+ with self.locked():+ rec = self.read()+ if (rec.get('phase') in ('awaiting_restart', 'restart_requested')+ and boot_sha == rec.get('candidate')+ and self.git('rev-parse', 'HEAD') == boot_sha):+ self.clean()+ return self.save(rec, phase='succeeded', error='')+ return rec++ def status(self):+ rec = self.read()+ if not rec or rec['phase'] == 'current':+ return {}+ phase = rec['phase']+ done = phase in ('awaiting_restart', 'restart_requested', 'succeeded')+ active = False+ try:+ with self.locked():+ pass+ except Busy:+ active = True+ return dict(state='done' if done else ('running' if active else 'failed'),+ active=active, pending=active, phase=phase,+ error='' if done else rec.get('error') or self.recovery(rec),+ candidate=rec.get('candidate'), previous_ref=rec.get('previous_ref'),+ outcome='ok' if phase == 'succeeded' else 'pending')+++def main():+ try:+ tx = Transaction(Path(__file__).resolve().parent)+ rec = tx.prepare()+ if rec['phase'] == 'current':+ print('Already up to date. Nothing to restart.')+ else:+ tx.dependencies()+ print('Update prepared. Restart Phosphene to check that the new version starts.')+ return 0+ except Exception as exc:+ print(f'FATAL error: {exc}', flush=True)+ return 1+++if __name__ == '__main__':+ sys.exit(main())diff --git a/webapp/docs/bench.md b/webapp/docs/bench.mdnew file mode 100644index 0000000..c672f29--- /dev/null+++ b/webapp/docs/bench.md@@ -0,0 +1,37 @@+# Phosphene Bench++## What it does++Bench renders a fixed suite locally in the free app. PB1 means Phosphene Bench 1. Prompts and seeds are fixed, with no prompt enhancement or upscaling. Changes to prompts, seeds, sizes or steps get a new suite name. Different suites are never mixed.++## The PB1 steps++| Step | Settings |+| --- | --- |+| Engine warm-up | 1-second LTX-2.5 Quick clip. Time recorded, excluded from timed results. |+| LTX-2.5 Quick | 5-second text-to-video clip with sound, 640×448, 121 frames at 24 fps. |+| LTX-2.5 Balanced | 5-second text-to-video clip with sound, 1024×576 or 768×448 below 48 GB memory, 121 frames at 24 fps. |+| FLUX.2 [klein] 4B | Four 1024×1024 stills in one job, 4 steps, 4-bit. Includes image-engine startup. |+| Hailuo H3 Draft | Optional 5-second clip. Requires H3 installed, sufficient memory and accepted licence. |++Warm-up loads the video engine before timing. Quick, Balanced and images are the core steps; all must finish for a complete run. H3 is separate from the headline and never downloaded by Bench.++## What is measured++The app’s render timer measures each step from rendering start to saved file, as on /benchmarks. Memory is sampled twice a second: peak use, increase over the pre-step level, swap and engine peak where reported. Bench records chip, CPU and GPU cores, memory, model identifier, macOS, app version and edition, power source, Low Power Mode, and starting and worst thermal state.++## Running it++Open Settings → Phosphene Bench → Run Bench. Finish or clear queued or running renders first. Use the charger with Low Power Mode off; Bench warns and records otherwise. Allow several minutes, much longer on smaller Macs. Missing models get an Install button; nothing downloads until clicked.++## The result card and JSON++Save a PNG card with Balanced’s time as the headline, save the full JSON record, or copy a plain-text summary. Results stay local unless submitted.++## The leaderboard++Submission is opt-in and requires confirmation. With anonymous usage counts off, nothing is sent. Submission sends every stored complete PB1 run: suite, times, memory, canvases, hardware class, macOS, conditions, app version, edition and random install ID. Never prompts, file names, paths, images or video. Incomplete runs are ineligible.++## Fair comparisons++Compare matching suites, editions and canvases. Conditions affect results. No best-of: each Mac contributes its median; chip-and-memory groups show the median of those medians and Mac count. Free and Pro stay separate. The board refreshes on site rebuilds. Nearby /benchmarks fleet medians provide everyday-render context, not the same test.diff --git a/webapp/docs/getting-started.md b/webapp/docs/getting-started.mdindex c14842e..0263d2b 100644--- a/webapp/docs/getting-started.md+++ b/webapp/docs/getting-started.md@@ -72,11 +72,11 @@ Every render also writes a small sidecar file beside it with its settings. That## The first start {#first-start}[[pinokio]]-On a new install, 27.5 GB downloads before **Start** appears: the LTX-2.5 engine, its text encoder and the preview decoder. The installer checks disk space first: you need about 32.5 GB free, and it tells you if there is not enough.+Start appears once the runtime is ready. No models download before the app opens. Setup needs about 18 GB free, including 15 GB kept free for your work.-After **Start**, 10.7 GB more downloads in the background, one at a time: Gemma 3 (what **Enhance** and the **Storyboard planner** run on) and the adapters for **Upscale & Face Fix**, **Control**, **Ingredients** and **Colorize**.+For video, click **Download video models**. The default is **LTX-2.5 Q4**, about 27.5 GB with its prompt encoder. It supports your first text or image video without the larger Q8 pack. Both parts download in order, with progress in the panel. **Stop download** keeps partial files; click the download button again to resume.-You can follow progress in the panel. The background download keeps 10 GB free on the drive and waits if there is less. Until a model arrives, the feature that needs it says it is downloading and offers **Download now**.+You can also choose **Images** or **Audio**. They have their own models, and do not need the video download. Enhance, the Storyboard planner and optional adapters offer a download when you use them. Nothing else starts downloading just because you opened the app.[[/pinokio]][[mac-app]]The base set is about 28 GB: the LTX-2.5 engine, its text encoder and the preview decoder. Before anything downloads, the app shows every item and its size, the space needed and your free space. If the studio fits but the models don't, you can set up the studio now and download models later from inside it.diff --git a/webapp/docs/hailuo-h3.md b/webapp/docs/hailuo-h3.mdindex 4c769d1..e811f42 100644--- a/webapp/docs/hailuo-h3.md+++ b/webapp/docs/hailuo-h3.md@@ -120,6 +120,26 @@ On **High**, **Best** can use **lightx2v v1.3**, an adapter by LightX2V. In ourPowered by MiniMax H3. Pika H3 Flex by Pika Labs (Mellis, Inc.): the weights are a MiniMax H3 Model Derivative under the MiniMax H3 Community License; Pika's code is Apache-2.0. Phosphene converts the file on your Mac and marks it as modified. Mac weights are also on Hugging Face: [Mrbizarro/Pika-H3-Flex-MLX](https://huggingface.co/Mrbizarro/Pika-H3-Flex-MLX).+## H3 Flex Turbo (faster draft, Pro) {#flex-turbo}++**H3 Flex Turbo** is H3 Flex in four steps instead of six: a faster draft, about 1.4× quicker than H3 Flex at the same size and a little softer. It is part of **Phosphene Pro**. For the final render, use H3 Flex or Best.++- **Pick it:** choose **H3 Flex Turbo** in the engine picker, right after H3 Flex. Without Pro, the click opens the Pro panel.+- **Get it:** the same click downloads it (0.3 GB, from its author's Hugging Face page at a fixed version). You need Hailuo H3 installed; the H3 Flex adapter is not needed.+- **What it makes:** Text and Image (first frame), with dialogue and sound, on every 5-second length, like H3 Flex.+- **Times on an M4 Max, 64 GB, per 5 s:** Draft about 3.5 minutes, High about 10 to 12 minutes (H3 Flex: about 16 minutes on the same shots).+- **Good to know:** pictures come out a little softer than H3 Flex, and very fast motion can wobble a little more. Faces and speech held in our tests.++Powered by MiniMax H3. H3 Flex Turbo runs the Pika H3 Flex Turbo LoRA by akhaliq, which fuses Pika H3 Flex (Pika Labs) with LightX2V's MiniMax-H3 Turbo; the weights are a MiniMax H3 Model Derivative under the MiniMax H3 Community License. Phosphene downloads the published file unchanged.++## Faster Hailuo H3 (Pro) {#faster-h3}++**Faster Hailuo H3** is part of **Phosphene Pro**. Picture-to-video clips of 5, 10 and 15 seconds render about 1.15 to 1.23 times faster than on Free, with the same faces, motion, voice and joins in our tests. It needs Apple Silicon with 36 GB of memory or more.++- **What you do:** nothing. Turn Pro on in Settings and render picture-to-video as usual.+- **Not sped up:** text-to-video renders exactly as on Free, so Pro is never worse than Free.+- **Measured on an M4 Max with 64 GB.** Other chips get a smaller gain, and Macs under 36 GB, and Intel Macs, use the Free path.+## How long it takes {#times}Each quality and length option shows an estimated time for your Mac, based on completed videos from similar Macs. The table shows median times from Phosphene's anonymous usage counts: half finished sooner and half took longer. A dash means there are too few completed videos to give a time.diff --git a/webapp/docs/images.md b/webapp/docs/images.mdindex 277e218..1b23f45 100644--- a/webapp/docs/images.md+++ b/webapp/docs/images.md@@ -1,19 +1,20 @@# Images-The Images tab makes stills. Engines here: **Reference Edit**, which reworks an image you give it, **Ideogram 4**, which puts words on a picture, **FLUX 3 Klein**, and **P-H3-Image**, which makes large photographs and posters from words alone.+The Images tab makes stills. Pick the model first: **Model**, at the top of the column, is the same picker the Video tab uses. Models here: **FLUX.2 [klein]**, the recommended first model, **FLUX 3 Klein**, **Reference Edit**, which reworks an image you give it, **Ideogram 4**, which puts words on a picture, and **P-H3-Image**, which makes large photographs and posters from words alone.-## Choosing the engine {#engines}+## Choosing the model {#engines}-| Engine | Use it for |-|---|---|-| **Auto (use Settings)** | whatever Settings picks for this Mac |-| **Reference Edit — Fast** | image-to-image in 4 steps, about 1:20, several references — the default |-| **Reference Edit — Standard** | 8 steps, about 2:05, no LoRA |-| **Reference Edit — Quality** | 40 steps, about 3:50 — for final renders |-| **Ideogram 4 — typography & layout** | text in the image, with an optional reference |-| **P-H3-Image** (Draft / Standard / High) | big photographs, film frames and posters from text, words spelled right; about 2.5 min at 4 MP |+| Model | Use it for | Versions (under the prompt) |+|---|---|---|+| **FLUX.2 [klein]** | pictures from words, edits from your photos; a ~4.3 GB first download. The default | one |+| **FLUX 3 Klein** | sharper pictures from words or references | Q8, Q6, Q4, each at Standard or Base Quality |+| **Reference Edit** | changing a picture you give it: a background, an outfit, several references combined | Fast (4 steps, about 1:20), Standard (8 steps, about 2:05, no LoRA), Quality (40 steps, about 3:50, for final renders) |+| **Ideogram 4** | text in the image, placed where you want it, with an optional reference | one |+| **P-H3-Image** | big photographs, film frames and posters from text, words spelled right; about 2.5 min at 4 MP | Draft, Standard, High |++The model's versions sit in **Version**, under the prompt; a model with one version just names it there. Phosphene remembers the version you last used for each model.-The pill next to the menu says whether that engine is downloaded. An engine that needs more memory than this Mac has is greyed out and labelled *needs a N GB Mac*.+The pill next to **Version** says whether that version is downloaded. A version that needs more memory than this Mac has is greyed out and labelled *needs a N GB Mac*; a model none of whose versions fit is dimmed in the **Model** menu with the memory it needs.On Macs with 16 GB of memory or less, **Auto** uses FLUX.2 [klein] 4B at 4-bit for a render without references if the engine chosen in Settings needs a bigger Mac; your Settings stay the same. Renders with reference images keep the Settings engine because Klein does not use references. If that engine cannot fit, remove the references so Auto can use Klein, or choose a lighter engine in Settings.@@ -47,7 +48,7 @@ A Layout render needs at least one box.## FLUX 3 Klein-Choose **FLUX 3 Q8 / Standard** to make an image from text, or add reference images to edit them. Describe the complete scene you want. Standard uses 16 steps. **Base Quality** uses a separate model at 50 steps and takes longer.+Choose **FLUX 3 Klein** under **Model** and **FLUX 3 Q8 / Standard** in **Version** to make an image from text, or add reference images to edit them. Describe the complete scene you want. Standard uses 16 steps. **Base Quality** uses a separate model at 50 steps and takes longer.Q8 is the recommended quality. Q6 uses less memory; Q4 supports 24 GB Macs with a small image size and one reference. 32 GB or more is recommended. The first run downloads about 9.9 GB for Q8, 7.6 GB for Q6 or 5.3 GB for Q4, plus the image engine. Stop cancels setup or rendering; a later run resumes downloads. After that, an image takes about 50 seconds on an M4 Max with 64 GB.@@ -59,7 +60,7 @@ Your images appear in the gallery. Choose **Animate** to send one to image-to-viP-H3-Image is Pruna AI's image model, built on MiniMax H3, the same model behind Hailuo H3 video. It makes one picture from a text prompt in 8 steps, with nothing to tune. It is strongest at photographs, film frames, crowds and posters whose quoted words must be spelled exactly. Hands and very small faces in the background can still go wrong. It does not use reference images yet: anything in the slots is ignored.-Pick a size in **Engine**:+Choose **P-H3-Image** under **Model**, then a size in **Version**:| Choice | Size | Time on an M4 Max, 64 GB ||---|---|---|@@ -69,6 +70,6 @@ Pick a size in **Engine**:**Aspect** sets the shape; the size comes from the choice. It needs about 26 GB of free memory, so a Mac with 48 GB or more.-**First use.** It runs on the Hailuo H3 video pack, so install Hailuo H3 first. Then the chip next to **Engine** reads *download ~18 GB*: click it. Phosphene shows the MiniMax H3 licence, then downloads P-H3-Image's own parts (adapter, text encoder, image decoder) once, from Pruna's repository at a pinned version, and checks every file. It needs about 24 GB free on the disk while it prepares, and keeps about 15 GB. The chip says *ready* when it is done. If it reads *update the H3 runner*, update Hailuo H3 first (your weights stay).+**First use.** It runs on the Hailuo H3 video pack, so install Hailuo H3 first. Then the chip next to **Version** reads *download ~18 GB*: click it. Phosphene shows the MiniMax H3 licence, then downloads P-H3-Image's own parts (adapter, text encoder, image decoder) once, from Pruna's repository at a pinned version, and checks every file. It needs about 24 GB free on the disk while it prepares, and keeps about 15 GB. The chip says *ready* when it is done. If it reads *update the H3 runner*, update Hailuo H3 first (your weights stay).*P-H3-Image by Pruna AI, based on MiniMax-H3 by MiniMax, under the MiniMax H3 Community License; its text encoder is based on Qwen3-VL-4B (Apache-2.0). Powered by MiniMax H3. Fetched from Pruna's repository, never re-hosted; the only change made on your Mac is re-arranging the image decoder's tensors for the MLX runner (renamed and re-fused, values unchanged), noted inside the file. MiniMax H3 is licensed under the MiniMax H3 Community License Agreement, Copyright (c) 2026 MiniMax. All Rights Reserved.*diff --git a/webapp/docs/install.md b/webapp/docs/install.mdindex 01659f0..2bc71d6 100644--- a/webapp/docs/install.md+++ b/webapp/docs/install.md@@ -15,7 +15,7 @@ Phosphene runs on Apple Silicon Macs (M1 or newer). This page explains how to in3. Click **Install**. The installer checks your free disk space first. If there is not enough, it stops and shows how much you need and how much you have.4. When the install finishes, click **Start**, then **Open Panel**. The panel opens at `http://127.0.0.1:8198`.-You can start creating as soon as the panel opens. A few extras keep downloading while you work, as listed below.+The app opens after its Python runtime and engine packages are ready, usually in a few minutes. No models download before Start or automatically at first open. Choose what you want to make, then download its model.> **Note** Pinokio cannot install Phosphene on an Intel Mac or on Windows. Linux support on Apple Silicon is a separate community project that Pinokio does not install. See [Linux (community)](https://github.com/mrbizarro/phosphene/blob/main/docs/LINUX.md).[[/pinokio]]@@ -40,8 +40,10 @@ You need an Apple Silicon Mac (M1 or newer).[[pinokio]]| Part | Download | When ||---|---|---|-| **Base install**: LTX-2.5 video engine and its files for reading prompts and showing live previews | 27.5 GB | Before you can click **Start**. You need about **32.5 GB free** to begin |-| **Background extras**: Gemma 3 (for **Enhance** and the Storyboard planner) and four small add-ons (LoRAs) for Upscale & Face Fix, Motion Control, Ingredients and Colorize | 10.7 GB | After **Start**, one at a time while you work. These downloads leave at least 10 GB free |+| **App runtime**: Python and engine packages | About 0.5 GB; package versions can change this | Before **Start**. Allow **18 GB free**, including 15 GB kept free |+| **LTX-2.5 Q4 video models**, including the prompt encoder | About 27.5 GB | Click **Download video models** inside the app. Recommended for your first video |+| **Feature extras**: Gemma 3 for Enhance and the Storyboard planner, plus adapters for Upscale & Face Fix, Motion Control, Ingredients and Colorize | 10.7 GB if you choose all of them | Download only the ones you use, from the feature or **Models** |+| **Image models** | Shown beside the selected model | On the first Generate. FLUX.2 [klein] 4B is a compact starting point, about 4.3 GB || **LTX-2.5 Q8 weights**, for trained characters and voices | 30.02 GB | optional, from **Settings → Models** or the Pinokio sidebar || **High add-on**, for High quality, Keyframes and Extend on LTX | 29.50 GB | Optional, from the Models window (click the health chip, then **Models**) || **Hailuo H3**, the second video engine | about 75 GB | optional, from the Pinokio sidebar. See [Hailuo H3](#docs/hailuo-h3/install) |@@ -60,7 +62,7 @@ You need an Apple Silicon Mac (M1 or newer).| **LTX-2.3**, needed only to *train* a character | about 20 GB, plus about 21 GB for the trainer | Offered when you open **Train Character** |[[/mac-app]]-At a connection speed of 100 Mbps, the base install takes about 37 minutes to download. At 300 Mbps, it takes about 12 minutes; at 1 Gbps, about 4 minutes. Setting up the software adds a few minutes. If a download stops, it resumes where it left off.+At a connection speed of 100 Mbps, the video models take about 37 minutes to download. At 300 Mbps, it takes about 12 minutes; at 1 Gbps, about 4 minutes. The app can stay open while models download. The model card shows bytes received, the current file and any remaining packs. **Stop download** stops the whole video download; click **Download video models** again to resume. Downloaded files stay on disk. Downloads from Models keep 15 GB free and wait if space runs low.If a feature needs an extra that has not finished downloading, it shows a download message or offers **Download now**. It does not fail without a message.@@ -73,7 +75,7 @@ Your Mac's memory determines which quality settings and engines you can use. Pho| Feature | Memory it needs ||---|---|| LTX video and Images | Any Apple Silicon Mac. Below 48 GB, you get smaller video sizes. LTX's High quality, Start & end frame and Extend are hidden. Macs with 24 GB or less automatically use a low-memory video path. |-| Music Studio | 24 GB or more |+| Music Studio | 16 GB or more. 24 GB or more recommended for long songs with other apps open || Training a character | 24 GB or more || Hailuo H3 | 36 GB or more for the compact engine. With 60 GB or more, you can also choose the full engine || LTX High · 720p | A 64 GB Mac; memory use peaks near 50 GB |@@ -150,7 +152,7 @@ Use the table below to match the text after `FATAL error:`:| *the compact Hailuo H3 engine could not be built* | This usually means the disk is full (the build needs about 22 GB). Free space, then click the H3 entry in Pinokio's sidebar again. It rebuilds from the downloaded model files || *a Phosphene render has been running for over 60 minutes, so the compact Hailuo H3 engine was not built* | Wait until Phosphene finishes its current render, then click the H3 entry in Pinokio's sidebar again || *the H3 venv has no working Python* | Click **Repair Hailuo H3** in Pinokio's sidebar. Your downloaded model files are kept |-| *YuE2 (the music engine) needs a Mac with at least 24 GB of memory* | This Mac can't run the music engine. The rest of Phosphene is unaffected |+| *YuE2 (the music engine) needs a Mac with at least 16 GB of memory* | This Mac can't run the music engine. The rest of Phosphene is unaffected || *YuE2 (the music engine) needs at least 14 GB free* | Free the space, then click **Install the music engine** again || *could not download the YuE2 music engine* | Check your internet connection and whether a VPN or proxy is blocking GitHub, then click **Install the music engine** again || *untracked/ignored paths obstruct Update. Move them; nothing deleted.* | Files you added inside the app folder are in the way of the update. The lines just above list them. Move them out of the Phosphene folder, then click **Update** again |@@ -170,7 +172,7 @@ Open the full log with **Open logs folder** on the setup screen or **Help → Op|---|---|| Not enough disk space | Free some space, then click **Resume setup** || No connection, or a VPN or proxy blocks GitHub | Restore your connection to GitHub, then click **Resume setup** |-| Music engine installation stops with a `FATAL error:` line on the **Audio → Compose** card | The card names the cause: the music engine needs **24 GB memory**, **14 GB free disk space** and a connection to GitHub |+| Music engine installation stops with a `FATAL error:` line on the **Audio → Compose** card | The card names the cause: the music engine needs **16 GB memory**, **14 GB free disk space** and a connection to GitHub |To report a problem, use **Help → Report a Bug…** and include the last lines of the log. See [Reporting an issue](#docs/troubleshooting/report).[[/mac-app]]diff --git a/webapp/docs/music.md b/webapp/docs/music.mdindex 6f009ff..64dad5b 100644--- a/webapp/docs/music.md+++ b/webapp/docs/music.md@@ -6,7 +6,7 @@ Open **Audio → Compose** to use Music Studio. It creates complete songs on youThe music engine is a separate download of about **11 GB**.-- **What it needs:** an Apple Silicon Mac with **24 GB of memory or more**, and **14 GB free** on the drive where you store models.+- **What it needs:** an Apple Silicon Mac with **16 GB of memory or more**, and **14 GB free** on the drive where you store models. On a 16 GB Mac, close other apps and browser tabs before you compose.- **How:** open **Audio → Compose**. The form stays greyed out until installation finishes. Click **Install music engine (YuE2, ~11 GB)** on the card, or click **Compose**, to start the download. The card shows your progress.- **Licence:** YuE2 shows a licence screen before download or first use; accept once per Mac unless the licence changes. The weights use CC BY-NC 4.0 (non-commercial use only), with permission for individual creators to sell songs they make; companies need a licence for the weights.[[pinokio]]@@ -110,7 +110,7 @@ Click **Plan the video**. Planning is instant and free. It reads the beat, creatThe median time is about 1.5 minutes on an M4 Max, 3 minutes on an M5 Pro, 5.5 minutes on an M1 Max and 6 minutes on an M4 Pro. Half of songs finish sooner than the median and half take longer. These times come from Phosphene's anonymous usage counts; see the [speed benchmarks](https://phosphene.video/benchmarks/).-- **Memory.** With 8-bit selected, memory use peaks around 11 GB.+- **Memory.** With 8-bit selected, memory use peaks around 11 GB while your song is written. On a 16 GB Mac, close other apps and browser tabs before you compose. We still recommend 24 GB or more for long songs while other apps are open.- **Takes.** Try two or three versions on **Draft**, then create the one you like on **Final**. If you already like a song's tune, use **New take** for another performance.- **Length.** Your lyrics determine the song's length. Short lyrics make a short song even with Max length set to 6 minutes.- **Your own voice.** You cannot train a voice in the panel. You can use voice add-ons made elsewhere through **Voice & style LoRA**.@@ -120,12 +120,13 @@ Click **Plan the video**. Planning is instant and free. It reads the beat, creat| What you see | What to do ||---|---|| Compose stays greyed out | Installation is missing or unfinished. Click **Install music engine** on the card to start or resume it |-| The install stops with a `FATAL error:` line | It names the cause: not enough memory (24 GB), not enough disk (14 GB free) or no connection to GitHub. See [When an install stops](#docs/install/fatal) |+| The install stops with a `FATAL error:` line | It names the cause: not enough memory (16 GB), not enough disk (14 GB free) or no connection to GitHub. See [When an install stops](#docs/install/fatal) |[[pinokio]]| The engine says it's unavailable, but the model files are downloaded | Click **Repair the music engine** in Pinokio's sidebar. You do not need to download the model files again |[[/pinokio]][[mac-app]]| The engine says it's unavailable, but the model files are downloaded | Open **Audio → Compose** and click **Repair music engine**. You do not need to download the model files again |[[/mac-app]]+| *Music Studio stopped your song because your Mac was running low on memory* | Close other apps and browser tabs, then compose again. Nothing was saved for this song || A song waits with *Waiting for the GPU* | Another task is using your Mac's graphics processor. Your song starts when that task finishes. Click **Stop** to cancel the wait || A song was stopped | No partial song is saved. Click **Compose** to queue it again |diff --git a/webapp/docs/one-shot.md b/webapp/docs/one-shot.mdindex 79441e1..ff5ee46 100644--- a/webapp/docs/one-shot.md+++ b/webapp/docs/one-shot.md@@ -4,7 +4,7 @@ One continuous shot of **30 seconds to 2 minutes** that never cuts. You write th## Making one {#make}-1. Choose the **Engine**: **LTX 2.5** renders 10 s parts and is the one for faces, voices and dialogue; **Hailuo H3** renders 15 s parts and is the one for motion, landscapes and crowds.+1. Choose the model in **Model**, at the top of the column: **LTX 2.5** renders 10 s parts and is the one for faces, voices and dialogue; **Hailuo H3** renders 15 s parts and is the one for motion, landscapes and crowds.2. Write **The shot** — who, where, the time of day and the weather, the sound — once, for the whole shot. This is the only thing required.3. Pick a **Length**: 30 s, 45 s, 1 min, 1½ min or 2 min. Each chip shows how many beats and parts it makes.4. Pick a **Quality**. The estimate line says about how long it takes on this Mac.diff --git a/webapp/docs/speech.md b/webapp/docs/speech.mdnew file mode 100644index 0000000..b092118--- /dev/null+++ b/webapp/docs/speech.md@@ -0,0 +1,70 @@+# Speech: turn a script into a voice++**Lip-sync it** adds scene ambience and sound effects by default on LTX-2.5. Describe the setting in the scene prompt, or use **Scene sound description** for specific sounds. Turn **Add scene sound** off for voice only. This adds one sound-generation pass with the installed LTX model. The clean voice still drives the lips; the bed is mixed afterward and lowers during speech. Effects follow the scene description; exact action timing is not guaranteed. Add optional music on the Editor timeline.++Open **Audio → Speech** to turn a script into a spoken WAV file on your Mac. **Speech** sits alongside **Compose** and **Music video**. Choose a preset voice, a saved character's voice or a clip you add. The finished file appears in **Outputs** and can go straight to **Lip-sync**.++## Install Speech {#install}++Speech needs a one-time download of about **6 GB** for the speech engine and two voice models.++- **What it needs:** an Apple Silicon Mac with **16 GB of unified memory or more**, and about **8 GB of free disk** for the install.+- **How:** open **Audio → Speech**. The form stays visible but greyed out until installation finishes. Use the in-app install card or click **Install Speech (~6 GB)**, which appears in place of **Generate**.+- **Pause and resume:** click **Stop** to pause the download. Start the install again to resume it.+- **Licence:** the models use Apache-2.0. There is no licence screen.++After installation, Speech works offline.++## Write your script {#script}++Enter up to 2,000 characters. Each line is spoken in turn, with a short pause between lines. Punctuation shapes the delivery: try !, ? or … where you want emphasis, a question or a pause.++Below the box, “About N s of speech” estimates the length. The app also shows whether your script fits one lip-sync clip: about 10 seconds, or roughly 25 words. Split a longer script into shorter scripts for individual clips.++## Choose a voice {#voice}++- **Preset voice:** choose from nine model voices. Ryan and Aiden are native English speakers. Serena, Vivian, Uncle Fu, Dylan and Eric are native Chinese speakers; Ono Anna is Japanese and Sohee is Korean. All can speak English, with an accent for the non-native English voices. These are the model's own voices, not real people.+- **A character:** use the voice sample a saved character was trained with in the **Train** tab. Only characters with a voice sample appear in the list. Type the words spoken in that sample for a closer copy of the voice; Phosphene remembers them for that character.+- **A clip you add:** add 5–20 seconds of one person speaking clearly, without music. Use WAV, MP3, M4A or FLAC. You can also type the words spoken in the clip for a closer copy of the voice.++## Permission to use a voice {#consent}++Each time you use **A character** or **A clip you add**, tick **This is my voice, or I have the speaker's permission to use it.** The confirmation is saved with the file.++Only clone a voice with the speaker's permission. Never use a cloned voice to deceive. Phosphene's [acceptable-use policy](https://phosphene.video/acceptable-use/) forbids impersonation.++## Adjust the delivery {#controls}++For preset voices, choose a **Delivery**: **Natural**, **Warm**, **Excited**, **Deadpan**, **Dramatic**, **Whisper**, **Sad** or **Angry**. Or type your own direction below the styles, such as “tired, like it's 3 a.m. and the render just failed”. Typed direction takes priority over the selected style.++Character and clip voices have no delivery styles. Their delivery follows the clip's mood and your script's punctuation.++| Control | What it does |+|---|---|+| **Speed** | Set the pace from 0.70× to 1.40×. The pitch stays the same |+| **Advanced → Language** | Choose English, Chinese, Japanese, Korean, German, French, Russian, Portuguese, Spanish or Italian |+| **Advanced → Seed** | The same seed, text and voice give the same take. Leave `-1` for a random seed |++## Generate and use your speech {#generate}++Click **Generate**. Speech joins the same queue as videos and songs, so it waits if a video is rendering. Once it starts, a line takes a few seconds. The finished speech plays right below **Generate**.++- Click **Lip-sync it** to open **Lip-sync** with the audio loaded. Add a picture of the face, then click **Generate**.+- Click **Use this audio for…** to choose **Lip-sync**, **Lip-sync with Hailuo H3** when installed, **Music video**, **Soundtrack for a video** or **Cover it**.++Find the file in **Outputs** using the **Audio** filter. It is a 24 kHz mono WAV. A small `.json` file beside it records the text, voice and seed.++For agents and scripts, use `POST /speech/generate`; see the API doc.++## When something goes wrong {#troubleshooting}++| What you see | What to do |+|---|---|+| Installation failed | Click **Install Speech (~6 GB)** again. The download resumes and keeps finished files |+| “Stopped before the Mac ran out of memory” | Close other apps and browser tabs, then try again |+| A cloned voice sounds off | Use a cleaner 10–15 second clip with no music or background noise, and type its words |+| A preset sounds too flat | Choose a **Delivery** or type your own direction |++## Credits {#credits}++Speech uses Qwen3-TTS by the Qwen team (Apache-2.0), running on Apple's MLX through mlx-audio (MIT).diff --git a/webapp/docs/video.md b/webapp/docs/video.mdindex 48cd128..74cc504 100644--- a/webapp/docs/video.md+++ b/webapp/docs/video.md@@ -1,6 +1,6 @@# Video-The Video tab turns a prompt — and, if you like, an image or a clip — into a video with sound. Pick a mode, write the prompt, choose Quality and Length, press **Generate** ([[sc:prompt.generate]] from the prompt box).+The Video tab turns a prompt — and, if you like, an image or a clip — into a video with sound. Pick the model in **Model**, the first row of the column (it decides which modes and settings are on offer below it), then a mode, write the prompt, choose Quality and Length, press **Generate** ([[sc:prompt.generate]] from the prompt box).## Modes {#modes}diff --git a/webapp/fonts/OFL-archivo.txt b/webapp/fonts/OFL-archivo.txtnew file mode 100644index 0000000..78b7453--- /dev/null+++ b/webapp/fonts/OFL-archivo.txt@@ -0,0 +1,93 @@+Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+http://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/webapp/fonts/OFL-fragment-mono.txt b/webapp/fonts/OFL-fragment-mono.txtnew file mode 100644index 0000000..02349dd--- /dev/null+++ b/webapp/fonts/OFL-fragment-mono.txt@@ -0,0 +1,93 @@+Copyright 2022 The Fragment-Mono Project Authors (https://github.com/weiweihuanghuang/fragment-mono)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/webapp/fonts/OFL-newsreader.txt b/webapp/fonts/OFL-newsreader.txtnew file mode 100644index 0000000..d2d4f40--- /dev/null+++ b/webapp/fonts/OFL-newsreader.txt@@ -0,0 +1,93 @@+Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+http://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.\ No newline at end of filediff --git a/webapp/fonts/archivo-latin-wdth-normal.woff2 b/webapp/fonts/archivo-latin-wdth-normal.woff2new file mode 100644index 0000000..1e261cbBinary files /dev/null and b/webapp/fonts/archivo-latin-wdth-normal.woff2 differdiff --git a/webapp/fonts/fragment-mono-latin-400-normal.woff2 b/webapp/fonts/fragment-mono-latin-400-normal.woff2new file mode 100644index 0000000..057c34fBinary files /dev/null and b/webapp/fonts/fragment-mono-latin-400-normal.woff2 differdiff --git a/webapp/fonts/newsreader-latin-opsz-normal.woff2 b/webapp/fonts/newsreader-latin-opsz-normal.woff2new file mode 100644index 0000000..4b96a88Binary files /dev/null and b/webapp/fonts/newsreader-latin-opsz-normal.woff2 differdiff --git a/webapp/index.html b/webapp/index.htmlindex 7887990..0cb86f6 100644--- a/webapp/index.html+++ b/webapp/index.html@@ -48,6 +48,7 @@<symbol id="ph-check-bold" viewBox="0 0 256 256"><polyline points="40 144 96 200 224 72" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/></symbol><symbol id="ph-download-simple" viewBox="0 0 256 256"><line x1="128" y1="144" x2="128" y2="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><polyline points="216 144 216 208 40 208 40 144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><polyline points="168 104 128 144 88 104" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol><symbol id="ph-film-slate" viewBox="0 0 256 256"><path d="M216,112H40a8,8,0,0,0-8,8v88a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V120A8,8,0,0,0,216,112Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M32,112,50.6,44.7a8,8,0,0,1,9.8-5.6L213.3,80.4a8,8,0,0,1,5.6,9.8L213,112" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="110.1" y1="59.5" x2="83.2" y2="112" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="163.9" y1="74" x2="137" y2="112" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol>+<symbol id="ph-remote" viewBox="0 0 256 256"><rect x="84" y="24" width="88" height="208" rx="28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><circle cx="128" cy="78" r="18" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="108" y1="136" x2="148" y2="136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="16"/><line x1="108" y1="172" x2="148" y2="172" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="16"/><path d="M40 92a96 96 0 0 0 0 72M216 92a96 96 0 0 1 0 72" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="16"/></symbol><symbol id="ph-film-strip" viewBox="0 0 256 256"><rect x="32" y="48" width="192" height="160" rx="8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="128" y1="48" x2="128" y2="208" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="32" y1="80" x2="224" y2="80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="32" y1="176" x2="224" y2="176" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="80" y1="48" x2="80" y2="80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="176" y1="48" x2="176" y2="80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="80" y1="176" x2="80" y2="208" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="176" y1="176" x2="176" y2="208" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol><symbol id="ph-scissors" viewBox="0 0 256 256"><circle cx="76" cy="68" r="28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><circle cx="76" cy="188" r="28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="96.9" y1="86.6" x2="200" y2="200" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="96.9" y1="169.4" x2="200" y2="56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol><symbol id="ph-gear-six" viewBox="0 0 256 256"><circle cx="128" cy="128" r="40" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M130.05,206.11c-1.34,0-2.69,0-4,0L94,224a104.61,104.61,0,0,1-34.11-19.2l-.12-36c-.71-1.12-1.38-2.25-2-3.41L25.9,147.24a99.15,99.15,0,0,1,0-38.46l31.84-18.1c.65-1.15,1.32-2.29,2-3.41l.16-36A104.58,104.58,0,0,1,94,32l32,17.89c1.34,0,2.69,0,4,0L162,32a104.61,104.61,0,0,1,34.11,19.2l.12,36c.71,1.12,1.38,2.25,2,3.41l31.85,18.14a99.15,99.15,0,0,1,0,38.46l-31.84,18.1c-.65,1.15-1.32,2.29-2,3.41l-.16,36A104.58,104.58,0,0,1,162,224Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol>@@ -97,6 +98,12 @@LTX_ENGINE_PREVIEW=1; the symbol is free to sit here regardless. --><symbol id="eng-mark-music" viewBox="0 0 24 24"><path d="M9 18V5l11-2v13M9 8l11-2" fill="none" stroke="currentColor" stroke-width="2"/><ellipse cx="6" cy="18" rx="3" ry="2" fill="currentColor"/><ellipse cx="17" cy="16" rx="3" ry="2" fill="currentColor"/></symbol><symbol id="eng-mark-flux" viewBox="0 0 24 24"><path d="M7.4 17.6V6.4h6.4M7.4 11.6h5" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.4 8.6l3.6 3.4-3.6 3.4" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></symbol>+<!-- Image models (the Images tab's top picker): a frame plus the model's own sign. -->+<symbol id="eng-mark-img-flux2" viewBox="0 0 24 24"><rect x="3.4" y="4.4" width="17.2" height="15.2" rx="2.6" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8.6 15.6V8.6h4.4M8.6 12h3.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="16" cy="15" r="1.4" fill="currentColor"/></symbol>+<symbol id="eng-mark-img-flux3" viewBox="0 0 24 24"><rect x="3.4" y="4.4" width="17.2" height="15.2" rx="2.6" fill="none" stroke="currentColor" stroke-width="2"/><path d="M7.6 15.6V8.6h4.4M7.6 12h3.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.6 15.6v-2M16.6 15.6v-4M18.2 15.6V9.8" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></symbol>+<symbol id="eng-mark-img-edit" viewBox="0 0 24 24"><rect x="3.4" y="4.4" width="13.2" height="13.2" rx="2.4" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12.4 19.6l1-3.4 6-6 2.4 2.4-6 6z" fill="currentColor"/></symbol>+<symbol id="eng-mark-img-ideogram" viewBox="0 0 24 24"><rect x="3.4" y="4.4" width="17.2" height="15.2" rx="2.6" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 9h8M12 9v7" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></symbol>+<symbol id="eng-mark-img-ph3" viewBox="0 0 24 24"><rect x="3.4" y="4.4" width="17.2" height="15.2" rx="2.6" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 8.6v6.8M12.4 8.6v6.8M8 12h4.4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M15.6 10.6v2.8M17.6 9.4v5.2" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></symbol><symbol id="ph-speaker-slash" viewBox="0 0 256 256"><line x1="48" y1="40" x2="208" y2="216" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M80,168H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H80l72-56V147" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M152,179v45L94.4,179.2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></symbol></defs></svg>@@ -147,27 +154,21 @@</div><header>- <!-- THE MARK TURNS, SLOWLY (phosphene.video's header + footer mark). Six- rings of radial dashes, each its OWN <svg> so each ring is an HTML box- the browser can hand to the compositor: the spin and the breathe are- transform-only CSS animations on those boxes (panel.css, .ph-mark), so- a frame of the animation is a GPU re-composite of six textures, never a- repaint, a style recalc or main-thread work while a render runs. Drawn- inline (not an <img>) on purpose: one SVG with animated children would- be repainted on every frame. Geometry = the site's Footer.astro rings;- the wordmark is the old banner PNG's right-hand part. -->+ <!-- Exact Footer.astro mark; the stage clones this markup. --><a href="/" class="brand"><span class="ph-mark" aria-hidden="true">- <span class="ph-mark-halo"></span>- <span class="ph-mk-morph ph-mk-m0"><svg class="ph-mk-spin ph-mk-s0" viewBox="-114 -114 228 228"><path d="M19 0L29 0M18.4 4.9L28 7.5M16.5 9.5L25.1 14.5M13.4 13.4L20.5 20.5M9.5 16.5L14.5 25.1M4.9 18.4L7.5 28M0 19L0 29M-4.9 18.4L-7.5 28M-9.5 16.5L-14.5 25.1M-13.4 13.4L-20.5 20.5M-16.5 9.5L-25.1 14.5M-18.4 4.9L-28 7.5M-19 0L-29 0M-18.4 -4.9L-28 -7.5M-16.5 -9.5L-25.1 -14.5M-13.4 -13.4L-20.5 -20.5M-9.5 -16.5L-14.5 -25.1M-4.9 -18.4L-7.5 -28M0 -19L0 -29M4.9 -18.4L7.5 -28M9.5 -16.5L14.5 -25.1M13.4 -13.4L20.5 -20.5M16.5 -9.5L25.1 -14.5M18.4 -4.9L28 -7.5" stroke="#ff3d86"/></svg></span>- <span class="ph-mk-morph ph-mk-m1"><svg class="ph-mk-spin ph-mk-s1" viewBox="-114 -114 228 228"><path d="M36 0L46 0M35.5 6.3L45.3 8M33.8 12.3L43.2 15.7M31.2 18L39.8 23M27.6 23.1L35.2 29.6M23.1 27.6L29.6 35.2M18 31.2L23 39.8M12.3 33.8L15.7 43.2M6.3 35.5L8 45.3M0 36L0 46M-6.3 35.5L-8 45.3M-12.3 33.8L-15.7 43.2M-18 31.2L-23 39.8M-23.1 27.6L-29.6 35.2M-27.6 23.1L-35.2 29.6M-31.2 18L-39.8 23M-33.8 12.3L-43.2 15.7M-35.5 6.3L-45.3 8M-36 0L-46 0M-35.5 -6.3L-45.3 -8M-33.8 -12.3L-43.2 -15.7M-31.2 -18L-39.8 -23M-27.6 -23.1L-35.2 -29.6M-23.1 -27.6L-29.6 -35.2M-18 -31.2L-23 -39.8M-12.3 -33.8L-15.7 -43.2M-6.3 -35.5L-8 -45.3M0 -36L0 -46M6.3 -35.5L8 -45.3M12.3 -33.8L15.7 -43.2M18 -31.2L23 -39.8M23.1 -27.6L29.6 -35.2M27.6 -23.1L35.2 -29.6M31.2 -18L39.8 -23M33.8 -12.3L43.2 -15.7M35.5 -6.3L45.3 -8" stroke="#e2369a"/></svg></span>- <span class="ph-mk-morph ph-mk-m2"><svg class="ph-mk-spin ph-mk-s2" viewBox="-114 -114 228 228"><path d="M54 0L62 0M53.5 7.7L61.4 8.8M51.8 15.2L59.5 17.5M49.1 22.4L56.4 25.8M45.4 29.2L52.2 33.5M40.8 35.4L46.9 40.6M35.4 40.8L40.6 46.9M29.2 45.4L33.5 52.2M22.4 49.1L25.8 56.4M15.2 51.8L17.5 59.5M7.7 53.5L8.8 61.4M0 54L0 62M-7.7 53.5L-8.8 61.4M-15.2 51.8L-17.5 59.5M-22.4 49.1L-25.8 56.4M-29.2 45.4L-33.5 52.2M-35.4 40.8L-40.6 46.9M-40.8 35.4L-46.9 40.6M-45.4 29.2L-52.2 33.5M-49.1 22.4L-56.4 25.8M-51.8 15.2L-59.5 17.5M-53.5 7.7L-61.4 8.8M-54 0L-62 0M-53.5 -7.7L-61.4 -8.8M-51.8 -15.2L-59.5 -17.5M-49.1 -22.4L-56.4 -25.8M-45.4 -29.2L-52.2 -33.5M-40.8 -35.4L-46.9 -40.6M-35.4 -40.8L-40.6 -46.9M-29.2 -45.4L-33.5 -52.2M-22.4 -49.1L-25.8 -56.4M-15.2 -51.8L-17.5 -59.5M-7.7 -53.5L-8.8 -61.4M0 -54L0 -62M7.7 -53.5L8.8 -61.4M15.2 -51.8L17.5 -59.5M22.4 -49.1L25.8 -56.4M29.2 -45.4L33.5 -52.2M35.4 -40.8L40.6 -46.9M40.8 -35.4L46.9 -40.6M45.4 -29.2L52.2 -33.5M49.1 -22.4L56.4 -25.8M51.8 -15.2L59.5 -17.5M53.5 -7.7L61.4 -8.8" stroke="#ba5ce4"/></svg></span>- <span class="ph-mk-morph ph-mk-m3"><svg class="ph-mk-spin ph-mk-s3" viewBox="-114 -114 228 228"><path d="M71 0L80 0M70.6 7.9L79.5 9M69.2 15.8L78 17.8M67 23.4L75.5 26.4M64 30.8L72.1 34.7M60.1 37.8L67.7 42.6M55.5 44.3L62.5 49.9M50.2 50.2L56.6 56.6M44.3 55.5L49.9 62.5M37.8 60.1L42.6 67.7M30.8 64L34.7 72.1M23.4 67L26.4 75.5M15.8 69.2L17.8 78M7.9 70.6L9 79.5M0 71L0 80M-7.9 70.6L-9 79.5M-15.8 69.2L-17.8 78M-23.4 67L-26.4 75.5M-30.8 64L-34.7 72.1M-37.8 60.1L-42.6 67.7M-44.3 55.5L-49.9 62.5M-50.2 50.2L-56.6 56.6M-55.5 44.3L-62.5 49.9M-60.1 37.8L-67.7 42.6M-64 30.8L-72.1 34.7M-67 23.4L-75.5 26.4M-69.2 15.8L-78 17.8M-70.6 7.9L-79.5 9M-71 0L-80 0M-70.6 -7.9L-79.5 -9M-69.2 -15.8L-78 -17.8M-67 -23.4L-75.5 -26.4M-64 -30.8L-72.1 -34.7M-60.1 -37.8L-67.7 -42.6M-55.5 -44.3L-62.5 -49.9M-50.2 -50.2L-56.6 -56.6M-44.3 -55.5L-49.9 -62.5M-37.8 -60.1L-42.6 -67.7M-30.8 -64L-34.7 -72.1M-23.4 -67L-26.4 -75.5M-15.8 -69.2L-17.8 -78M-7.9 -70.6L-9 -79.5M0 -71L0 -80M7.9 -70.6L9 -79.5M15.8 -69.2L17.8 -78M23.4 -67L26.4 -75.5M30.8 -64L34.7 -72.1M37.8 -60.1L42.6 -67.7M44.3 -55.5L49.9 -62.5M50.2 -50.2L56.6 -56.6M55.5 -44.3L62.5 -49.9M60.1 -37.8L67.7 -42.6M64 -30.8L72.1 -34.7M67 -23.4L75.5 -26.4M69.2 -15.8L78 -17.8M70.6 -7.9L79.5 -9" stroke="#8e4ddf"/></svg></span>- <span class="ph-mk-morph ph-mk-m4"><svg class="ph-mk-spin ph-mk-s4" viewBox="-114 -114 228 228"><path d="M87 0L95 0M86.6 8.3L94.6 9M85.4 16.5L93.3 18M83.5 24.5L91.2 26.8M80.8 32.3L88.2 35.3M77.3 39.9L84.4 43.5M73.2 47L79.9 51.4M68.4 53.8L74.7 58.7M63 60L68.8 65.6M57 65.8L62.2 71.8M50.5 70.9L55.1 77.4M43.5 75.3L47.5 82.3M36.1 79.1L39.5 86.4M28.5 82.2L31.1 89.8M20.5 84.5L22.4 92.3M12.4 86.1L13.5 94M4.1 86.9L4.5 94.9M-4.1 86.9L-4.5 94.9M-12.4 86.1L-13.5 94M-20.5 84.5L-22.4 92.3M-28.5 82.2L-31.1 89.8M-36.1 79.1L-39.5 86.4M-43.5 75.3L-47.5 82.3M-50.5 70.9L-55.1 77.4M-57 65.8L-62.2 71.8M-63 60L-68.8 65.6M-68.4 53.8L-74.7 58.7M-73.2 47L-79.9 51.4M-77.3 39.9L-84.4 43.5M-80.8 32.3L-88.2 35.3M-83.5 24.5L-91.2 26.8M-85.4 16.5L-93.3 18M-86.6 8.3L-94.6 9M-87 0L-95 0M-86.6 -8.3L-94.6 -9M-85.4 -16.5L-93.3 -18M-83.5 -24.5L-91.2 -26.8M-80.8 -32.3L-88.2 -35.3M-77.3 -39.9L-84.4 -43.5M-73.2 -47L-79.9 -51.4M-68.4 -53.8L-74.7 -58.7M-63 -60L-68.8 -65.6M-57 -65.8L-62.2 -71.8M-50.5 -70.9L-55.1 -77.4M-43.5 -75.3L-47.5 -82.3M-36.1 -79.1L-39.5 -86.4M-28.5 -82.2L-31.1 -89.8M-20.5 -84.5L-22.4 -92.3M-12.4 -86.1L-13.5 -94M-4.1 -86.9L-4.5 -94.9M4.1 -86.9L4.5 -94.9M12.4 -86.1L13.5 -94M20.5 -84.5L22.4 -92.3M28.5 -82.2L31.1 -89.8M36.1 -79.1L39.5 -86.4M43.5 -75.3L47.5 -82.3M50.5 -70.9L55.1 -77.4M57 -65.8L62.2 -71.8M63 -60L68.8 -65.6M68.4 -53.8L74.7 -58.7M73.2 -47L79.9 -51.4M77.3 -39.9L84.4 -43.5M80.8 -32.3L88.2 -35.3M83.5 -24.5L91.2 -26.8M85.4 -16.5L93.3 -18M86.6 -8.3L94.6 -9" stroke="#6f7cf0"/></svg></span>- <span class="ph-mk-morph ph-mk-m5"><svg class="ph-mk-spin ph-mk-s5" viewBox="-114 -114 228 228"><path d="M103 0L111 0M102.7 8.1L110.7 8.7M101.7 16.1L109.6 17.4M100.2 24L107.9 25.9M98 31.8L105.6 34.3M95.2 39.4L102.6 42.5M91.8 46.8L98.9 50.4M87.8 53.8L94.6 58M83.3 60.5L89.8 65.2M78.3 66.9L84.4 72.1M72.8 72.8L78.5 78.5M66.9 78.3L72.1 84.4M60.5 83.3L65.2 89.8M53.8 87.8L58 94.6M46.8 91.8L50.4 98.9M39.4 95.2L42.5 102.6M31.8 98L34.3 105.6M24 100.2L25.9 107.9M16.1 101.7L17.4 109.6M8.1 102.7L8.7 110.7M0 103L0 111M-8.1 102.7L-8.7 110.7M-16.1 101.7L-17.4 109.6M-24 100.2L-25.9 107.9M-31.8 98L-34.3 105.6M-39.4 95.2L-42.5 102.6M-46.8 91.8L-50.4 98.9M-53.8 87.8L-58 94.6M-60.5 83.3L-65.2 89.8M-66.9 78.3L-72.1 84.4M-72.8 72.8L-78.5 78.5M-78.3 66.9L-84.4 72.1M-83.3 60.5L-89.8 65.2M-87.8 53.8L-94.6 58M-91.8 46.8L-98.9 50.4M-95.2 39.4L-102.6 42.5M-98 31.8L-105.6 34.3M-100.2 24L-107.9 25.9M-101.7 16.1L-109.6 17.4M-102.7 8.1L-110.7 8.7M-103 0L-111 0M-102.7 -8.1L-110.7 -8.7M-101.7 -16.1L-109.6 -17.4M-100.2 -24L-107.9 -25.9M-98 -31.8L-105.6 -34.3M-95.2 -39.4L-102.6 -42.5M-91.8 -46.8L-98.9 -50.4M-87.8 -53.8L-94.6 -58M-83.3 -60.5L-89.8 -65.2M-78.3 -66.9L-84.4 -72.1M-72.8 -72.8L-78.5 -78.5M-66.9 -78.3L-72.1 -84.4M-60.5 -83.3L-65.2 -89.8M-53.8 -87.8L-58 -94.6M-46.8 -91.8L-50.4 -98.9M-39.4 -95.2L-42.5 -102.6M-31.8 -98L-34.3 -105.6M-24 -100.2L-25.9 -107.9M-16.1 -101.7L-17.4 -109.6M-8.1 -102.7L-8.7 -110.7M0 -103L0 -111M8.1 -102.7L8.7 -110.7M16.1 -101.7L17.4 -109.6M24 -100.2L25.9 -107.9M31.8 -98L34.3 -105.6M39.4 -95.2L42.5 -102.6M46.8 -91.8L50.4 -98.9M53.8 -87.8L58 -94.6M60.5 -83.3L65.2 -89.8M66.9 -78.3L72.1 -84.4M72.8 -72.8L78.5 -78.5M78.3 -66.9L84.4 -72.1M83.3 -60.5L89.8 -65.2M87.8 -53.8L94.6 -58M91.8 -46.8L98.9 -50.4M95.2 -39.4L102.6 -42.5M98 -31.8L105.6 -34.3M100.2 -24L107.9 -25.9M101.7 -16.1L109.6 -17.4M102.7 -8.1L110.7 -8.7" stroke="#37cfe3"/></svg></span>- <span class="ph-mark-core"></span>+ <svg class="foot-mark" viewBox="-112 -114 224 228" width="224" height="228">+ <g class="fm-morph fm-m0"><g class="fm-spin fm-s0"><path d="M19.00 0.00L29.00 0.00M18.35 4.92L28.01 7.51M16.45 9.50L25.11 14.50M13.44 13.44L20.51 20.51M9.50 16.45L14.50 25.11M4.92 18.35L7.51 28.01M0.00 19.00L0.00 29.00M-4.92 18.35L-7.51 28.01M-9.50 16.45L-14.50 25.11M-13.44 13.44L-20.51 20.51M-16.45 9.50L-25.11 14.50M-18.35 4.92L-28.01 7.51M-19.00 0.00L-29.00 0.00M-18.35 -4.92L-28.01 -7.51M-16.45 -9.50L-25.11 -14.50M-13.44 -13.44L-20.51 -20.51M-9.50 -16.45L-14.50 -25.11M-4.92 -18.35L-7.51 -28.01M-0.00 -19.00L-0.00 -29.00M4.92 -18.35L7.51 -28.01M9.50 -16.45L14.50 -25.11M13.44 -13.44L20.51 -20.51M16.45 -9.50L25.11 -14.50M18.35 -4.92L28.01 -7.51" stroke="#ff3d86" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <g class="fm-morph fm-m1"><g class="fm-spin fm-s1"><path d="M36.00 0.00L46.00 0.00M35.45 6.25L45.30 7.99M33.83 12.31L43.23 15.73M31.18 18.00L39.84 23.00M27.58 23.14L35.24 29.57M23.14 27.58L29.57 35.24M18.00 31.18L23.00 39.84M12.31 33.83L15.73 43.23M6.25 35.45L7.99 45.30M0.00 36.00L0.00 46.00M-6.25 35.45L-7.99 45.30M-12.31 33.83L-15.73 43.23M-18.00 31.18L-23.00 39.84M-23.14 27.58L-29.57 35.24M-27.58 23.14L-35.24 29.57M-31.18 18.00L-39.84 23.00M-33.83 12.31L-43.23 15.73M-35.45 6.25L-45.30 7.99M-36.00 0.00L-46.00 0.00M-35.45 -6.25L-45.30 -7.99M-33.83 -12.31L-43.23 -15.73M-31.18 -18.00L-39.84 -23.00M-27.58 -23.14L-35.24 -29.57M-23.14 -27.58L-29.57 -35.24M-18.00 -31.18L-23.00 -39.84M-12.31 -33.83L-15.73 -43.23M-6.25 -35.45L-7.99 -45.30M-0.00 -36.00L-0.00 -46.00M6.25 -35.45L7.99 -45.30M12.31 -33.83L15.73 -43.23M18.00 -31.18L23.00 -39.84M23.14 -27.58L29.57 -35.24M27.58 -23.14L35.24 -29.57M31.18 -18.00L39.84 -23.00M33.83 -12.31L43.23 -15.73M35.45 -6.25L45.30 -7.99" stroke="#e2369a" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <g class="fm-morph fm-m2"><g class="fm-spin fm-s2"><path d="M54.00 0.00L62.00 0.00M53.45 7.69L61.37 8.82M51.81 15.21L59.49 17.47M49.12 22.43L56.40 25.76M45.43 29.19L52.16 33.52M40.81 35.36L46.86 40.60M35.36 40.81L40.60 46.86M29.19 45.43L33.52 52.16M22.43 49.12L25.76 56.40M15.21 51.81L17.47 59.49M7.69 53.45L8.82 61.37M0.00 54.00L0.00 62.00M-7.69 53.45L-8.82 61.37M-15.21 51.81L-17.47 59.49M-22.43 49.12L-25.76 56.40M-29.19 45.43L-33.52 52.16M-35.36 40.81L-40.60 46.86M-40.81 35.36L-46.86 40.60M-45.43 29.19L-52.16 33.52M-49.12 22.43L-56.40 25.76M-51.81 15.21L-59.49 17.47M-53.45 7.69L-61.37 8.82M-54.00 0.00L-62.00 0.00M-53.45 -7.69L-61.37 -8.82M-51.81 -15.21L-59.49 -17.47M-49.12 -22.43L-56.40 -25.76M-45.43 -29.19L-52.16 -33.52M-40.81 -35.36L-46.86 -40.60M-35.36 -40.81L-40.60 -46.86M-29.19 -45.43L-33.52 -52.16M-22.43 -49.12L-25.76 -56.40M-15.21 -51.81L-17.47 -59.49M-7.69 -53.45L-8.82 -61.37M-0.00 -54.00L-0.00 -62.00M7.69 -53.45L8.82 -61.37M15.21 -51.81L17.47 -59.49M22.43 -49.12L25.76 -56.40M29.19 -45.43L33.52 -52.16M35.36 -40.81L40.60 -46.86M40.81 -35.36L46.86 -40.60M45.43 -29.19L52.16 -33.52M49.12 -22.43L56.40 -25.76M51.81 -15.21L59.49 -17.47M53.45 -7.69L61.37 -8.82" stroke="#ba5ce4" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <g class="fm-morph fm-m3"><g class="fm-spin fm-s3"><path d="M71.00 0.00L80.00 0.00M70.55 7.95L79.50 8.96M69.22 15.80L77.99 17.80M67.02 23.45L75.51 26.42M63.97 30.81L72.08 34.71M60.12 37.77L67.74 42.56M55.51 44.27L62.55 49.88M50.20 50.20L56.57 56.57M44.27 55.51L49.88 62.55M37.77 60.12L42.56 67.74M30.81 63.97L34.71 72.08M23.45 67.02L26.42 75.51M15.80 69.22L17.80 77.99M7.95 70.55L8.96 79.50M0.00 71.00L0.00 80.00M-7.95 70.55L-8.96 79.50M-15.80 69.22L-17.80 77.99M-23.45 67.02L-26.42 75.51M-30.81 63.97L-34.71 72.08M-37.77 60.12L-42.56 67.74M-44.27 55.51L-49.88 62.55M-50.20 50.20L-56.57 56.57M-55.51 44.27L-62.55 49.88M-60.12 37.77L-67.74 42.56M-63.97 30.81L-72.08 34.71M-67.02 23.45L-75.51 26.42M-69.22 15.80L-77.99 17.80M-70.55 7.95L-79.50 8.96M-71.00 0.00L-80.00 0.00M-70.55 -7.95L-79.50 -8.96M-69.22 -15.80L-77.99 -17.80M-67.02 -23.45L-75.51 -26.42M-63.97 -30.81L-72.08 -34.71M-60.12 -37.77L-67.74 -42.56M-55.51 -44.27L-62.55 -49.88M-50.20 -50.20L-56.57 -56.57M-44.27 -55.51L-49.88 -62.55M-37.77 -60.12L-42.56 -67.74M-30.81 -63.97L-34.71 -72.08M-23.45 -67.02L-26.42 -75.51M-15.80 -69.22L-17.80 -77.99M-7.95 -70.55L-8.96 -79.50M-0.00 -71.00L-0.00 -80.00M7.95 -70.55L8.96 -79.50M15.80 -69.22L17.80 -77.99M23.45 -67.02L26.42 -75.51M30.81 -63.97L34.71 -72.08M37.77 -60.12L42.56 -67.74M44.27 -55.51L49.88 -62.55M50.20 -50.20L56.57 -56.57M55.51 -44.27L62.55 -49.88M60.12 -37.77L67.74 -42.56M63.97 -30.81L72.08 -34.71M67.02 -23.45L75.51 -26.42M69.22 -15.80L77.99 -17.80M70.55 -7.95L79.50 -8.96" stroke="#8e4ddf" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <g class="fm-morph fm-m4"><g class="fm-spin fm-s4"><path d="M87.00 0.00L95.00 0.00M86.61 8.27L94.57 9.03M85.43 16.46L93.28 17.98M83.48 24.51L91.15 26.76M80.77 32.33L88.19 35.31M77.33 39.87L84.44 43.53M73.19 47.04L79.92 51.36M68.39 53.78L74.68 58.73M62.96 60.04L68.75 65.56M56.97 65.75L62.21 71.80M50.46 70.87L55.11 77.38M43.50 75.34L47.50 82.27M36.14 79.14L39.46 86.42M28.45 82.22L31.07 89.78M20.51 84.55L22.40 92.32M12.38 86.11L13.52 94.03M4.14 86.90L4.52 94.89M-4.14 86.90L-4.52 94.89M-12.38 86.11L-13.52 94.03M-20.51 84.55L-22.40 92.32M-28.45 82.22L-31.07 89.78M-36.14 79.14L-39.46 86.42M-43.50 75.34L-47.50 82.27M-50.46 70.87L-55.11 77.38M-56.97 65.75L-62.21 71.80M-62.96 60.04L-68.75 65.56M-68.39 53.78L-74.68 58.73M-73.19 47.04L-79.92 51.36M-77.33 39.87L-84.44 43.53M-80.77 32.33L-88.19 35.31M-83.48 24.51L-91.15 26.76M-85.43 16.46L-93.28 17.98M-86.61 8.27L-94.57 9.03M-87.00 0.00L-95.00 0.00M-86.61 -8.27L-94.57 -9.03M-85.43 -16.46L-93.28 -17.98M-83.48 -24.51L-91.15 -26.76M-80.77 -32.33L-88.19 -35.31M-77.33 -39.87L-84.44 -43.53M-73.19 -47.04L-79.92 -51.36M-68.39 -53.78L-74.68 -58.73M-62.96 -60.04L-68.75 -65.56M-56.97 -65.75L-62.21 -71.80M-50.46 -70.87L-55.11 -77.38M-43.50 -75.34L-47.50 -82.27M-36.14 -79.14L-39.46 -86.42M-28.45 -82.22L-31.07 -89.78M-20.51 -84.55L-22.40 -92.32M-12.38 -86.11L-13.52 -94.03M-4.14 -86.90L-4.52 -94.89M4.14 -86.90L4.52 -94.89M12.38 -86.11L13.52 -94.03M20.51 -84.55L22.40 -92.32M28.45 -82.22L31.07 -89.78M36.14 -79.14L39.46 -86.42M43.50 -75.34L47.50 -82.27M50.46 -70.87L55.11 -77.38M56.97 -65.75L62.21 -71.80M62.96 -60.04L68.75 -65.56M68.39 -53.78L74.68 -58.73M73.19 -47.04L79.92 -51.36M77.33 -39.87L84.44 -43.53M80.77 -32.33L88.19 -35.31M83.48 -24.51L91.15 -26.76M85.43 -16.46L93.28 -17.98M86.61 -8.27L94.57 -9.03" stroke="#6f7cf0" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <g class="fm-morph fm-m5"><g class="fm-spin fm-s5"><path d="M103.00 0.00L111.00 0.00M102.68 8.08L110.66 8.71M101.73 16.11L109.63 17.36M100.15 24.04L107.93 25.91M97.96 31.83L105.57 34.30M95.16 39.42L102.55 42.48M91.77 46.76L98.90 50.39M87.82 53.82L94.64 58.00M83.33 60.54L89.80 65.24M78.32 66.89L84.41 72.09M72.83 72.83L78.49 78.49M66.89 78.32L72.09 84.41M60.54 83.33L65.24 89.80M53.82 87.82L58.00 94.64M46.76 91.77L50.39 98.90M39.42 95.16L42.48 102.55M31.83 97.96L34.30 105.57M24.04 100.15L25.91 107.93M16.11 101.73L17.36 109.63M8.08 102.68L8.71 110.66M0.00 103.00L0.00 111.00M-8.08 102.68L-8.71 110.66M-16.11 101.73L-17.36 109.63M-24.04 100.15L-25.91 107.93M-31.83 97.96L-34.30 105.57M-39.42 95.16L-42.48 102.55M-46.76 91.77L-50.39 98.90M-53.82 87.82L-58.00 94.64M-60.54 83.33L-65.24 89.80M-66.89 78.32L-72.09 84.41M-72.83 72.83L-78.49 78.49M-78.32 66.89L-84.41 72.09M-83.33 60.54L-89.80 65.24M-87.82 53.82L-94.64 58.00M-91.77 46.76L-98.90 50.39M-95.16 39.42L-102.55 42.48M-97.96 31.83L-105.57 34.30M-100.15 24.04L-107.93 25.91M-101.73 16.11L-109.63 17.36M-102.68 8.08L-110.66 8.71M-103.00 0.00L-111.00 0.00M-102.68 -8.08L-110.66 -8.71M-101.73 -16.11L-109.63 -17.36M-100.15 -24.04L-107.93 -25.91M-97.96 -31.83L-105.57 -34.30M-95.16 -39.42L-102.55 -42.48M-91.77 -46.76L-98.90 -50.39M-87.82 -53.82L-94.64 -58.00M-83.33 -60.54L-89.80 -65.24M-78.32 -66.89L-84.41 -72.09M-72.83 -72.83L-78.49 -78.49M-66.89 -78.32L-72.09 -84.41M-60.54 -83.33L-65.24 -89.80M-53.82 -87.82L-58.00 -94.64M-46.76 -91.77L-50.39 -98.90M-39.42 -95.16L-42.48 -102.55M-31.83 -97.96L-34.30 -105.57M-24.04 -100.15L-25.91 -107.93M-16.11 -101.73L-17.36 -109.63M-8.08 -102.68L-8.71 -110.66M-0.00 -103.00L-0.00 -111.00M8.08 -102.68L8.71 -110.66M16.11 -101.73L17.36 -109.63M24.04 -100.15L25.91 -107.93M31.83 -97.96L34.30 -105.57M39.42 -95.16L42.48 -102.55M46.76 -91.77L50.39 -98.90M53.82 -87.82L58.00 -94.64M60.54 -83.33L65.24 -89.80M66.89 -78.32L72.09 -84.41M72.83 -72.83L78.49 -78.49M78.32 -66.89L84.41 -72.09M83.33 -60.54L89.80 -65.24M87.82 -53.82L94.64 -58.00M91.77 -46.76L98.90 -50.39M95.16 -39.42L102.55 -42.48M97.96 -31.83L105.57 -34.30M100.15 -24.04L107.93 -25.91M101.73 -16.11L109.63 -17.36M102.68 -8.08L110.66 -8.71" stroke="#37cfe3" stroke-width="2.6" stroke-linecap="round" fill="none" /></g></g>+ <circle class="fm-core" r="5" fill="#f8e24e" />+ </svg></span><img class="brand-word" src="/assets/phosphene_wordtext.png" alt="Phosphene">+ <span id="proMark" class="pro-mark" hidden title="Phosphene Pro is active on this Mac"><span class="pro-mark-dash" aria-hidden="true"></span>PRO</span></a><!-- The standalone version badge is gone: #versionPill already carries theversion in EVERY state it can be in — "Up to date · 4.2.0",@@ -187,8 +188,6 @@can't run any optional engine has nothing to choose between, and theswitcher and its divider both disappear (the same gate the old inline#engineRow had, preserved). -->- <div class="engine-switch" id="engineSwitch" role="group" aria-label="Render engine" hidden></div>- <span class="hdr-div" id="engineSwitchDivider" hidden></span><!-- Hardware tier badge — clickable, opens a dialog explaining whatthis Mac's RAM tier allows. Modes / qualities the tier doesn'tsupport are visibly disabled in the form below. -->@@ -284,23 +283,7 @@<path d="M17.2 17c2.1.2 3.8 1.9 3.8 4"></path></svg></button>- <!-- Settings cog: opens the modal that lets users pick output codec- presets (Standard / Video production / Web / Custom). Sits between the- runtime pills and Stop Comfy so it's findable but not loud. -->- <button id="settingsBtn" class="icon-btn" onclick="openSettingsModal()" aria-label="Settings" title="Settings — models, rendering, output, accounts">- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">- <circle cx="12" cy="12" r="3"></circle>- <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path>- </svg>- </button>- <!-- DOCS. The manual gets a door of its own beside the gear, with a WORD on- it: an icon alone is the discoverability problem the Docs exist to fix- (users asked for features that already shipped because nothing on- screen used their words). ? opens it too, on the shortcuts page. -->- <button id="docsBtn" type="button" class="icon-btn docs-btn" onclick="openDocs()"- data-shortcut="docs.open" title="Docs — how every tool works, and every shortcut">- <svg class="ph" aria-hidden="true"><use href="#ph-book-open"/></svg><span class="docs-btn-word">Docs</span>- </button>+ <button id="proBtn" type="button" class="ghost-btn pro-entry" onclick="openProModal(this)" aria-haspopup="dialog" hidden>Pro</button><button id="stopComfyBtn" class="ghost-btn" style="display:none" onclick="api('/stop_comfy', 'POST').then(poll)">Stop Comfy</button><!-- Official Phosphene account on X (2026-05-18). Sits next to the"by Bizarro" creator credit so the two brand links read as a@@ -314,7 +297,7 @@prompt: no badge, no pulse, no counter. --><a class="icon-btn star-link" id="starLink"href="https://github.com/mrbizarro/phosphene" target="_blank" rel="noopener"- aria-label="Star Phosphene on GitHub" title="Star Phosphene on GitHub — it is how people find it">+ aria-label="Star Phosphene on GitHub" title="Star Phosphene on GitHub"><svg class="ph" aria-hidden="true"><use href="#ph-star"/></svg></a><a class="phosphene-x-link" href="https://x.com/PhospheneAI" target="_blank" rel="noopener"@@ -330,9 +313,16 @@<main class="layout">- <!-- ============== FORM PANE ============== -->- <aside class="form-pane">-+ <!-- THE TOOL RAIL (redesign v2.1). The studio's places, as an app holds+ them: a column of icons with their names, down the left edge, the+ current one marked. v2 put them in the title bar as the website's+ word menu, and a word menu is a page's navigation, not a tool+ switcher: it crowded the bar, lost the icons people scan by, and had+ nowhere to grow. A rail takes a new place as one more row. Absolutely+ positioned inside main.layout (which pads for it), so no grid column+ rule anywhere has to learn about it. Docs and Settings sit at its+ foot, where an app keeps them. -->+ <aside class="tool-rail" id="toolRail" aria-label="Studio"><!-- Workflow tabs: Manual (the unified generate form), Characters(pick a trained character + scene + ship), Train (train newcharacter LoRAs). Default = manual; the choice persists in@@ -362,10 +352,167 @@<button data-workflow="editor" role="tab" aria-selected="false"><svg class="ph wf-icon" aria-hidden="true"><use href="#ph-scissors"/></svg>Editor</button><button data-workflow="audio" role="tab" aria-selected="false"><svg class="ph wf-icon" aria-hidden="true"><use href="#ph-music-notes"/></svg>Audio<span class="new-badge">NEW</span></button><button data-workflow="train" role="tab" aria-selected="false"><svg class="ph wf-icon" aria-hidden="true"><use href="#ph-user-plus"/></svg>Train Character</button>+ <!-- Remote Control: drive this Mac from the iPhone app. The page is Studio UI; the+ working parts are Pro-only and come from the Pro pack (see panel/routes_remote.py). -->+ <button data-workflow="remote" role="tab" aria-selected="false"><svg class="ph wf-icon" aria-hidden="true"><use href="#ph-remote"/></svg>Remote Control<span class="new-badge">SOON</span></button></nav>+ <div class="rail-foot">+ <!-- DOCS. The manual gets a door of its own beside the gear, with a WORD on+ it: an icon alone is the discoverability problem the Docs exist to fix+ (users asked for features that already shipped because nothing on+ screen used their words). ? opens it too, on the shortcuts page. -->+ <button id="docsBtn" type="button" class="icon-btn docs-btn" onclick="openDocs()"+ data-shortcut="docs.open" title="Docs on phosphene.video — how every tool works, and every shortcut (opens in your browser)">+ <svg class="ph" aria-hidden="true"><use href="#ph-book-open"/></svg><span class="docs-btn-word">Docs</span>+ </button>+ <!-- Settings cog: opens the modal that lets users pick output codec+ presets (Standard / Video production / Web / Custom). Sits between the+ runtime pills and Stop Comfy so it's findable but not loud. -->+ <button id="settingsBtn" class="icon-btn" onclick="openSettingsModal()" aria-label="Settings" title="Settings — models, rendering, output, accounts">+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">+ <circle cx="12" cy="12" r="3"></circle>+ <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path>+ </svg><span class="rail-label">Settings</span>+ </button>+ </div>+ </aside>++++ <!-- ============== REMOTE CONTROL PAGE ============== -->+ <section class="remote-page" id="remoteSection" aria-labelledby="rmTitle" hidden>+ <div class="rm-wrap">+ <header class="rm-head">+ <div class="rm-mark" aria-hidden="true"><svg class="ph"><use href="#ph-remote"/></svg></div>+ <div class="rm-head-text">+ <h2 id="rmTitle">Remote Control</h2>+ <p class="rm-lede">Control Phosphene from your iPhone: send prompts, watch progress, play and save finished clips. Your Mac does the rendering.</p>+ </div>+ <div class="rm-conn" id="rmConn" role="status" aria-live="polite">+ <span class="rm-dot" id="rmConnDot"></span><span id="rmConnText">Checking…</span>+ </div>+ </header>++ <div class="rm-pro" id="rmPro" hidden>+ <div class="rm-pro-copy">+ <span class="rm-pro-kicker">Phosphene Pro · coming soon</span>+ <strong>Remote Control comes with Phosphene Pro.</strong>+ <p>The Phosphene Remote iPhone app is coming soon. Pro members can use it as soon as it is out.</p>+ <p>Use your iPhone to start renders, follow their progress and save finished clips. Your Mac does the rendering.</p>+ <ul class="rm-pro-list">+ <li>Write a prompt and pick settings on your phone</li>+ <li>See progress and get the clip when it's done</li>+ <li>Play it and save it to your Photos</li>+ </ul>+ <p class="rm-pro-note">Pro supports the open-source project.</p>+ <div class="rm-pro-actions">+ <a class="rm-btn primary" href="https://phosphene.video/pricing/" target="_blank" rel="noopener">See Phosphene Pro</a>+ <a class="rm-btn" href="https://phosphene.video/remote/" target="_blank" rel="noopener">How Remote Control works</a>+ </div>+ </div>+ <div class="rm-pro-phone" aria-hidden="true">+ <video src="/assets/remote/remote-film.mp4" poster="/assets/remote/remote-film.webp" muted loop autoplay playsinline preload="metadata"></video>+ </div>+ </div>++ <!-- A Pro member whose studio has no Remote module yet (the Pro pack is still installing,+ or this is the free build on a Pro Mac): status, never the upsell above. -->+ <div class="rm-card rm-pro-wait" id="rmProWait" hidden>+ <h3>Remote Control is not set up yet</h3>+ <p>Your Pro licence is active. Remote Control turns on once the Pro components finish installing; this page updates by itself.</p>+ </div>++ <div class="rm-grid" id="rmMain" hidden>+ <section class="rm-card rm-pair" aria-labelledby="rmPairTitle">+ <h3 id="rmPairTitle">Pair your iPhone</h3>+ <ol class="rm-steps">+ <li><span class="rm-n">1</span><div><b>Get the iPhone app.</b> <em>Phosphene Remote</em> for iPhone is coming soon. Once it is out, pair it here.</div></li>+ <li><span class="rm-n">2</span><div><b>Scan this code.</b> Open the app, tap <em>Pair with a Mac</em> and point it here. Same Wi-Fi is the easiest way.</div></li>+ <li><span class="rm-n">3</span><div><b>Allow it on this Mac.</b> Check both screens show the same 6 digits, then press Allow.</div></li>+ </ol>+ <div class="rm-stage" id="rmStage">+ <div class="rm-qr-idle" id="rmQrIdle">+ <div class="rm-qr-ghost" aria-hidden="true"></div>+ <button type="button" class="rm-btn primary" id="rmPairBtn">Show pairing code</button>+ </div>+ <div class="rm-qr-live" id="rmQrLive" hidden>+ <div class="rm-qr-tile"><canvas id="rmQr" width="320" height="320" aria-label="Pairing code to scan with the Phosphene Remote app"></canvas></div>+ <div class="rm-qr-meta">+ <span id="rmCountdown" class="rm-mono">5:00</span>+ <span class="rm-sep">·</span><span>one phone, one use</span>+ <button type="button" class="rm-link" id="rmQrCancel">Cancel</button>+ </div>+ </div>+ <div class="rm-allow" id="rmAllow" hidden>+ <div class="rm-allow-head"><span class="rm-pulse"></span><span id="rmAllowName">A phone</span> wants to pair</div>+ <div class="rm-code" id="rmAllowCode" aria-label="Pairing code">000 000</div>+ <p class="rm-hint">Allow only if your iPhone shows the same 6 digits.</p>+ <fieldset class="rm-scope">+ <legend class="sr-only">Which clips this phone can see</legend>+ <label><input type="radio" name="rmScope" value="all" checked> <span>All my clips</span></label>+ <label><input type="radio" name="rmScope" value="own"> <span>Only clips made from that phone</span></label>+ </fieldset>+ <div class="rm-allow-actions">+ <button type="button" class="rm-btn primary" id="rmAllowYes">Allow</button>+ <button type="button" class="rm-btn" id="rmAllowNo">Don't allow</button>+ </div>+ </div>+ </div>+ <p class="rm-error" id="rmError" role="alert" hidden></p>+ </section>++ <div class="rm-col">+ <section class="rm-card" aria-labelledby="rmPhonesTitle">+ <div class="rm-card-head"><h3 id="rmPhonesTitle">Paired phones</h3><span class="rm-count" id="rmPhonesCount"></span></div>+ <ul class="rm-phones" id="rmPhones"></ul>+ <p class="rm-empty" id="rmPhonesEmpty">No phone is paired yet.</p>+ </section>++ <section class="rm-card" aria-labelledby="rmConnTitle">+ <div class="rm-card-head"><h3 id="rmConnTitle">Connection</h3>+ <label class="rm-switch" title="Turn Remote Control on or off"><input type="checkbox" id="rmEnable"><span class="rm-slider"></span><span class="sr-only">Remote Control on</span></label>+ </div>+ <dl class="rm-facts">+ <div><dt>Same Wi-Fi</dt><dd id="rmFactLan">—</dd></div>+ <div><dt>Away from home</dt><dd id="rmFactRelay">—</dd></div>+ <div><dt>Name your phone sees</dt><dd><input type="text" id="rmName" maxlength="40" aria-label="Name your phone sees" spellcheck="false"></dd></div>+ </dl>+ <p class="rm-hint">Keep this Mac awake while you use the remote. Everything between your iPhone and this Mac is encrypted.</p>+ <button type="button" class="rm-link danger" id="rmForgetAll" hidden>Remove all phones and reset</button>+ </section>+ </div>+ </div>+ </div>+ </section>++ <!-- ============== FORM PANE ============== -->+ <aside class="form-pane">++ <!-- THE MODEL COMES FIRST. Which engine you are in decides everything+ under it (the modes it makes, its quality ladder, its settings), so+ the picker heads the column, above the modes and the prompt. v2.1 put+ it beside Generate, where it read as a last-minute option for one+ shot rather than the world you are working in. Same element and ids,+ filled by renderEngineSwitch() from the ENGINES registry and shown on+ any surface with more than one engine (video, images, music); its+ menu opens downward from here (toggleEngineMenu). The divider is the+ header-era span the renderer still toggles; it draws nothing here.+ FIRST CHILD OF THE COLUMN (owner, 5 Nov 2026): nothing sits above it,+ not the models card (#modelsInline, now directly under it), not a+ first-run notice. On rc.2 the "Ready to render · N add-ons" card sat+ above this row and pushed "Model" down until it no longer read as the+ first choice. The Images tab fills this same picker with its image+ models (registry rows with surfaces=["image"]); the Images form keeps+ only the picked model's versions. -->+ <div class="engine-pick">+ <span class="engine-pick-label">Model</span>+ <div class="engine-switch" id="engineSwitch" role="group" aria-label="Render engine" hidden></div>+ <span class="hdr-div" id="engineSwitchDivider" hidden></span>+ </div>+<!-- The original manual form is unchanged; it sits below in the DOMand is shown/hidden by JS as the workflow tab toggles. -->- <!-- Inline models card. Sits ABOVE the mode picker because for many+ <!-- Inline models card. Sits right under the Model picker and ABOVE the mode picker because for manyusers the very first thing they need to do is download baseweights — burying that in a header modal hides the whole pointof the panel. Lives OUTSIDE #genForm so it persists across the@@ -377,8 +524,8 @@<div class="models-inline-body"><div class="models-inline-icon" id="modelsInlineIcon"><svg class="ph" aria-hidden="true"><use href="#ph-download-simple"/></svg></div><div class="models-inline-text">- <div class="ttl" id="modelsInlineTitle">Download required</div>- <div class="sub" id="modelsInlineSub">Click to start.</div>+ <div class="ttl" id="modelsInlineTitle" role="status" aria-live="polite">Download required</div>+ <div class="sub" id="modelsInlineSub" aria-live="polite">Click to start.</div><div class="models-inline-progress" id="modelsInlineProgress" style="display:none"><div class="bar"><div class="fill" id="modelsInlineFill" style="width:0%"></div></div><div class="last" id="modelsInlineLast"></div>@@ -386,7 +533,7 @@</div><div class="models-inline-actions" id="modelsInlineActions"></div></div>- <a class="models-inline-link" onclick="openModelsModal()">Manage all models →</a>+ <button type="button" class="models-inline-link" onclick="openModelsModal()">Manage all models →</button></div><!-- SYS-16 (priority item): "no first-run path" -- a fresh 8 GB Mac and@@ -626,6 +773,31 @@.mode-only block is shown/hidden by setMode(); when none areactive (T2V), the slot collapses (CSS :empty/:not(.show)). --><div class="composer-refs">+ <!-- Face to keep (4.20, Hailuo H3, Text and Image): an optional photo+ of a face the runner packs as a reference image (MiniMax's+ ref2va block on our model). Shown by updateDerived() only on H3,+ in Text/Image, when the installed runner has --reference. The+ hidden input is in the make_job allowlist (h3_reference). -->+ <div class="mode-only h3-ref-section" id="h3RefSection">+ <h2>Face to keep <span class="h2-hint">· optional · Hailuo H3</span></h2>+ <div class="picker" data-key="h3_reference">+ <div class="picker-drop" id="picker_drop_h3_reference">+ <div class="picker-empty">+ <div class="picker-icon"><svg class="ph"><use href="#ph-user-plus"/></svg></div>+ <div class="picker-cta">Drop a <strong>clear photo of the face</strong>, or <strong>click to browse</strong></div>+ <div class="hint">H3 keeps this face in the scene your prompt describes. Adds about a minute at Standard.</div>+ </div>+ <img class="picker-preview" id="picker_preview_h3_reference" alt="" style="display:none">+ <button type="button" class="picker-clear" id="picker_clear_h3_reference" title="Clear" style="display:none"><svg class="ph" aria-hidden="true"><use href="#ph-x-bold"/></svg></button>+ </div>+ <input type="file" id="picker_file_h3_reference" accept="image/*" style="display:none">+ <input type="hidden" name="h3_reference" id="h3_reference" value="">+ <div class="picker-recent" id="picker_recent_h3_reference_wrap" style="display:none">+ <div class="picker-recent-label">Recent uploads · click to use</div>+ <div class="picker-recent-strip" id="picker_recent_h3_reference"></div>+ </div>+ </div>+ </div><!-- I2V — single image ref. --><div class="mode-only" id="imageSection"><h2>Reference image</h2>@@ -1271,7 +1443,7 @@must not be foldable. --><div class="quick-settings"><!-- ============== ENGINE STATE ==============- The PICKER lives in the header now (#engineSwitch, rendered from+ The PICKER heads the column now (#engineSwitch, rendered fromthe server-side ENGINES table) — engine is a choice you make once,not a form field you scroll past. What is left here is:@@ -1310,8 +1482,14 @@re-resolves it (Draft/Standard/High only, never with Turbo). Inthe make_job allowlist. --><input type="hidden" name="h3_tristep" id="h3_tristep" value="0">+ <!-- Clean up sound (5.0): "1" re-makes a Fast render's sound with the+ speed adapter off (the picture is kept exactly). Written by+ _h3SyncCleanSound(); in the make_job allowlist. Empty = default. -->+ <input type="hidden" name="h3_clean_sound" id="h3_clean_sound" value=""><!-- Pika H3 Flex (a Speed choice): "1" when the third pill renders. --><input type="hidden" name="h3_flex" id="h3_flex" value="0">+ <!-- H3 Flex Turbo (5.0, Pro): "1" when the four-step Flex renders. -->+ <input type="hidden" name="h3_flex_turbo" id="h3_flex_turbo" value="0"><!-- Which of H3's ONE adapter slots this render spends. Its runner's`--lora` takes a single path (default=None, not append), so Turboand a picked LoRA cannot both run and something has to choose.@@ -1403,6 +1581,14 @@<span id="h3V13NoteText"></span><button type="button" class="ghost-btn h3-v13-get" id="h3V13Get" hidden></button></div>+ <!-- Clean up sound: only with Fast, only where the runner has it+ and the store fits this Mac at this Quality. -->+ <label class="check h3-clean-sound" id="h3CleanSoundRow" hidden+ title="Fast's sound can come out harsh or thin. This keeps the picture exactly as rendered and makes the sound again with the full model. Your character's voice LoRA stays on.">+ <input type="checkbox" id="h3CleanSound" onchange="setH3CleanSound(this.checked)">+ <span><b>Clean up sound</b>+ <span class="cz-label-hint" id="h3CleanSoundHint">clearer voices, same picture</span></span>+ </label></div><!-- Speed — the LTX-2.5 distilled lane's REAL speed control(v4.0.5), replacing the dead one above. "Fast draft" selects@@ -2592,17 +2778,21 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea><span id="imgStudioStatus" class="hint"></span></div>- <!-- Quick settings — Engine on its own row (long labels), then a- dense 3-up row for Aspect / Candidates / Seed. Wall-time- estimate sits below the strip in the muted derived style. -->+ <!-- Quick settings — the picked model's VERSION on its own row (long+ labels), then a dense 3-up row for Aspect / Candidates / Seed.+ The MODEL itself is chosen in the column's top picker (#engineSwitch,+ same as Video and Compose, owner 5 Nov 2026); #imgStudioEngine keeps+ only that model's versions (syncImageVersions, engines.js) and stays+ the form value every Images function reads. A model with one version+ shows it as plain text (#imgStudioVersionOnly) instead of a select. --><div class="quick-settings"><div><div class="qs-label">- <span class="qs-name">Engine</span>+ <span class="qs-name">Version</span><span class="qs-meta" id="imgStudioWallEstimate"></span></div><div class="studio-engine-row">- <select id="imgStudioEngine" onchange="if(typeof ideoSyncVisibility==='function')ideoSyncVisibility();imgStudioUpdateValidity();imgStudioRefreshEngineStatus();imgStudioUpdateEstimate();imgStudioUpdateRefWarning();if(typeof renderLorasList==='function')renderLorasList()">+ <select id="imgStudioEngine" onchange="if(typeof ideoSyncVisibility==='function')ideoSyncVisibility();imgStudioUpdateValidity();imgStudioRefreshEngineStatus();imgStudioUpdateEstimate();imgStudioUpdateRefWarning();if(typeof renderLorasList==='function')renderLorasList();if(typeof renderEngineSwitch==='function')renderEngineSwitch()"><!-- SYS-13: "Auto (use Settings)" named nothing -- on aCompact Mac where every other engine gets disabled (SYS-13),this unnamed option was the ONLY one left, and a user had@@ -2610,8 +2800,8 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea>download would be. It resolves to image_engine.py's owndefault (mflux_model = "Runpod/FLUX.2-klein-4B-mflux-4bit"),named here directly. -->- <option value="auto">Auto — FLUX.2 [klein] 4B (fits every Mac · ~4.3 GB first download)</option>- <option value="qwen_edit_lightning_inline" selected>Reference Edit — Fast (image-to-image, Lightning 4-step, ~1:20, default, multi-ref)</option>+ <option value="auto" selected>FLUX.2 [klein] 4B (recommended first model · ~4.3 GB download)</option>+ <option value="qwen_edit_lightning_inline">Reference Edit — Fast (image-to-image, Lightning 4-step, ~1:20, multi-ref)</option><option value="qwen_edit_inline">Reference Edit — Standard (image-to-image, 8-step Q6, ~2:05, no LoRA)</option><option value="qwen_edit_high_inline">Reference Edit — Quality (image-to-image, 40-step Q8 + CFG, ~3:50, final renders)</option><option value="flux3_distilled_q8">FLUX 3 Q8 / Standard</option>@@ -2638,6 +2828,7 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea><option value="ph3image_inline">P-H3-Image High (8 MP, ~5 min)</option><option value="mock_inline" id="imgStudioMockOption" hidden>Mock (testing — debug only)</option></select>+ <span class="studio-version-only" id="imgStudioVersionOnly" hidden></span><span class="engine-status-pill" id="imgStudioEnginePill"data-state="unknown" title="Checking engine weights…"onclick="imgStudioOnPillClick()">…</span>@@ -3519,7 +3710,7 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea><b>Auto</b> — once the plan lands, every shot renders on its own, the cut is made (on the beat when there is a track) and the film is assembled. You can still stop it or re-cut afterwards.<br><b>Start each shot from a still</b> — an image of the first frame is made first (seconds), from the character's sheet when the shot has one, and the clip starts from it. The composition is decided on the image, not discovered after minutes of video. A still that fails is written on the card and the shot renders without one. LTX shots only.<br><b>Long shots</b> — a shot over 5 seconds is normally shortened to fit one pass. With this on, it renders as a chain of 5-second passes, each continuing the last. Slower, and it needs the Q8 pack. LTX shots only.<br>- The planner writes the beats by the rules in <a href="/docs/prompting" target="_blank" rel="noopener">Writing for Phosphene</a>; the same page can be copied into your own assistant if you write by hand.+ The planner writes the beats by the rules in <a href="https://phosphene.video/docs/prompting/" target="_blank" rel="noopener" onclick="openExternal(this.href); return false;">Writing for Phosphene</a>; the same page can be copied into your own assistant if you write by hand.</div><div class="form-action-footer"><div class="sb-ramline" id="sbRamLine">@@ -3555,13 +3746,10 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea><h2>One Shot <span class="h2-hint">30 s to 2 min · never cuts</span></h2><div class="hint os-lead">Write the whole shot once and it renders as parts that continue from each other's last frame. Everything below is optional: the beats direct five seconds each, one camera line holds the move, and a trained character speaks with its own face and voice.</div>- <div class="os-block">- <div class="qs-label h3-axis-label"><span class="qs-name">Engine</span><span class="qs-meta" id="osEngineMeta"></span></div>- <div class="pill-group cols-2" id="osEngineGroup" role="group" aria-label="Engine">- <button type="button" class="pill-btn active" data-os-engine="ltx" aria-label="LTX 2.5 — 10 second parts, faces, voices, dialogue"><span>LTX 2.5</span><span class="sub">10 s parts · faces, voices, dialogue</span></button>- <button type="button" class="pill-btn" data-os-engine="h3" aria-label="Hailuo H3 — 15 second parts, motion, landscapes, crowds"><span>Hailuo H3</span><span class="sub">15 s parts · motion, landscapes, crowds</span></button>- </div>- </div>+ <!-- The engine is picked in the column's top Model picker (#engineSwitch,+ same as Video; owner 5 Nov 2026), which calls osSetEngine(). This+ line says what the picked one does with the shot. -->+ <div class="hint os-engine-meta" id="osEngineMeta"></div><div class="os-block"><div class="qs-label h3-axis-label"><span class="qs-name">The shot</span><span class="qs-meta">who, where, the time of day and the weather, the sound — once, for the whole shot</span></div>@@ -3613,7 +3801,7 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea>beat that wraps or a box that scrolls can never put a stampbeside the wrong line (the reviewer's first finding). --><div class="os-beat-rows" id="osBeats" role="group" aria-label="Beats, one per five seconds"></div>- <div class="hint os-beats-note">A blank row holds that moment. Enter moves to the next row; paste a whole list and it fills the rows. <a href="/docs/prompting" target="_blank" rel="noopener">How to write the beats</a>.</div>+ <div class="hint os-beats-note">A blank row holds that moment. Enter moves to the next row; paste a whole list and it fills the rows. <a href="https://phosphene.video/docs/prompting/" target="_blank" rel="noopener" onclick="openExternal(this.href); return false;">How to write the beats</a>.</div></div><div class="os-block"><div class="qs-label h3-axis-label"><span class="qs-name">Camera</span><span class="qs-meta">optional · one move for the whole shot, its direction and speed — every part continues it</span></div>@@ -3659,10 +3847,95 @@ The same wizard walks out of frame. Audio: footsteps on leaves."></textarea></div><div id="audioSectionTab" style="display:none">- <div class="mode-bar pill-group cols-2" id="audioModeGroup" hidden>+ <div class="mode-bar pill-group cols-3" id="audioModeGroup" hidden><button type="button" class="mode-chip pill-btn" data-audio-mode="compose" onclick="audioModeSet('compose')">Compose<span class="mc-sub sub">write a song</span></button>+ <button type="button" class="mode-chip pill-btn" data-audio-mode="speech" onclick="audioModeSet('speech')">Speech<span class="mc-sub sub">your script, spoken</span></button><button type="button" class="mode-chip pill-btn" data-audio-mode="drive" onclick="audioModeSet('drive')">Music video<span class="mc-sub sub">a song and your pictures</span></button></div>+ <!-- ============== SPEECH ======================================+ Text to speech (speech_engine.py, docs/SPEECH.md): a script in a+ preset voice or a saved character's voice → one WAV in Outputs,+ ready for "Use this audio for… → Lip-sync". Cloning asks the+ voice-owner question every time (acceptable-use policy). -->+ <div id="speechPane" hidden>+ <div class="studio-head">+ <div class="studio-head-text">+ <div class="studio-title">Speech</div>+ <div class="studio-sub">Write a script. Choose a voice. Make a WAV for lip-sync.</div>+ </div>+ </div>+ <div class="composer-card speech-install-panel" id="speechInstallPanel" role="status" hidden></div>+ <div class="composer-card">+ <label for="speechText">Script</label>+ <textarea id="speechText" class="composer-prompt" rows="4" maxlength="2000"+ placeholder="The render is ready. You can stop watching the progress bar now. Let's see what we made."+ oninput="speechFormChanged()"></textarea>+ <div class="hint" id="speechFit" role="status"></div>+ </div>+ <div class="quick-settings">+ <div class="mf-label">Voice</div>+ <div class="studio-seg full" id="speechKindSeg" role="group" aria-label="Whose voice">+ <button type="button" class="seg-btn active" data-value="preset" onclick="speechKindPick(this)">Preset voice</button>+ <button type="button" class="seg-btn" data-value="character" onclick="speechKindPick(this)">A character</button>+ <button type="button" class="seg-btn" data-value="clip" onclick="speechKindPick(this)">A clip you add</button>+ </div>+ <div id="speechPresetRow">+ <select id="speechVoice" aria-label="Preset voice" onchange="speechFormChanged()"></select>+ <div class="mf-label" style="margin-top:10px">Delivery</div>+ <div class="pill-group cols-4 speech-styles" id="speechStylePills" role="group" aria-label="Delivery"></div>+ <input type="hidden" id="speechStyle" value="natural">+ <input type="text" id="speechInstruct" maxlength="300" placeholder="Or describe the delivery: tired, like it's 3 a.m. and the render just failed"+ oninput="speechFormChanged()" aria-label="Delivery, in your words">+ </div>+ <div id="speechCharacterRow" hidden>+ <select id="speechCharacter" aria-label="Character" onchange="speechCharacterChanged()"></select>+ <div class="hint" id="speechCharacterHint"></div>+ </div>+ <div id="speechClipRow" hidden>+ <div class="studio-ref-slot" id="speechClipSlot" style="aspect-ratio:auto;min-height:72px;" tabindex="0"+ onclick="document.getElementById('speechClipInput').click()"></div>+ <input type="file" id="speechClipInput" accept=".wav,.mp3,.m4a,.flac,audio/*" style="display:none" onchange="speechClipUpload(this.files)">+ </div>+ <!-- For both cloned kinds: the words heard in the reference clip let+ the model continue the recording (measured: a closer copy). -->+ <input type="text" id="speechClipText" maxlength="600" hidden placeholder="Optional: type the clip's words for a closer voice match"+ oninput="speechClipTextChanged()" aria-label="Words spoken in the voice clip">+ <label class="speech-consent" id="speechConsentRow" hidden>+ <input type="checkbox" id="speechConsent" onchange="speechFormChanged()">+ <span>This is my voice, or I have the speaker's permission to use it.+ <a href="https://phosphene.video/acceptable-use/" target="_blank" rel="noopener">No impersonation.</a></span>+ </label>+ <div class="hint" id="speechCloneHint" hidden>The voice follows the clip's mood and your punctuation. Try ! ? or … to shape the delivery.</div>+ <div class="range-strip">+ <label for="speechSpeed">Speed</label>+ <input type="range" id="speechSpeed" min="0.7" max="1.4" step="0.05" value="1" oninput="speechFormChanged()">+ <span id="speechSpeedVal">1.00×</span>+ </div>+ <details class="customize-section" id="speechAdvancedDetails">+ <summary class="cz-summary"><span class="cz-chevron" aria-hidden="true"><svg class="ph"><use href="#ph-caret-down-bold"/></svg></span><span class="cz-title">Advanced</span><span class="cz-meta" id="speechAdvancedSummary">English · random seed</span></summary>+ <div class="cz-body">+ <div class="mini-fields"><div class="mf-cell">+ <label class="mf-label" for="speechLanguage">Language</label>+ <select id="speechLanguage" onchange="speechFormChanged()"></select>+ </div><div class="mf-cell">+ <label class="mf-label" for="speechSeed">Seed</label>+ <input type="number" id="speechSeed" value="-1" min="-1" max="2147483647" step="1" placeholder="-1 = random" oninput="speechFormChanged()">+ </div></div>+ <div class="hint">The same seed, text and voice give the same take.</div>+ </div>+ </details>+ </div>+ <div class="form-action-footer">+ <div class="queue-strip"><span class="qchip-derived" id="speechEstimate"></span></div>+ <div class="actions">+ <button type="button" class="primary" id="speechGenBtn" onclick="speechGenerate()">Generate</button>+ <button type="button" class="danger js-stop-btn" disabled data-role="stop-btn" onclick="requestStop()" title="Stop the current render">Stop</button>+ </div>+ <div class="hint" id="speechStatus" role="status"></div>+ <div class="speech-last" id="speechLast" hidden></div>+ <div class="music-credit">Speech by Qwen3-TTS (Qwen team, Apache-2.0) · MLX via mlx-audio</div>+ </div>+ </div><div id="musicComposePane" hidden><div class="studio-head"><div class="studio-head-text">@@ -4141,6 +4414,13 @@ The last line"></textarea><!-- Never a silent fallback: when vocal separation is missing theform says so here and offers the install (/a2v/separator). --><div class="music-pack-note" id="audioStudioStemStatus" role="status" style="margin-top:6px;display:none"></div>+ <div id="audioStudioSceneSoundPanel" class="mf-cell">+ <label class="scene-sound-toggle"><input type="checkbox" id="audioStudioSceneSound" onchange="audioStudioDurationChanged()">+ <span>Add scene sound <span class="hint">(ambience and effects from your scene; lowers under the voice)</span></span>+ </label>+ <p class="hint">Adds a sound-generation pass. Turn off for voice only. Describe what we hear below, or leave blank to use the scene prompt.</p>+ <input type="text" id="audioStudioScenePrompt" aria-label="Scene sound description" placeholder="Wind in the sails, creaking wood, a distant waterfall">+ </div><div class="mf-cell" style="margin-top:8px"><span class="mf-label">Duration</span><div class="range-strip">@@ -4286,7 +4566,7 @@ The last line"></textarea>onchange="edRtPick()"></select><label class="ed-rt-level" title="How loud the bed plays, in LUFS. Dialogue sits around −16; −38 is a bed you stop hearing, −27 is clearly there. The render applies exactly this."><span>Level</span>- <input type="range" id="edRtLevel" min="-45" max="-18" step="1" value="-38"+ <input type="range" id="edRtLevel" min="-60" max="-18" step="1" value="-38"aria-label="Room tone level in LUFS"oninput="edRtLevelSlide(this.value)" onchange="edRtLevelCommit(this.value)"><output id="edRtLevelOut">−38 LUFS</output>@@ -4300,7 +4580,7 @@ The last line"></textarea></div><p class="ed-rt-note" id="edRtNote" hidden></p><label class="check ed-rt-auto" title="When the Editor cuts a __SEQ__ by itself (first open, Re-cut, Storyboard's automatic film) it lays a room tone made from the __SEQ__'s own clips.">- <input type="checkbox" id="edRtAutoBox" checked onchange="edRtAuto(this.checked)">+ <input type="checkbox" id="edRtAutoBox" onchange="edRtAuto(this.checked)"><span>Add room tone to automatic cuts</span></label></section>@@ -5195,10 +5475,10 @@ The last line"></textarea>title="Square — the classic feed post. Centre-cropped from the widescreen frame.">1:1</button></span><label class="check sbe-deliver-loudnorm"- title="Levels the delivered mix to -14 LUFS integrated, the loudness streaming platforms (YouTube, Instagram, TikTok) normalize to anyway. Off by default — a mix already graded by ear isn't retargeted without being asked.">- <input type="checkbox" id="sbeDeliverLoudnorm"+ title="Masters the finished mix: a peak limiter, then loudness to -15 LUFS with peaks held under -2 dB. On by default, so a film cut here sounds as loud as one an agent cut. Untick to keep the mix exactly as it is.">+ <input type="checkbox" id="sbeDeliverLoudnorm" checkedonchange="sbeDeliverToggleLoudnorm(this.checked)">- <span>Normalize to −14 LUFS</span>+ <span>Master loudness (−15 LUFS)</span></label><span class="sbe-pop-sep"></span><button type="button" class="ghost-btn" id="sbeNleBtn" onclick="sbeExportNle()"@@ -5248,6 +5528,17 @@ The last line"></textarea>written for the thing under the pointer is the only kind worthhaving, and a gap's only verb is "close it". --><div class="sbe-pop sbe-ctx" id="sbeCtxMenu" hidden></div>+ <div class="sbe-pop sbe-bed-pop" id="sbeBedPop" hidden>+ <label class="sbe-mix-lvl sbe-bed-pop-lvl">+ <span>Music volume</span>+ <input type="range" id="sbeBedGain2" min="0" max="100" step="1"+ value="100" aria-label="Music volume"+ oninput="sbeBedGainSlide(this.value)"+ onchange="sbeBedGainCommit(this.value)">+ <b id="sbeBedGainNum2">100%</b>+ </label>+ <span class="sbe-pop-note">The preview and the render both play it at this level.</span>+ </div><div class="sbe-pop sbe-pop-wide" id="sbeMusicMenu" hidden><span class="sbe-pop-note" id="sbePrepText">The soundtrack drives the waveform and the beat grid.</span><input type="text" class="sb-input" id="sbeMusic" spellcheck="false"@@ -5490,15 +5781,19 @@ The last line"></textarea></div><div class="sbe-mon sbe-mon-prog"><div class="sbe-stage" id="sbeStage">- <!-- ONE video. Double-buffering measured no benefit against- all-intra proxies, and hiding it with display:none would stop- WebKit loading it at all — hence opacity. -->+ <!-- TWO videos, one on screen. Giving the visible element a new src+ at a cut made WebKit paint black until the new file decoded, so+ a new file only ever goes into the hidden one, and the two trade+ places once it holds its frame (sbeStageVideo in editor.js).+ Hidden with opacity, never display:none, or WebKit will not+ load it. --><!-- No `muted` attribute. It was here as "belt and braces" for aloader that hard-muted anyway, and it now contradicts the onlything that owns this state: sbeSetMute. There is no `autoplay`here, so nothing plays without sbePlay, and sbePlay sets mutedexplicitly and falls back if the browser refuses. --><video id="sbeVideo" playsinline preload="auto"></video>+ <video id="sbeVideoB" playsinline preload="auto"></video><!-- The still layer. A slug needs no element at all: hiding both ofthese leaves the stage's own #000 background, which is exactlywhat a slug renders. -->@@ -5507,6 +5802,15 @@ The last line"></textarea>both, carrying its own opacity so a card's fade is independent ofwhatever is beneath it — which is what a second track means. --><img id="sbeOvLayer" class="sbe-ov-layer" alt="">+ <!-- A VIDEO ON THE OVERLAY LANE plays here, from its preview copy+ (HEVC with alpha for a transparent sting), never through the+ <img> above: an <img> handed a .mov is a broken-image "?" over+ every frame. Muted (the lane is picture only), hidden by+ opacity like every stage video, and driven by the playhead. -->+ <video id="sbeOvVideo" class="sbe-ov-video" muted playsinline preload="auto"></video>+ <!-- What is said, quietly, when an overlay cannot be shown on the+ stage. The render still carries it. -->+ <div id="sbeOvNote" class="sbe-ov-note" hidden></div><!-- A TITLE ON THE STAGE. Drawn in the DOM at the same anchor andthe same 1080-relative size the render rasterises it at, so thestage shows the card the file will carry. Same opacity rule as@@ -5683,7 +5987,7 @@ The last line"></textarea><button type="button" class="ghost-btn" onclick="sbeZoom(1)" title="Zoom in" data-shortcut="editor.zoom">+</button></span><span class="sbe-info" id="sbeApprox" tabindex="0"- title="The preview is approximate: the browser lands within a few frames of each cut and freezes for about one there. The render is exact.">i</span>+ title="The preview is approximate: the browser lands within a few frames of each cut, and a very short shot may hold the previous frame for a moment. The render is exact.">i</span><button type="button" class="sbe-tbtn" id="sbeKeysBtn"onclick="sbePopToggle('sbeKeysPop', 'sbeKeysBtn')"aria-haspopup="menu" aria-label="Keys" title="Every gesture this timeline answers to">@@ -5740,6 +6044,14 @@ The last line"></textarea></div><div class="sbe-gh sbe-gh-mus"><span class="sbe-gh-tag"><i>A2</i><b>Music</b>+ <!-- THE MUSIC LEVEL, AT EVERY LANE HEIGHT. The Level slider below+ lives in a head that picture mode shrinks to 20 px, so+ "lower the music" had no visible control at all (2 Nov). This+ chip shows the level and opens the slider. -->+ <button type="button" class="sbe-bed-chip" id="sbeBedChip"+ onclick="sbePopToggle('sbeBedPop', 'sbeBedChip')"+ aria-haspopup="dialog"+ title="Music volume — click to turn the music up or down">100%</button><button type="button" class="sbe-gh-more" id="sbeMusicMore"onclick="sbePopToggle('sbeMusicMenu', 'sbeMusicMore')"aria-haspopup="menu"@@ -6090,29 +6402,20 @@ The last line"></textarea>that downloaded incomplete.</div><div class="settings-row">- <button type="button" class="primary-btn" onclick="closeSettingsModal(); openModelsModal();">Open Models</button>+ <button type="button" class="primary-btn" onclick="openModelsModal();">Open Models</button></div></div>- <!-- Storage. Directly after its only disk-facing sibling on purpose: one- section says WHAT IS INSTALLED, the next says WHAT CAN GO.-- It renders NOTHING — including its own <h3> — when there is nothing to- reclaim, so a single-generation install never sees it. That is rule 5:- a user who never opens a pack sees no new chrome at all.-- .models-list / .models-foot are reused wholesale, so a Storage row and- a Models row look like siblings because they are. -->+ <!-- Storage stays visible even when there is nothing to reclaim. --><div class="settings-section" id="settingsStorageSection" style="display:none"><h3>Storage</h3><div class="hint" style="margin-bottom:8px">- Weights on this disk that this build does not render with by default —- and, where one is listed, what you would lose by removing it. Removing- frees the space immediately; re-installing later is a fresh download of- the size shown. Nothing here is deleted without asking.+ Model folders on this Mac, including files left behind by older installs.+ Cleanup removes only superseded files. Your outputs and LoRAs stay on disk.</div><ul class="models-list" id="storageList"></ul>- <div class="models-foot" id="storageFoot"></div>+ <div class="models-foot" id="storageFoot" role="status" aria-live="polite"></div>+ <button type="button" class="ghost" id="storageCleanup" onclick="cleanupSupersededModels()" disabled>Free up 0 GB</button></div><div class="settings-section">@@ -6131,6 +6434,19 @@ The last line"></textarea></div></div>+ <!-- Phosphene Bench (bench.py, panel/routes_bench.py, webapp/js/bench.js):+ a fixed, versioned benchmark of this Mac. Its own window, because it+ runs for minutes and ends in a result card. -->+ <div class="settings-section" id="settingsBenchSection">+ <h3>Phosphene Bench</h3>+ <div class="hint" style="margin-bottom:8px">+ Run a fixed set of video and image jobs on your Mac and see the times.+ </div>+ <div class="settings-row">+ <button type="button" class="primary-btn" onclick="openBenchModal();">Open Phosphene Bench</button>+ </div>+ </div>+<div class="settings-section"><h3>Memory / speed</h3><!-- The Memory-policy select that lived here was REMOVED (owner ruling@@ -6515,6 +6831,56 @@ The last line"></textarea></div></div>+<div id="proModal" class="models-modal" style="display:none" role="dialog" aria-modal="true" aria-labelledby="lightsOnTitle" onclick="if(event.target===this)closeProModal()">+ <div class="models-card pro-card">+ <div class="pro-toolbar"><span>Coming soon · not on sale yet</span><button type="button" class="ghost-btn" onclick="closeProModal()">Close</button></div>+<!-- LIGHTS_ON_HEADER_START -->+<section class="lights-on-header" aria-labelledby="lightsOnTitle">+ <div class="lights-on-wash" aria-hidden="true"></div>+ <svg class="lights-on-lamp" viewBox="0 0 140 156" width="112" height="125" fill="none" aria-hidden="true">+ <ellipse class="lamp-pool" cx="75" cy="141" rx="54" ry="8" fill="#ffd391"/>+ <path d="M28 135h69M42 131c0-7 6-11 16-11h17c10 0 16 4 16 11" stroke="#8e8e96" stroke-width="2" stroke-linecap="round"/>+ <path d="M63 120 36 82 66 43M70 120 43 82 72 46" stroke="#b14aff" stroke-opacity=".72" stroke-width="2" stroke-linejoin="round"/>+ <path d="m44 87 10-3m-5 10 10-3m-5 10 10-3" stroke="#8e8e96" stroke-width="1.4" stroke-linecap="round"/>+ <circle cx="39" cy="82" r="6" fill="#121214" stroke="#5eeaff" stroke-opacity=".75" stroke-width="2"/>+ <circle cx="67" cy="123" r="4" fill="#121214" stroke="#8e8e96" stroke-width="2"/>+ <path d="M91 134c20 0 6 14 26 14h9" stroke="#8e8e96" stroke-width="1.5" stroke-linecap="round"/>+ <g class="lamp-head">+ <path class="lamp-beam" d="m83 62-20 69 75-15-27-65Z" fill="#ffd391"/>+ <path d="m68 43 14-7" stroke="#5eeaff" stroke-opacity=".75" stroke-width="2"/>+ <path d="M78 28c8-5 17-3 22 5l14 20c-9 8-21 12-34 10l-3-25c-1-4-1-7 1-10Z" fill="#121214" stroke="#b4b4bb" stroke-width="2" stroke-linejoin="round"/>+ <path d="M81 32c5-3 10-2 13 3" stroke="#5eeaff" stroke-opacity=".7" stroke-width="1.5" stroke-linecap="round"/>+ <path class="lamp-rim" d="M80 63c12 1 25-3 34-10" stroke="#ffd391" stroke-width="2" stroke-linecap="round"/>+ <path class="lamp-bulb" d="M91 63c1 7 12 5 12-3" fill="#ffe5b4" stroke="#ffe5b4" stroke-width="2"/>+ <path class="lamp-chain" d="m108 59 3 19" stroke="#b4b4bb" stroke-width="1.4" stroke-linecap="round"/>+ <circle class="lamp-chain" cx="111" cy="81" r="2.5" fill="#b4b4bb"/>+ </g>+ </svg>+ <div class="lights-on-copy">+ <p class="lights-on-eyebrow">PHOSPHENE PRO</p>+ <h2 id="lightsOnTitle">Help us keep<br>the lights on</h2>+ <p class="lights-on-lead">I'm Mr Bizarro, the one person behind this open-source app. Pro pays for compute and my time. The free app stays free.</p>+ </div>+</section>+<!-- LIGHTS_ON_HEADER_END -->+ <div class="pro-prices" aria-label="Pro pricing">+ <section class="pro-price"><h3>Pro monthly</h3><p><strong>$15</strong> a month</p><span>Coming soon</span></section>+ <section class="pro-price"><h3>Pro yearly</h3><p><strong>$120</strong> a year</p><span>Coming soon</span></section>+ <section class="pro-price pro-founding"><h3>Founding (3 years)</h3><p><strong>$149</strong> one-time</p><span>Coming soon · first 200 seats. No renewal; access expires after 3 years (1,095 days). Existing Founding promises are preserved.</span></section>+ </div>+ <section class="pro-compare" id="proCompare" aria-label="Same clip, Free vs Pro">+ <header><p class="lights-on-eyebrow">SAME CLIP · FREE VS PRO</p><h3 id="proCompareTitle">Hailuo H3 · High · i2v · 5 s</h3><p class="pro-compare-sub" id="proCompareSub">Measured on an M4 Max · 64 GB, seed 4101: Free 14 min 56 s, Pro 10 min 02 s · 1.49×. Faces, motion, speech and sync reviewed equal.</p></header>+ <div class="pro-compare-player"><video id="proCompareVideo" src="/assets/pro/compare_h3_5s.mp4" poster="/assets/pro/compare_h3_5s.jpg" controls muted loop playsinline preload="metadata"></video></div>+ </section>+ <div class="pro-benefits">+ <p><strong>Faster renders</strong>On the measured M4 Max / 64 GiB: H3 High i2v 5–10 s 1.48×; LTX-2.5 High Q8 t2v/i2v 5 s 1.28–1.30×; the qualified image profile 1.54×. Exact supported settings only; other Macs are unmeasured.</p>+ <p><strong>New model access</strong>New models, community improvements, sound cleanup and Face to keep remain Free.</p>+ <p><strong>Priority support and feature requests</strong>Pro questions and feature requests go to the front of the queue.</p>+ </div>+ <div class="pro-bottom"><a class="pro-waitlist" href="https://phosphene.video/pricing/" target="_blank" rel="noopener">Join the waitlist <span aria-hidden="true">↗</span></a><p>Hardship licences are available on request.<br><a href="mailto:[email protected]">Get in touch</a>.</p></div>+ </div>+</div>+<!-- Per-model licence screen (4.19.8). Filled by webapp/js/licences.js fromGET /licences; opened when the server answers 451 licence_required, fromthe H3 install card, and from the H3 credit line. -->@@ -6561,6 +6927,7 @@ The last line"></textarea><div class="star-card-actions"><button type="button" id="starCardStar" class="star-card-primary" onclick="starCardStar()"><svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true"><path d="M8 1.2l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 12l-4.2 2.2.8-4.7L1.2 6.2l4.7-.7z" fill="currentColor"/></svg><span class="star-card-label">Star on GitHub</span><span class="star-card-count" id="starCardCount" hidden></span></button></div>+ <a class="star-card-quiet" href="https://phosphene.video/pricing/" onclick="starCardAnswer('waitlist'); return false;">Or join the Pro waitlist <span aria-hidden="true">↗</span></a><canvas class="star-card-burst" id="starCardBurst" aria-hidden="true"></canvas></aside><!-- STAR_CARD_END -->@@ -6761,8 +7128,9 @@ The last line"></textarea><div class="now-card idle" id="nowCard"><div class="now-thumb" id="nowThumb" hidden aria-hidden="true"></div><div class="now-body">+ <output class="studio-progress-value" id="studioProgressValue" aria-hidden="true" hidden><span>0%</span></output><div class="ttl">Idle</div>- <div class="progress-bar"><div class="fill" id="progressFill" style="width:0%"></div></div>+ <div class="progress-bar" role="progressbar" aria-label="Render progress" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="fill" id="progressFill" style="width:0%"></div></div><div class="meta" id="nowDetail">No job running</div><!-- Action row populated on the failed state with Retry + Close.Lives outside .ttl so poll()'s innerHTML rewrites don't@@ -6801,6 +7169,63 @@ The last line"></textarea><!-- THE DOCS VIEW (webapp/js/docs.js; pages in webapp/docs/*.md). A .modal-bgso the Editor's keys stand down while it is open and health.js's Esc andfocus trap cover it; the Close button's onclick names close for Esc. -->+<!-- ====== PHOSPHENE BENCH ======+ The window webapp/js/bench.js drives. Steps, notices, the result card and+ past runs are painted from GET /bench/plan and /bench/status; nothing on+ this screen computes a time of its own. -->+<div id="benchModal" class="models-modal bench-modal" style="display:none"+ role="dialog" aria-modal="true" aria-labelledby="benchTitle"+ onclick="if(event.target===this) closeBenchModal()">+ <div class="models-card bench-card">+ <div class="models-head">+ <div class="bench-title-row">+ <h2 id="benchTitle">Phosphene Bench</h2>+ <span class="bench-suite" id="benchSuite" title="The frozen suite these times belong to">PB1</span>+ </div>+ <button type="button" class="ghost-btn" onclick="closeBenchModal()">Close</button>+ </div>+ <p class="models-hint bench-intro">Run Bench renders the PB1 suite on your Mac and records times and memory use. Expect several minutes, or much longer on smaller Macs.</p>+ <div class="bench-notices" id="benchNotices" aria-live="polite"></div>+ <ol class="bench-steps" id="benchSteps"></ol>+ <div class="bench-actions">+ <button type="button" class="primary-btn" id="benchRunBtn" onclick="benchRun()">Run Bench</button>+ <button type="button" class="ghost-btn" id="benchStopBtn" onclick="benchStop()" hidden>Stop Bench</button>+ <span class="bench-line" id="benchLine" role="status" aria-live="polite"></span>+ </div>+ <details class="bench-rules">+ <summary>How Bench stays fair</summary>+ <ul>+ <li>Every Mac uses the same fixed prompts, seeds and settings, except Balanced uses 768×448 below 48 GB memory. The result records the canvas.</li>+ <li>PB1 settings are frozen. A settings change gets a new suite name. Different suites are never mixed.</li>+ <li>Bench never downloads models by itself. If a required model is missing, click Install to download it.</li>+ <li>No best-of: submitting sends every complete PB1 run stored on this Mac. The leaderboard uses this Mac's median.</li>+ </ul>+ </details>+ <section class="bench-result" id="benchResult" hidden>+ <h3>Bench results</h3>+ <p class="bench-warn" id="benchIncomplete" hidden>Incomplete: a core step did not finish. This run cannot go on the leaderboard.</p>+ <img class="bench-card-img" id="benchCardImg" alt="Phosphene Bench result card">+ <div class="bench-result-actions">+ <button type="button" class="primary-btn" id="benchCopyBtn" onclick="benchCopy()">Copy results</button>+ <a class="ghost-btn" id="benchSaveCard" href="#" download>Save card as PNG</a>+ <a class="ghost-btn" id="benchSaveJson" href="#" download>Save results as JSON</a>+ </div>+ <div class="bench-submit" id="benchSubmit">+ <button type="button" class="ghost-btn" id="benchSubmitBtn" onclick="benchSubmitOpen()">Submit to the leaderboard</button>+ <div class="bench-consent" id="benchConsent" hidden>+ <p>Submitting sends every complete PB1 run stored on this Mac, including the suite, step times, memory numbers, canvases, chip, GPU cores, memory size, model identifier, macOS version, power source, Low Power Mode, thermal state, app version, edition and random install ID. It never sends prompts, file names, paths, images or video. The leaderboard uses this Mac's median across those runs, then shows the median of Mac medians for each chip and memory size, keeping suites and editions separate.</p>+ <button type="button" class="primary-btn" id="benchSubmitConfirm" onclick="benchSubmit()">Submit all complete PB1 runs</button>+ </div>+ <p class="bench-submit-note" id="benchSubmitNote" role="status" aria-live="polite"></p>+ </div>+ </section>+ <section class="bench-history">+ <h3>Past runs</h3>+ <ul id="benchHistory"><li class="bench-empty">No Bench runs yet.</li></ul>+ </section>+ </div>+</div>+<div class="modal-bg docs-view" id="docsView" role="dialog" aria-modal="true"aria-labelledby="docsViewTitle" onclick="if(event.target===this) closeDocs()"><div class="docs-shell">@@ -6838,6 +7263,18 @@ The last line"></textarea>present at boot on purpose: the global _phosModalScaffold IIFE registersits observers once at boot, so a modal injected later loses Esc-to-close,the focus trap and the body.modal-open scroll lock. -->+<!-- Star ask (2026-10-27): the header star opens this short thank-you instead of jumping straight to GitHub. -->+<div class="modal-bg star-ask" id="starAsk" role="dialog" aria-modal="true" aria-labelledby="starAskTitle" onclick="if(event.target===this)starAskClose()">+ <div class="modal star-ask-card">+ <svg class="ph star-ask-icon" aria-hidden="true"><use href="#ph-star"/></svg>+ <h3 id="starAskTitle">Thank you for supporting Phosphene</h3>+ <p>Please take a minute to leave us a star on GitHub. It's how other people find Phosphene, and we really appreciate it.</p>+ <div class="modal-actions">+ <button type="button" class="btn ghost" onclick="starAskClose()">Maybe later</button>+ <a class="btn primary" id="starAskGo" href="https://github.com/mrbizarro/phosphene" target="_blank" rel="noopener">Star on GitHub</a>+ </div>+ </div>+</div><div class="modal-bg" id="sbReplanModal" onclick="if(event.target===this)sbCloseReplan()"><div class="modal"><h3>Re-plan this film</h3>@@ -6938,11 +7375,13 @@ const BOOT = __BOOTSTRAP__;</script><script type="module" src="/webapp/js/licences.js"></script><script type="module" src="/webapp/js/boot.js"></script><script type="module" src="/webapp/js/music.js"></script>+<script type="module" src="/webapp/js/speech.js"></script><script type="module" src="/webapp/js/shortcuts.js"></script><script type="module" src="/webapp/js/tips.js"></script><script type="module" src="/webapp/js/docs.js"></script><script type="module" src="/webapp/js/stage.js"></script><script type="module" src="/webapp/js/characters.js"></script>+<script type="module" src="/webapp/js/capabilities.js"></script><script type="module" src="/webapp/js/engines.js"></script><script type="module" src="/webapp/js/queue.js"></script><script type="module" src="/webapp/js/settings.js"></script>@@ -6951,7 +7390,9 @@ const BOOT = __BOOTSTRAP__;</script><script type="module" src="/webapp/js/health.js"></script><script type="module" src="/webapp/js/storyboard.js"></script><script type="module" src="/webapp/js/editor.js"></script>+<script type="module" src="/webapp/js/remote.js"></script><script type="module" src="/webapp/js/oneshot.js"></script>+<script type="module" src="/webapp/js/bench.js"></script><script type="module" src="/webapp/js/main.js"></script><div class="phos-toast-container" id="phosToast" aria-live="polite" aria-atomic="false"></div></body>diff --git a/webapp/js/bench.js b/webapp/js/bench.jsnew file mode 100644index 0000000..56146c6--- /dev/null+++ b/webapp/js/bench.js@@ -0,0 +1,324 @@+// ---- PHOSPHENE BENCH — the benchmark window --------------------------------+// Settings -> Phosphene Bench. The suite, the runner, the timings and the card+// all live server-side (bench.py, panel/routes_bench.py); this module paints+// GET /bench/plan and /bench/status and posts the buttons. It computes no time,+// no canvas and no eligibility of its own (Structure Law, rule 6).+//+// Copy: Codex (today-2026-10-22/bench/codex/copy_out.json), fact-checked.++const BENCH_COPY = {+ badge: {+ ready: 'Ready', missing: 'Model missing', optional_skip: 'Optional', queued: 'Queued',+ running: 'Running', done: 'Done', failed: 'Failed', skipped: 'Skipped', cancelled: 'Stopped',+ },+ reason: {+ wrong_generation: 'This install renders LTX-2.3. Bench measures LTX-2.5. Use an install that renders LTX-2.5 to run Bench.',+ ltx_missing: 'The LTX-2.5 model is not fully downloaded.',+ image_missing: 'FLUX.2 [klein] 4B is not on this Mac yet.',+ h3_not_installed: "Skipped: H3 is not installed. Bench never downloads it here.",+ h3_licence: 'Skipped: the H3 licence has not been accepted.',+ h3_not_capable: 'Skipped: this Mac does not have enough memory to run H3.',+ stopped: 'Stopped.',+ busy: 'The Mac was busy with another render.',+ },+ busy: {+ busy_queue: 'Renders are queued or running. Finish or clear them before starting Bench.',+ busy_gpu: 'Something else is using the GPU right now (an image, Enhance or an update). Wait for it to finish, then run Bench.',+ busy_download: 'A model is downloading. Bench waits for downloads so they do not slow the timed steps.',+ busy_paused: 'The queue is paused. Resume it, then run Bench.',+ bench_running: 'Bench is already running.',+ },+ warn_battery: 'Your Mac is on battery. Connect the charger for comparable results. The run records the power source.',+ warn_low_power: 'Low Power Mode is on. Turn it off for comparable results. The run records this setting.',+ warn_thermal: 'Your Mac is already warm. Thermal state: {state}. Let it cool for a fair comparison. The run records thermal state.',+ install_ltx: 'Install LTX-2.5',+ install_image: 'Install image model ({gb} GB)',+ install_image_running: 'Downloading FLUX.2 [klein] 4B…',+ install_image_failed: 'The download did not finish: {error}',+ install_h3: 'How to install H3',+ running_line: 'Step {step} of {total}: {label} · {elapsed} elapsed',+ starting: 'Starting…',+ stopped: 'Bench stopped. A run is complete only when all three core steps finish.',+ failed_step: '{label} failed: {reason}',+ copied: 'Results copied',+ copy_failed: 'Could not copy results. Save the JSON instead.',+ submit_off: 'Anonymous usage counts are off, so Bench sends nothing. Turn them on in Settings to submit.',+ submit_ineligible: 'Incomplete runs cannot be submitted. Finish all three core steps to get a complete result.',+ submit_nothing: 'Every complete PB1 run on this Mac has already been sent.',+ submit_done: 'Sent {n} complete PB1 runs. They will be included at phosphene.video/bench when the site is next rebuilt.',+ submit_error: 'Submission failed. Your results are still on this Mac. Try again.',+ history_empty: 'No Bench runs yet.',+ complete: 'complete', incomplete: 'incomplete', sent: 'sent',+};++const BENCH = { plan: null, timer: null, shown: null, wasRunning: false, submitMsg: '' };++function _bEl(id) { return document.getElementById(id); }+function _bEsc(s) {+ return String(s ?? '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>')+ .replace(/\x22/g, '"').replace(/\x27/g, ''');+}+function _bFill(t, vars) {+ return String(t).replace(/\{(\w+)\}/g, (m, k) => (vars && k in vars ? String(vars[k]) : m));+}+// Same shape as bench.fmt_sec (48 s · 2m 19s · 1h 02m), for the live clock and+// the rows; the card and the copied text are formatted server-side.+function benchFmt(sec) {+ if (sec == null || isNaN(sec)) return '—';+ const s = Math.round(Number(sec));+ if (s < 60) return `${s} s`;+ if (s < 3600) return `${Math.floor(s / 60)}m ${String(s % 60).padStart(2, '0')}s`;+ return `${Math.floor(s / 3600)}h ${String(Math.floor((s % 3600) / 60)).padStart(2, '0')}m`;+}+function _bToast(msg, kind) { if (typeof phosToast === 'function') phosToast(msg, { kind: kind || 'info' }); }++async function _bJson(url, opts) {+ const r = await fetch(url, opts);+ let d = {};+ try { d = await r.json(); } catch (e) { d = {}; }+ d._status = r.status;+ return d;+}++// ---- open / close -----------------------------------------------------------+async function openBenchModal() {+ const m = _bEl('benchModal');+ if (!m) return;+ // Keep the overlay outside the scrolling workspace.+ document.body.appendChild(m);+ m.style.display = 'flex';+ await benchRefresh();+ _bStartPolling();+}+function closeBenchModal() {+ const m = _bEl('benchModal');+ if (m) m.style.display = 'none';+ _bStopPolling();+}+function _bStartPolling() {+ _bStopPolling();+ BENCH.timer = setInterval(() => {+ const m = _bEl('benchModal');+ if (!m || m.style.display === 'none' || document.hidden) return;+ benchRefresh();+ }, 2000);+}+function _bStopPolling() { if (BENCH.timer) { clearInterval(BENCH.timer); BENCH.timer = null; } }++// ---- paint ------------------------------------------------------------------+async function benchRefresh() {+ let d;+ try { d = await _bJson('/bench/plan'); } catch (e) { return; }+ if (!d.ok) return;+ BENCH.plan = d;+ const st = d.state || {};+ _bPaintSteps(d, st);+ _bPaintNotices(d, st);+ _bPaintActions(d, st);+ _bPaintHistory(d);+ // The shown run's Submit state follows the plan (analytics switched on in+ // Settings, a submit elsewhere), not just the click that opened it.+ if (BENCH.shown) _bPaintSubmit((d.runs || []).find(r => r.run_id === BENCH.shown) || {});+ // A run just ended: show its card.+ if (BENCH.wasRunning && !st.running && st.last_run) benchShowRun(st.last_run);+ if (!BENCH.shown && !st.running && d.runs && d.runs.length) benchShowRun(d.runs[0].run_id);+ BENCH.wasRunning = !!st.running;+}++function _bPaintSteps(d, st) {+ const ol = _bEl('benchSteps');+ if (!ol) return;+ const live = {};+ ((st.running || st.last_run) ? (st.steps || []) : []).forEach(s => { live[s.id] = s; });+ const rows = (d.steps || []).map((r, i) => {+ const l = live[r.id] || {};+ const status = l.status || r.status;+ const reason = l.reason || r.reason || '';+ let side = '';+ if (status === 'done' && l.wall_sec != null) side = `<span class="bench-time">${benchFmt(l.wall_sec)}</span>`;+ else if (status === 'running' && st.step_index === i) side = `<span class="bench-time is-live">${benchFmt(st.step_elapsed)}</span>`;+ let action = '';+ if (!st.running && r.install && r.install.kind === 'models') {+ action = `<button type="button" class="ghost-btn" onclick="closeBenchModal(); openModelsModal();">${_bEsc(BENCH_COPY.install_ltx)}</button>`;+ } else if (!st.running && r.install && r.install.kind === 'image') {+ const inst = d.install || {};+ if (inst.state === 'downloading') action = `<span class="bench-sub">${_bEsc(BENCH_COPY.install_image_running)}</span>`;+ else action = `<button type="button" class="ghost-btn" onclick="benchInstallImage()">${_bEsc(_bFill(BENCH_COPY.install_image, { gb: r.install.gb }))}</button>`;+ } else if (!st.running && r.reason === 'h3_not_installed' && typeof openH3InstallCard === 'function') {+ action = `<button type="button" class="ghost-btn" onclick="closeBenchModal(); openH3InstallCard('bench');">${_bEsc(BENCH_COPY.install_h3)}</button>`;+ }+ const why = reason && (status === 'missing' || status === 'optional_skip' || status === 'failed' || status === 'skipped')+ ? `<div class="bench-sub bench-why">${_bEsc(BENCH_COPY.reason[reason] || reason)}</div>` : '';+ const imgErr = (r.install && r.install.kind === 'image' && (d.install || {}).state === 'failed')+ ? `<div class="bench-sub bench-why">${_bEsc(_bFill(BENCH_COPY.install_image_failed, { error: (d.install || {}).error || '' }))}</div>` : '';+ return `<li class="bench-step is-${_bEsc(status)}${r.core ? '' : ' is-extra'}${r.timed ? '' : ' is-untimed'}">+ <span class="bench-dot" aria-hidden="true"></span>+ <div class="bench-step-main">+ <div class="bench-step-title">${_bEsc(r.label)}${r.headline ? ' <span class="bench-tag">headline</span>' : ''}</div>+ <div class="bench-sub">${_bEsc(r.what)}</div>${why}${imgErr}+ </div>+ <div class="bench-step-side"><span class="bench-badge">${_bEsc(BENCH_COPY.badge[status] || status)}</span>${side}${action}</div>+ </li>`;+ });+ ol.innerHTML = rows.join('');+}++function _bPaintNotices(d, st) {+ const box = _bEl('benchNotices');+ if (!box) return;+ const out = [];+ if (!st.running) {+ if (d.why && BENCH_COPY.busy[d.why]) out.push(['warn', BENCH_COPY.busy[d.why]]);+ if (d.why === 'wrong_generation') out.push(['warn', BENCH_COPY.reason.wrong_generation]);+ const c = d.conditions || {};+ if (c.power === 'battery') out.push(['info', BENCH_COPY.warn_battery]);+ if (c.low_power_mode) out.push(['info', BENCH_COPY.warn_low_power]);+ if (c.thermal === 'serious' || c.thermal === 'critical') out.push(['info', _bFill(BENCH_COPY.warn_thermal, { state: c.thermal })]);+ }+ if (st.error) out.push(['warn', st.error]);+ box.innerHTML = out.map(([k, t]) => `<div class="bench-notice is-${k}">${_bEsc(t)}</div>`).join('');+}++function _bPaintActions(d, st) {+ const run = _bEl('benchRunBtn'), stop = _bEl('benchStopBtn'), line = _bEl('benchLine');+ if (run) { run.hidden = !!st.running; run.disabled = !d.can_run; }+ if (stop) stop.hidden = !st.running;+ if (!line) return;+ if (st.running) {+ const steps = (d.steps || []);+ const i = st.step_index;+ if (i == null) { line.textContent = BENCH_COPY.starting; return; }+ line.textContent = _bFill(BENCH_COPY.running_line, {+ step: i + 1, total: steps.length, label: (steps[i] || {}).label || '', elapsed: benchFmt(st.step_elapsed),+ });+ } else if (st.stopped && st.last_run) {+ line.textContent = BENCH_COPY.stopped;+ } else {+ line.textContent = '';+ }+}++function _bPaintHistory(d) {+ const ul = _bEl('benchHistory');+ if (!ul) return;+ const runs = d.runs || [];+ if (!runs.length) { ul.innerHTML = `<li class="bench-empty">${_bEsc(BENCH_COPY.history_empty)}</li>`; return; }+ ul.innerHTML = runs.map(r => {+ const when = String(r.finished_at || '').replace('T', ' ').replace('Z', ' UTC');+ const tags = [r.complete ? BENCH_COPY.complete : BENCH_COPY.incomplete, r.submitted ? BENCH_COPY.sent : '']+ .filter(Boolean).join(' · ');+ const on = BENCH.shown === r.run_id ? ' is-on' : '';+ return `<li><button type="button" class="bench-run${on}" onclick="benchShowRun('${_bEsc(r.run_id)}')">+ <span class="bench-run-time">${benchFmt(r.headline_sec)}</span>+ <span class="bench-sub">${_bEsc(r.suite)} · ${_bEsc(when)} · Phosphene ${_bEsc(r.version)} · ${_bEsc(tags)}</span>+ </button></li>`;+ }).join('');+}++// ---- one result -----------------------------------------------------------------+function benchShowRun(runId) {+ if (!runId) return;+ if (BENCH.shown !== runId) BENCH.submitMsg = '';+ BENCH.shown = runId;+ const sec = _bEl('benchResult');+ if (sec) sec.hidden = false;+ const id = encodeURIComponent(runId);+ const img = _bEl('benchCardImg');+ if (img) img.src = `/bench/card?id=${id}&t=${Date.now()}`;+ const a1 = _bEl('benchSaveCard'), a2 = _bEl('benchSaveJson');+ if (a1) a1.href = `/bench/card?id=${id}&download=1`;+ if (a2) a2.href = `/bench/run?id=${id}&download=1`;+ const row = ((BENCH.plan || {}).runs || []).find(r => r.run_id === runId) || {};+ const inc = _bEl('benchIncomplete');+ if (inc) inc.hidden = row.complete !== false;+ const note = _bEl('benchSubmitNote');+ if (note) note.textContent = '';+ const consent = _bEl('benchConsent');+ if (consent) consent.hidden = true;+ _bPaintSubmit(row);+ if (BENCH.plan) _bPaintHistory(BENCH.plan);+}++function _bPaintSubmit(row) {+ const btn = _bEl('benchSubmitBtn'), note = _bEl('benchSubmitNote');+ const d = BENCH.plan || {};+ if (!btn) return;+ btn.disabled = false;+ if (!d.analytics_enabled) { btn.disabled = true; if (note) note.textContent = BENCH_COPY.submit_off; return; }+ if (!d.unsent_eligible) {+ btn.disabled = true;+ if (note) note.textContent = (row && row.complete === false) ? BENCH_COPY.submit_ineligible : BENCH_COPY.submit_nothing;+ } else if (note) {+ note.textContent = '';+ }+ // The outcome of the last Submit stays on screen until another run is shown.+ if (BENCH.submitMsg && note) note.textContent = BENCH.submitMsg;+}++async function benchCopy() {+ if (!BENCH.shown) return;+ let d;+ try { d = await _bJson(`/bench/text?id=${encodeURIComponent(BENCH.shown)}`); }+ catch (e) { _bToast(BENCH_COPY.copy_failed, 'warning'); return; }+ if (!d.ok) { _bToast(BENCH_COPY.copy_failed, 'warning'); return; }+ try {+ await navigator.clipboard.writeText(d.text);+ } catch (e) {+ const ta = document.createElement('textarea');+ ta.value = d.text; document.body.appendChild(ta); ta.select();+ let copied = false;+ try { copied = document.execCommand('copy'); } catch (e2) { /* report below */ }+ ta.remove();+ if (!copied) { _bToast(BENCH_COPY.copy_failed, 'warning'); return; }+ }+ _bToast(BENCH_COPY.copied, 'success');+}++function benchSubmitOpen() {+ const c = _bEl('benchConsent');+ if (c) c.hidden = false;+}++async function benchSubmit() {+ const note = _bEl('benchSubmitNote');+ let d;+ try { d = await _bJson('/bench/submit', { method: 'POST' }); } catch (e) { d = { ok: false }; }+ const c = _bEl('benchConsent');+ if (c) c.hidden = true;+ BENCH.submitMsg = d.ok ? _bFill(BENCH_COPY.submit_done, { n: d.sent })+ : d.code === 'analytics_off' ? BENCH_COPY.submit_off+ : d.code === 'nothing_to_send' ? BENCH_COPY.submit_nothing : BENCH_COPY.submit_error;+ if (note) note.textContent = BENCH.submitMsg;+ await benchRefresh();+}++// ---- run / stop / install ---------------------------------------------------------+async function benchRun() {+ const run = _bEl('benchRunBtn');+ if (run) run.disabled = true;+ const d = await _bJson('/bench/start', { method: 'POST' });+ if (!d.ok) {+ const msg = BENCH_COPY.busy[d.code] || BENCH_COPY.reason[d.code] || d.code || 'Bench could not start.';+ _bToast(msg, 'warning');+ } else {+ BENCH.wasRunning = true;+ }+ await benchRefresh();+}++async function benchStop() {+ await _bJson('/bench/stop', { method: 'POST' });+ await benchRefresh();+}++async function benchInstallImage() {+ const d = await _bJson('/bench/install_image', { method: 'POST' });+ if (!d.ok) _bToast(d.error || BENCH_COPY.busy[d.code] || 'The download could not start.', 'warning');+ await benchRefresh();+}++// ---- published to the page --------------------------------------------------------+Object.assign(globalThis, {+ openBenchModal, closeBenchModal, benchRefresh, benchRun, benchStop, benchCopy,+ benchSubmitOpen, benchSubmit, benchShowRun, benchInstallImage, benchFmt,+});diff --git a/webapp/js/capabilities.js b/webapp/js/capabilities.jsnew file mode 100644index 0000000..9282c41--- /dev/null+++ b/webapp/js/capabilities.js@@ -0,0 +1,261 @@+// webapp/js/capabilities.js — grey out what the picked model cannot do (5.0).+//+// Owner, 31 Oct 2026: "see what features we are offering and gray out the+// rest." The SERVER owns the facts: model_capabilities.py declares, per engine+// and per variant (H3 Best, Fast, Fast HD, Flex, Flex Turbo, LTX-2.5, ...),+// the modes, canvases, lengths, inputs, options and Pro status, plus the one+// plain sentence to show on anything it does not do. It arrives here as+// BOOT.capabilities (and GET /capabilities). make_job asks the same rows, so+// what this module greys is exactly what the server would not render.+//+// This module knows only the DOM side: which control is a mode, a canvas, a+// length or an option. It never holds a list of modes or a reason of its own;+// test_model_capabilities.py fails the build if one is typed in here. A new+// port declares its row in Python and its controls light up or grey out with+// no JS change.+//+// Greyed = `.cap-locked` + aria-disabled + the row's reason as the tooltip. A+// click on a greyed control does nothing except show that reason (one capture+// listener for the whole page, so no feature module has to learn about it).++const CAP_LOCK_CLASS = 'cap-locked';++// Options -> the controls that set them. DOM facts only (which element is the+// Steps row); whether a variant offers the option is the table's.+const CAP_OPTION_CONTROLS = {+ steps: ['#h3StepsGroup [data-h3-steps]'],+ speed: ['#h3SpeedGroup [data-h3-speed="fast"]', '#h3SpeedGroup [data-h3-speed="best"]'],+ clean_sound: ['#h3CleanSoundRow input', '#h3CleanSoundRow label'],+};+// Options whose control belongs to one engine (an LTX variant does not lock+// H3's Steps pills).+const CAP_OPTION_ENGINE = { steps: 'h3', speed: 'h3', clean_sound: 'h3' };++function capTable() {+ return (typeof BOOT !== 'undefined' && BOOT && BOOT.capabilities) || null;+}++function capVariant(id) {+ const t = capTable();+ return (t && t.variants && t.variants[id]) || null;+}++function _capVariants(engine) {+ const t = capTable();+ if (!t || !t.variants) return [];+ return Object.values(t.variants).filter(v => v.engine === engine);+}++// What the form has picked, in the vocabulary of the rows' `pick` field.+function capPickNow() {+ const engine = (typeof currentEngine === 'function') ? currentEngine() : 'ltx';+ const pick = {};+ if (engine === 'h3') {+ if (typeof h3SpeedPref === 'function') pick.speed = h3SpeedPref();+ if (typeof h3CurrentQuality === 'function') pick.quality = h3CurrentQuality();+ } else if (engine === 'ltx') {+ const gen = (BOOT.engines || []).find(e => e.id === 'ltx');+ const g = gen && gen.generation ? 'ltx' + String(gen.generation).replace('.', '') : '';+ if (g) pick.generation = g;+ }+ return { engine, pick };+}++// Same rule as model_capabilities.variant_for_pick: every row whose `pick`+// matches is a candidate, highest rank wins, else the engine's default.+function capVariantFor(engine, pick) {+ let best = null, score = null;+ for (const row of _capVariants(engine)) {+ const want = row.pick || {};+ const keys = Object.keys(want);+ if (!keys.length || !keys.every(k => String(pick[k]) === String(want[k]))) continue;+ const s = [Number(row.rank || 0), keys.length];+ if (!score || s[0] > score[0] || (s[0] === score[0] && s[1] > score[1])) { best = row; score = s; }+ }+ if (best) return best;+ const t = capTable();+ const dv = t && t.engines && t.engines[engine] && t.engines[engine].default_variant;+ return dv ? capVariant(engine + '.' + dv) : null;+}++function capVariantNow() {+ const { engine, pick } = capPickNow();+ return capVariantFor(engine, pick);+}++function capServesMode(row, mode) {+ if (!row || !Array.isArray(row.modes)) return true;+ if (mode === 'oneshot') mode = 't2v';+ return row.modes.indexOf(mode) !== -1;+}++function capCellAllowed(row, cell) {+ if (!row || !cell) return true;+ if (Array.isArray(row.qualities) && row.qualities.indexOf(cell.quality) === -1) return false;+ if (Array.isArray(row.lengths) && row.lengths.indexOf(cell.length) === -1) return false;+ const flags = (row.cells && row.cells.exclude_flags) || [];+ return !flags.some(f => !!cell[f]);+}++// The JS twin of model_capabilities.check(): [] when the row renders this,+// else one {axis, value, reason, fallback} per problem.+function capCheck(row, req) {+ req = req || {};+ const out = [];+ if (!row) return out;+ const bad = (axis, value) => out.push({ axis, value, reason: (row.reasons || {})[axis] || '', fallback: row.fallback || null });+ if (req.mode != null && !capServesMode(row, req.mode)) bad('modes', req.mode);+ if (req.cell && !capCellAllowed(row, req.cell)) {+ const c = req.cell;+ if (Array.isArray(row.qualities) && row.qualities.indexOf(c.quality) === -1) bad('qualities', c.quality);+ else if (Array.isArray(row.lengths) && row.lengths.indexOf(c.length) === -1) bad('lengths', c.length);+ else bad('cells', c.key || c.label);+ }+ (req.options || []).forEach(o => { if ((row.options || []).indexOf(o) === -1) bad('options', o); });+ (req.inputs || []).forEach(i => { if ((row.inputs || []).indexOf(i) === -1) bad('inputs', i); });+ const t = capTable();+ if (row.pro && t && t.pro_active === false) bad('pro', true);+ return out;+}++function capLock(el, reason) {+ if (!el) return;+ if (el.dataset.capTitle == null) el.dataset.capTitle = el.getAttribute('title') || '';+ el.classList.add(CAP_LOCK_CLASS);+ el.setAttribute('aria-disabled', 'true');+ el.dataset.capReason = reason || '';+ if (reason) el.setAttribute('title', reason);+}++function capUnlock(el) {+ if (!el || !el.classList.contains(CAP_LOCK_CLASS)) return;+ el.classList.remove(CAP_LOCK_CLASS);+ el.removeAttribute('aria-disabled');+ if (el.dataset.capTitle) el.setAttribute('title', el.dataset.capTitle);+ else el.removeAttribute('title');+ delete el.dataset.capTitle;+ delete el.dataset.capReason;+}++function _capSet(el, reason) {+ if (reason) capLock(el, reason); else capUnlock(el);+}++function _capChipMode(chip) {+ if (typeof _modeChipMode === 'function') return _modeChipMode(chip);+ return chip.dataset.lipsync ? 'a2v' : (chip.dataset.mode || '');+}++// Mode chips: a mode the ENGINE renders but the picked variant does not. (A+// mode the engine itself lacks is engines.js's foreign-mode business: that+// chip switches engine on click, it is not a dead end.)+function _capSyncModes(row) {+ const eng = (typeof engineById === 'function') ? engineById(row.engine) : null;+ const base = capVariantFor(row.engine, {});+ document.querySelectorAll('#modeGroup .mode-chip').forEach(chip => {+ const mode = _capChipMode(chip);+ if (!mode) return;+ const kids = mode === 'remix'+ ? ((typeof REMIX_MODES !== 'undefined' && REMIX_MODES) ? REMIX_MODES : [])+ : [mode];+ const engineHas = kids.some(m => (eng && typeof engineServesMode === 'function')+ ? engineServesMode(eng, m) : capServesMode(base, m));+ const rowHas = kids.some(m => capServesMode(row, m));+ _capSet(chip, engineHas && !rowHas ? row.reasons.modes : '');+ });+}++// Canvas and length chips (H3's two strips): greyed when the cell they would+// land on is one the picked variant does not render.+function _capSyncCells(row) {+ if (row.engine !== 'h3' || typeof h3CellFor !== 'function') return;+ const q = (typeof h3CurrentQuality === 'function') ? h3CurrentQuality() : null;+ const l = (typeof h3CurrentLength === 'function') ? h3CurrentLength() : null;+ const reasonFor = cell => {+ const p = capCheck(row, { cell });+ return p.length ? p[0].reason : '';+ };+ // A canvas chip can itself change the variant (Fast HD is a canvas), so it+ // is judged against the row a click on it would pick, not the live one:+ // otherwise Fast HD would lock every other canvas and trap the picker.+ const { pick } = capPickNow();+ document.querySelectorAll('#h3QualityGroup [data-h3-quality]').forEach(chip => {+ const next = capVariantFor(row.engine, Object.assign({}, pick, { quality: chip.dataset.h3Quality })) || row;+ const p = capCheck(next, { cell: h3CellFor(chip.dataset.h3Quality, l) });+ _capSet(chip, p.length ? p[0].reason : '');+ });+ document.querySelectorAll('#h3LengthGroup [data-h3-length]').forEach(chip => {+ _capSet(chip, reasonFor(h3CellFor(q, chip.dataset.h3Length)));+ });+}++function _capSyncOptions(row) {+ Object.keys(CAP_OPTION_CONTROLS).forEach(opt => {+ const mine = !CAP_OPTION_ENGINE[opt] || CAP_OPTION_ENGINE[opt] === row.engine;+ const off = mine && (row.options || []).indexOf(opt) === -1;+ CAP_OPTION_CONTROLS[opt].forEach(sel => document.querySelectorAll(sel).forEach(el => {+ _capSet(el, off ? row.reasons.options : '');+ }));+ });+}++// Re-grey the form for whatever is picked now. Cheap and idempotent: safe to+// call after any click or change.+let _capBusy = false;+function capSync() {+ if (_capBusy || !capTable()) return null;+ _capBusy = true;+ try {+ const row = capVariantNow();+ document.querySelectorAll('.' + CAP_LOCK_CLASS).forEach(el => {+ if (!row) capUnlock(el);+ });+ if (!row) return null;+ document.body.dataset.capVariant = row.id;+ _capSyncModes(row);+ _capSyncCells(row);+ _capSyncOptions(row);+ return row;+ } finally {+ _capBusy = false;+ }+}++let _capSyncQueued = false;+function capSyncSoon() {+ if (_capSyncQueued) return;+ _capSyncQueued = true;+ setTimeout(() => { _capSyncQueued = false; capSync(); }, 0);+}++// A click on a greyed control: nothing switches; the reason shows. Capture+// phase, so it runs before the control's own handler.+function _capClickGuard(ev) {+ const el = ev.target && ev.target.closest && ev.target.closest('.' + CAP_LOCK_CLASS);+ if (!el) return;+ // A lock can be stale: loading a clip's settings or any other programmatic+ // switch moves the form without a click. Re-judge against the form as it is+ // now before refusing anything.+ capSync();+ if (!el.classList.contains(CAP_LOCK_CLASS)) return;+ ev.stopImmediatePropagation();+ ev.preventDefault();+ const reason = el.dataset.capReason || '';+ if (reason && typeof phosToast === 'function') phosToast(reason, { kind: 'info' });+}++// Run once from main.js.+function capInstall() {+ document.addEventListener('click', _capClickGuard, true);+ // Whatever a click or a change moved (engine, speed, canvas, mode), re-grey+ // after the owning module has repainted.+ document.addEventListener('click', capSyncSoon, false);+ document.addEventListener('change', capSyncSoon, false);+ capSync();+}++Object.assign(globalThis, {+ capTable, capVariant, capVariantFor, capVariantNow, capServesMode,+ capCellAllowed, capCheck, capLock, capUnlock, capSync, capSyncSoon,+ capInstall,+});diff --git a/webapp/js/characters.js b/webapp/js/characters.jsindex 828dce8..2abfa13 100644--- a/webapp/js/characters.js+++ b/webapp/js/characters.js@@ -28,7 +28,7 @@ function musicComposeActive() {}function musicInit() {try { audioModeChoice = localStorage.getItem('phos_audio_mode'); } catch (_) {}- if (!['compose', 'drive'].includes(audioModeChoice)) audioModeChoice = null;+ if (!['compose', 'drive', 'speech'].includes(audioModeChoice)) audioModeChoice = null;updateMusicAvailability({ music: BOOT.music, music_install: BOOT.music_install });}// The install task's last snapshot (/status.music_install), and whether this@@ -52,11 +52,17 @@ function updateMusicAvailability(s) {const ready = !!music.available;if (audioModeChoice == null) audioModeChoice = ready ? 'compose' : 'drive';const compose = audioModeChoice === 'compose';+ // Speech (speech.js) is the third Audio surface: its own pane, its own+ // install card; this function only decides which pane is showing.+ const speech = audioModeChoice === 'speech';document.getElementById('audioModeGroup').hidden = false;document.getElementById('musicComposePane').hidden = !compose;- document.getElementById('audioDrivePane').hidden = compose;+ document.getElementById('audioDrivePane').hidden = compose || speech;+ const speechPane = document.getElementById('speechPane');+ if (speechPane) speechPane.hidden = !speech;+ if (speech && typeof speechShow === 'function') speechShow();document.querySelectorAll('#audioModeGroup [data-audio-mode]').forEach(b => {- const active = b.dataset.audioMode === (compose ? 'compose' : 'drive');+ const active = b.dataset.audioMode === audioModeChoice;b.classList.toggle('active', active);b.setAttribute('aria-pressed', String(active));});@@ -75,11 +81,11 @@ function updateMusicAvailability(s) {if (document.body.dataset.workflow === 'audio') renderEngineSwitch();}function audioModeSet(mode) {- audioModeChoice = mode === 'compose' ? 'compose' : 'drive';+ audioModeChoice = ['compose', 'speech'].includes(mode) ? mode : 'drive';try { localStorage.setItem('phos_audio_mode', audioModeChoice); } catch (_) {}updateMusicAvailability();- // Compose shows the songs (the Audio chip); Video modes switch back to Videos.- if (audioModeChoice === 'compose') setMainOutputsFilter('audio');+ // Compose and Speech show the Audio chip; Video modes switch back to Videos.+ if (audioModeChoice === 'compose' || audioModeChoice === 'speech') setMainOutputsFilter('audio');}function musicPick(id, button) {document.getElementById(id).value = button.dataset.value;@@ -429,7 +435,7 @@ function musicInstallRender(el, where) {const size = 'YuE2, ~11 GB';let html;if (!music.capable) {- html = `<p class="mi-lead">YuE2 needs about ${escapeHtml(String(music.min_ram_gb || 24))} GB of unified memory, so it can't run on this Mac. The rest of Phosphene is unaffected.</p>`;+ html = `<p class="mi-lead">YuE2 needs about ${escapeHtml(String(music.min_ram_gb || 16))} GB of unified memory, so it can't run on this Mac. The rest of Phosphene is unaffected.</p>`;} else if (inst.active) {const pct = inst.percent || 1;const step = `Step ${(inst.step_index || 0) + 1} of ${inst.steps || 6} · ${escapeHtml(inst.step_label || '')}`;@@ -456,7 +462,7 @@ function musicInstallRender(el, where) {${failed ? `<p class="mi-error">${escapeHtml(inst.error)}</p>` : ''}${stopped ? '<p class="mi-sub">Install stopped. Click again to resume where it left off.</p>' : ''}<div class="mi-actions"><button type="button" class="primary" onclick="musicInstallStart(${repair ? "'repair'" : ''})">${escapeHtml(failed || stopped ? (repair ? 'Try the repair again' : 'Resume install (YuE2, ~11 GB)') : label)}</button></div>- <p class="mi-note">Needs ${escapeHtml(String(music.min_ram_gb || 24))} GB unified memory and 14 GB free disk.${distText(' Also available from the Phosphene sidebar in Pinokio.', '')}</p>`;+ <p class="mi-note">Needs ${escapeHtml(String(music.min_ram_gb || 16))} GB unified memory and 14 GB free disk.${distText(' Also available from the Phosphene sidebar in Pinokio.', '')}</p>`;}el.innerHTML = html;}@@ -552,6 +558,8 @@ function renderA2vEngineRow() {const offered = a2vH3Offered();if (row) row.hidden = !offered;const active = a2vEngineActive();+ const sceneSoundPanel = document.getElementById('audioStudioSceneSoundPanel');+ if (sceneSoundPanel) sceneSoundPanel.hidden = active !== 'ltx' || !BOOT.a2v_scene_sound_supported;if (det) det.dataset.a2vEngine = active;document.querySelectorAll('#a2vEngineGroup [data-a2v-engine]').forEach(b => {const on = b.dataset.a2vEngine === active;@@ -756,6 +764,8 @@ async function audioStudioUploadAudio(file) {AUDIO_STUDIO.audioPath = data.path || null;AUDIO_STUDIO.audioName = file.name;AUDIO_STUDIO.audioDuration = (data.duration_sec != null) ? Number(data.duration_sec) : null;+ const sceneEl = document.getElementById('audioStudioSceneSound');+ if (sceneEl) sceneEl.checked = false;audioStudioRenderSlots();audioStudioDurationFromFile();if (status) status.textContent = '';@@ -791,6 +801,13 @@ function audioStudioDurationFromFile() {// browser reading the file's own header.function audioStudioUseAudio(path, durationSec, url) {if (!path) return;+ const sceneEl = document.getElementById('audioStudioSceneSound');+ const output = typeof findOutputByPath === 'function' ? findOutputByPath(path) : null;+ if (sceneEl) sceneEl.checked = !!(output && (output.mode === 'speech' || output.engine === 'speech')) || /^speech_/.test(String(path).split('/').pop());+ const stemEl = document.getElementById('audioStudioStemAuto');+ if (stemEl && sceneEl && sceneEl.checked) stemEl.checked = false;+ const soundPrompt = document.getElementById('audioStudioScenePrompt');+ if (soundPrompt) soundPrompt.value = '';AUDIO_STUDIO.audioPath = path;AUDIO_STUDIO.audioName = String(path).split('/').pop();const d = Number(durationSec);@@ -964,7 +981,8 @@ function a2vUpdateEstimate(frames, w, h) {if (seq !== _a2vEstimateSeq) return;if (!d.ok) { el.textContent = ''; return; }const pack = d.pack === 'q8' ? 'Q8' : 'Q4';- el.textContent = `${d.width}×${d.height} · ${pack} · about ${String(d.eta).replace(/^~\s*/, '')} on this Mac`;+ const soundExtra = (document.getElementById('audioStudioSceneSound') || {}).checked ? ' + a scene sound pass' : '';+ el.textContent = `${d.width}×${d.height} · ${pack} · about ${String(d.eta).replace(/^~\s*/, '')} on this Mac${soundExtra}`;} catch (e) {if (seq === _a2vEstimateSeq) el.textContent = '';}@@ -1327,6 +1345,10 @@ function a2vLoadParams(p) {// shot) also means the model listened to the voice alone. A sidecar// without the field predates the control and rendered the full mix.const stemEl = document.getElementById('audioStudioStemAuto');+ const sceneEl = document.getElementById('audioStudioSceneSound');+ if (sceneEl) sceneEl.checked = ['1', 'true', 'on', 'yes'].includes(String(p.a2v_scene_sound || '').toLowerCase()) || ((p.a2v_scene_sound || 'auto') === 'auto' && /^speech_/.test(String(p.audio || '').split('/').pop()));+ const scenePromptEl = document.getElementById('audioStudioScenePrompt');+ if (scenePromptEl) scenePromptEl.value = p.a2v_scene_prompt || '';if (stemEl) {const autoOn = ['1', 'true', 'on', 'yes'].includes(String(p.audio_stem_auto ?? '').trim().toLowerCase());stemEl.checked = autoOn || !!String(p.audio_stem || '').trim();@@ -1481,6 +1503,8 @@ async function _a2vSplitChain(capSec, totalDur, fromSec, n) {fd.set('audio_conditioning_scale', String(audioConditioningScale));}fd.set('audio_start_time', String(nextStart));+ fd.set('a2v_scene_sound', (document.getElementById('audioStudioSceneSound') || {}).checked ? 'on' : 'off');+ fd.set('a2v_scene_prompt', (document.getElementById('audioStudioScenePrompt') || {}).value || '');if (stemAuto) fd.set('audio_stem_auto', 'on');fd.set('quality', 'high');fd.set('accel', 'off');@@ -1649,6 +1673,11 @@ async function audioStudioGenerate(opts) {fd.set('audio_conditioning_scale', String(audioConditioningScale));}fd.set('audio_start_time', String(audioStart));+ if (!_onH3) {+ const sceneEl = document.getElementById('audioStudioSceneSound');+ fd.set('a2v_scene_sound', sceneEl && sceneEl.checked ? 'on' : 'off');+ fd.set('a2v_scene_prompt', (document.getElementById('audioStudioScenePrompt') || {}).value || '');+ }// VA-21: vocal-stem seam, exposed on the manual form for the first time.const stemAutoEl = document.getElementById('audioStudioStemAuto');if (stemAutoEl && stemAutoEl.checked) fd.set('audio_stem_auto', 'on');diff --git a/webapp/js/docs.js b/webapp/js/docs.jsindex 99a9303..7c21881 100644--- a/webapp/js/docs.js+++ b/webapp/js/docs.js@@ -29,10 +29,12 @@ const DOCS_SECTIONS = [{ id: 'storyboard', title: 'Storyboard', group: 'Make', file: 'storyboard.md' },{ id: 'audio', title: 'Audio', group: 'Make', file: 'audio.md' },{ id: 'music', title: 'Music Studio', group: 'Make', file: 'music.md' },+ { id: 'speech', title: 'Speech', group: 'Make', file: 'speech.md' },{ id: 'editor', title: 'Editor', group: 'Cut', file: 'editor.md' },{ id: 'train-character', title: 'Train Character', group: 'Characters', file: 'train-character.md' },{ id: 'loras', title: 'LoRAs', group: 'Characters', file: 'loras.md' },{ id: 'settings', title: 'Settings', group: 'Reference', file: 'settings.md' },+ { id: 'bench', title: 'Phosphene Bench', group: 'Reference', file: 'bench.md' },{ id: 'shortcuts', title: 'Keyboard shortcuts', group: 'Reference', file: 'shortcuts.md' },{ id: 'buttons', title: 'Buttons and icons', group: 'Reference', file: 'buttons.md' },{ id: 'troubleshooting', title: 'Troubleshooting', group: 'Reference', file: 'troubleshooting.md' },@@ -418,7 +420,32 @@ function docsParseHash(h) {return m ? { section: m[1] || '', anchor: m[2] || '' } : null;}-async function openDocs(section, anchor) {+// THE DOCS LIVE ON THE WEBSITE (owner, 1 Nov 2026): every Docs entry point —+// the header button, the "?" shortcut, a toast's "Learn more", a #docs/ link —+// opens the matching page of https://phosphene.video/docs in the real browser,+// deep-linked to the same heading (the site renders these same pages from+// webapp/docs/*.md, so the anchors match). A page the site does not carry+// (Bench) lands on the docs home. The in-panel reader below stays only as+// docsOpenView: nothing links to it, but the Markdown stays the site's source.+const DOCS_SITE = 'https://phosphene.video/docs/';+const DOCS_NOT_ON_SITE = ['bench'];++function docsSiteUrl(section, anchor) {+ const s = String(section || '');+ if (!/^[\w-]+$/.test(s) || DOCS_NOT_ON_SITE.includes(s)+ || !DOCS_SECTIONS.some(x => x.id === s)) return DOCS_SITE;+ const a = String(anchor || '');+ return DOCS_SITE + s + '/' + (/^[\w-]+$/.test(a) ? '#' + a : '');+}++function openDocs(section, anchor) {+ const url = docsSiteUrl(section, anchor);+ if (typeof openExternal === 'function') openExternal(url);+ else { try { window.open(url, '_blank', 'noopener'); } catch (e) {} }+ return false;+}++async function docsOpenView(section, anchor) {const view = docsEl('docsView');if (!view) return;const wasOpen = view.classList.contains('show');@@ -514,18 +541,20 @@ function closeDocs() {}// A #docs/... link anywhere in the panel — an error message, a tooltip's// "read more", a pasted URL — opens the Docs there.- if (typeof window.addEventListener === 'function') {- window.addEventListener('hashchange', () => {- const p = docsParseHash(location.hash);- if (p) openDocs(p.section, p.anchor);- });- }- const p = (typeof location !== 'undefined') ? docsParseHash(location.hash) : null;- if (p) openDocs(p.section, p.anchor);+ // A #docs/... link anywhere in the panel opens that page on the website;+ // the hash is cleared so the same link works again next time.+ const docsFromHash = () => {+ const p = (typeof location !== 'undefined') ? docsParseHash(location.hash) : null;+ if (!p) return;+ try { history.replaceState(null, '', location.pathname + location.search); } catch (e) {}+ openDocs(p.section, p.anchor);+ };+ if (typeof window.addEventListener === 'function') window.addEventListener('hashchange', docsFromHash);+ docsFromHash();})();// ---- published to the page -----------------------------------------------------Object.assign(globalThis, {- DOCS_SECTIONS, openDocs, closeDocs, docsRender, docsSlug, docsPlain,+ DOCS_SECTIONS, openDocs, docsOpenView, docsSiteUrl, closeDocs, docsRender, docsSlug, docsPlain,docsSearch, docsBuildIndex, docsLoad, docsForDistribution,});diff --git a/webapp/js/editor.js b/webapp/js/editor.jsindex 6897a23..2e27b21 100644--- a/webapp/js/editor.js+++ b/webapp/js/editor.js@@ -19,14 +19,22 @@// clip.path when clip.proxy exists, and the one place it may (no proxy yet)// says so on the badge instead of pretending.//-// 2. Two <video> elements measured NO benefit over one once proxies are in-// play — the swap costs what the seek costs, and two decoders is two-// decoders. There is one video element here, deliberately.+// 2. The program monitor has TWO <video> elements, one on screen and one+// loading the next clip off screen (sbeStageVideo). An older measurement+// found "no benefit" in a second element, but it timed the seek, not the+// picture: with one element, every cut handed the visible <video> a new+// file, and the app's web view (WebKit) paints black until that file has+// decoded its first frame. Measured 2 Nov 2026 on the 17-clip SUNDAY MASS+// film, by capturing the monitor in the app's own web view: all 16 cuts+// went black (88 black frames, 60-260 ms each); with the two elements,+// 0 of 16. The visible element is never given a new file.//-// 3. The preview freezes 50-67 ms at each cut (1.2-1.6 frames at 24 fps) and-// Safari's seeking is accurate to 3-6 frames. That is stated once, quietly,-// under the transport, and never papered over: the render is exact, the-// preview is an approximation of it.+// 3. Safari's seeking is accurate to 3-6 frames, and a cut the spare had no+// time to prepare (shots shorter than about a quarter of a second, or a+// scrub) holds the outgoing frame until the incoming one is ready instead+// of going black. That is stated once, quietly, under the transport, and+// never papered over: the render is exact, the preview is an+// approximation of it.//// Two traps this feature already paid for, both load-bearing: `muted` is set// BEFORE the first play() or Chrome silently refuses autoplay, and elements are@@ -199,6 +207,9 @@ window.SBE = {peaks: null, peaksFor: '', unplaced: [], pool: [], relink: [], offline: [], prepare: {},onMissing: null,proxyUrl: '', revision: 0, dirty: false, saving: false, conflict: 0,+ // The program monitor's two <video> elements: which one is on screen, and+ // the number of the newest request to change it (see sbeStageVideo).+ vidLive: 'sbeVideo', vidGen: 0,// THE SAVE'S OWN BOOKKEEPING. `savePending` is the save that arrived while// another was in flight and used to be thrown away; `dirtyAt` is when the// oldest unwritten change was made, which is what lets the tick notice that@@ -483,6 +494,21 @@ function sbeLayout(clips) {// an extension tag and a timestamp — "bizarrotrn_the_man_in_the_loud_4_// dn768x416_ext6_20260818_215…" — and at fit zoom both truncate, so the track// read as a row of half-words. The exact filename stays on the block's title.+// A NAME THAT FITS THE BLOCK. Ellipsis truncation turned every shot on a+// one-minute film into "S…" (SUNDAY MASS, 2 Nov: 17 blocks, not one readable+// at the default zoom), because the useful part of "S05 · 05_s08" is its head+// and the label was cut from the tail. A narrow block shows the head alone:+// the shot code before " · ", or the first word. The full name stays in the+// block's tooltip and the inspector.+function sbeClipShortName(label, w) {+ const nice = sbeNiceName(label);+ if (sbeNum(w, 999) >= 110) return nice;+ const raw = String(label || '').trim();+ const head = raw.indexOf(' · ') > 0 ? raw.split(' · ')[0].trim() : '';+ if (head && head.length <= 8) return head;+ return (nice.split(' ')[0] || nice).slice(0, 10);+}+function sbeNiceName(s) {let t = String(s || '').trim();if (!t) return '';@@ -2268,9 +2294,20 @@ function sbeOvText(o) {};}-function sbeOvAt(overlays, t) {+// TWO LAYERS ON THE OVERLAY LANE (2 Nov): pictures (stills, videos) and+// titles. A title may sit over a picture overlay — a logo bug that runs the+// whole film is exactly where a title has to go — but two pictures, or two+// titles, still never share a second. Before this, Add title on SUNDAY MASS+// (a spinning mark over all 63 s) landed the title AFTER the film's last+// frame, where nothing shows it, and said nothing.+function sbeOvLayerOf(o) { return sbeOvKind(o) === 'text' ? 'text' : 'media'; }++// `layer` narrows the lookup to 'text' or 'media'; absent is either (the+// first one in film order, the old behaviour).+function sbeOvAt(overlays, t, layer) {const now = sbeNum(t);for (const o of overlays || []) {+ if (layer && sbeOvLayerOf(o) !== layer) continue;if (now >= sbeNum(o.film_start) - 1e-6 && now < sbeNum(o.film_end)) return o;}return null;@@ -2281,11 +2318,14 @@ function sbeOvById(overlays, id) {return null;}-// ONE LANE, so a move that would land on top of another card is refused-// rather than silently stacked — the same rule the picture lane lives by.-function sbeOvFits(overlays, id, fs, fe) {+// ONE LANE PER LAYER, so a move that would land on top of another card is+// refused rather than silently stacked — the same rule the picture lane lives+// by. `layer` ('text' | 'media') limits the check to that layer; a title over+// a picture overlay is not a collision. Absent checks every overlay.+function sbeOvFits(overlays, id, fs, fe, layer) {for (const o of overlays || []) {if (o.id === id) continue;+ if (layer && sbeOvLayerOf(o) !== layer) continue;if (fs < sbeNum(o.film_end) - 1e-6 && fe > sbeNum(o.film_start) + 1e-6) {return false;}@@ -2299,7 +2339,7 @@ function sbeOvMove(overlays, id, filmStart) {if (o.locked) return { overlays: overlays, ok: false, why: 'locked' };const len = Math.max(SBE_MIN_CLIP, sbeNum(o.film_end) - sbeNum(o.film_start));const fs = Math.max(0, sbeNum(filmStart));- if (!sbeOvFits(overlays, id, fs, fs + len)) {+ if (!sbeOvFits(overlays, id, fs, fs + len, sbeOvLayerOf(o))) {return { overlays: overlays, ok: false,why: 'another overlay is already there' };}@@ -2319,7 +2359,7 @@ function sbeOvTrim(overlays, id, edge, filmTime) {let fs = sbeNum(o.film_start), fe = sbeNum(o.film_end);if (edge === 'l') fs = Math.min(fe - SBE_MIN_CLIP, Math.max(0, sbeNum(filmTime)));else fe = Math.max(fs + SBE_MIN_CLIP, sbeNum(filmTime));- if (!sbeOvFits(overlays, id, fs, fe)) {+ if (!sbeOvFits(overlays, id, fs, fe, sbeOvLayerOf(o))) {return { overlays: overlays, ok: false, why: 'another overlay is there' };}const out = overlays.map(x => Object.assign({}, x));@@ -2336,12 +2376,15 @@ function sbeOvTrim(overlays, id, edge, filmTime) {function sbeOvAdd(overlays, item, filmStart) {const dur = Math.max(SBE_MIN_CLIP, sbeNum(item.duration_s, 0) || 3);let fs = Math.max(0, sbeNum(filmStart));- // Land somewhere free rather than refusing: the lane is one track, and a- // card dropped onto another card means "after it".+ const layer = (item.kind === 'text') ? 'text' : 'media';+ // Land somewhere free rather than refusing: a card dropped onto another+ // card OF ITS OWN LAYER means "after it". A title over a picture overlay+ // stays where it was asked for.for (let i = 0; i < (overlays || []).length + 1; i++) {- if (sbeOvFits(overlays, null, fs, fs + dur)) break;+ if (sbeOvFits(overlays, null, fs, fs + dur, layer)) break;let push = fs;for (const o of overlays) {+ if (sbeOvLayerOf(o) !== layer) continue;if (fs < sbeNum(o.film_end) - 1e-6 && fs + dur > sbeNum(o.film_start) + 1e-6) {push = Math.max(push, sbeNum(o.film_end));}@@ -2708,7 +2751,9 @@ function sbeMoveTo(clips, id, filmStart, opts) {sbeLayout(rest); // where would it land packed tight?const prev = rest[rest.indexOf(c) - 1];const floor = prev ? sbeNum(prev.film_end) : 0;- c._gap = Math.max(0, sbeRound(want - floor));+ // `tight`: a reorder of a film cut end to end lands the shot flush against+ // its new neighbour — a drop a few pixels off must not open a black hole.+ c._gap = (opts && opts.tight) ? 0 : Math.max(0, sbeRound(want - floor));sbeLayout(rest);// The clip being dragged is exempt: its sound stays exactly where it is,// which is the J-cut. Everything the reflow pushed takes its sound along.@@ -4465,6 +4510,9 @@ function sbeAdopt(r, quiet) {SBE.backup = r.backup || null;SBE.backupHidden = false; // a NEW offer is not the one dismissedSBE.overlays = (SBE.edit.overlays || []).map(o => Object.assign({}, o));+ // The overlay previews are per film: a new load forgets what the last film+ // asked for, so a preview built since is picked up from `o.preview`.+ SBE.ovPreviews = {}; SBE.ovAsked = {}; SBE.ovFailed = {};SBE.transitions = (SBE.edit.transitions || []).map(t => Object.assign({}, t));SBE.tracks = sbeTsCopy(SBE.edit.audio_tracks || []);// EDITOR-1: THE MARKERS ARE THE DOCUMENT'S TOO. They were never read back,@@ -7149,6 +7197,13 @@ function sbePaintMix() {const pct = Math.round(mix.bed_gain * 100);if (sl) { sl.value = String(pct); sl.disabled = !has; }if (num) num.textContent = pct + '%';+ // The chip on the A2 head and its pop-up slider: the same number, visible+ // whatever height the lane has.+ const sl2 = sbeEl('sbeBedGain2'), num2 = sbeEl('sbeBedGainNum2'), chip = sbeEl('sbeBedChip');+ if (sl2 && document.activeElement !== sl2) { sl2.value = String(pct); }+ if (sl2) sl2.disabled = !has;+ if (num2) num2.textContent = pct + '%';+ if (chip) { chip.textContent = pct + '%'; chip.hidden = !has; }if (dk) { dk.checked = !!mix.duck; dk.disabled = !has; }// A CONTROL THAT HAS STOPPED ACTING SAYS SO, LOUDLY. The duck stands down// under an authored envelope — never two curves on one level — and a ticked@@ -7220,6 +7275,11 @@ function sbePaintTrack() {// un-scrubbable would be advice to run a Prepare that would do// nothing.: (kind === 'video' && !c.proxy ? 'slow' : ''))));+ // A NARROW BLOCK KEEPS ITS NAME. A speed or grade badge on a 40 px block+ // printed over the shot code ("9.99X" for S14 at 0.99x); below ~70 px the+ // badge gives way (the speed is in the tooltip, the inspector and the+ // block's colour). A drag's live readout and Offline always show.+ const showFlag = !!flag && (dragHud || offline || (flag === 'slow' ? w >= 36 : w >= 70));const cls = 'sbe-clip is-' + kind + (selMap[String(c.id)] ? ' is-sel' : '')+ ((selN > 1 && String(c.id) === String(SBE.sel)) ? ' is-primary' : '')+ (c.id === SBE.curId ? ' is-playing' : '')@@ -7228,7 +7288,7 @@ function sbePaintTrack() {+ (Math.abs(sp - 1) >= 1e-6 ? ' is-retimed' : '')+ (!sbeFramingIsNeutral(c) ? ' is-framed' : '')+ (offline ? ' is-offline' : '')- + (flag ? ' has-flag' : '');+ + (showFlag ? ' has-flag' : '');// A still and a slug have no source window to report — their only number// is the hold, and printing "0.00→3.00" of a clock they do not have reads// as a trim somebody made.@@ -7267,7 +7327,7 @@ function sbePaintTrack() {+ (bad ? '\n' + bad[0].message : '')) + '" '+ 'style="left:' + sbePx(c.film_start).toFixed(1) + 'px;width:' + w.toFixed(1) + 'px">'+ thumb- + '<div class="sbe-cl-name">' + escapeHtml(sbeNiceName(label)) + '</div>'+ + '<div class="sbe-cl-name">' + escapeHtml(sbeClipShortName(label, w)) + '</div>'+ (w > 96 ? '<div class="sbe-cl-meta">' + escapeHtml(meta) + '</div>' : '')// FILM-39: "SLOW" was jargon with no tooltip and no action — it// means "no proxy yet, so scrubbing decodes from the source GOP".@@ -7276,7 +7336,8 @@ function sbePaintTrack() {// without touching the clip's own drag/select handling.// 4.17: the flag is also the fix — a click runs Prepare// (sbeOnTrackDown routes it before any drag/select handling).- + (flag === 'slow'+ + (!showFlag ? ''+ : flag === 'slow'? '<div class="sbe-cl-flag sbe-slow-flag" role="button" title="Slow to scrub until Prepare builds a proxy — click to run Prepare.">⧖</div>': (flag ? '<div class="sbe-cl-flag">' + escapeHtml(flag) + '</div>' : ''))+ sbeSyncBadge(c)@@ -8108,7 +8169,7 @@ async function sbeAddSoundFile() {// `gain` is the number the mix plays, `sbeRtGain(level, ref_lufs)`.const SBE_RT_NAME = 'Room tone';const SBE_RT_DEFAULT_LEVEL = -38; // mirrors room_tone.DEFAULT_LEVEL-const SBE_RT_LEVEL_MIN = -45; // mirrors LEVEL_MIN / LEVEL_MAX+const SBE_RT_LEVEL_MIN = -60; // mirrors LEVEL_MIN / LEVEL_MAXconst SBE_RT_LEVEL_MAX = -18;const SBE_RT_REF = -18; // mirrors REF_LUFSconst SBE_RT_STEP = 30; // mirrors BED_STEP_S@@ -8342,7 +8403,8 @@ function edRtPaint() {if (take) { take.hidden = !cur; take.disabled = busy; }if (del) { del.hidden = !cur; del.disabled = busy; }const auto = document.getElementById('edRtAutoBox');- if (auto && info) auto.checked = info.auto !== false;+ // OFF unless the setting says on (2 Nov): the automatic bed is opt-in.+ if (auto && info) auto.checked = info.auto === true;}function sbeRtFmtLevel(v) {@@ -8421,7 +8483,20 @@ async function edRtApply(kind) {}// The timeline may have moved while the bed was being made.const nowLen = sbeFilmDuration(SBE.clips);- const tr = sbeRtNewTrack(r, nowLen, level, cur ? cur.track.id : '');+ // A FIRST "FROM THIS FILM" BED GOES IN AT THE ROOM'S OWN LEVEL, measured+ // from the clips (`suggest_level`), unless the slider was moved. The fixed+ // −38 LUFS it used to take played 15-25 dB over the room it copied (SUNDAY+ // MASS, 2 Nov): a flat hiss under every line.+ let lvl = level;+ if (!cur && ED.rtLevel === undefined && r.suggest_level !== undefined+ && r.suggest_level !== null && isFinite(Number(r.suggest_level))) {+ lvl = sbeRtClampLevel(r.suggest_level);+ const sl = document.getElementById('edRtLevel');+ if (sl) sl.value = String(Math.round(lvl));+ const out = document.getElementById('edRtLevelOut');+ if (out) out.textContent = sbeRtFmtLevel(lvl);+ }+ const tr = sbeRtNewTrack(r, nowLen, lvl, cur ? cur.track.id : '');const res = sbeTsMutate(ts => sbeRtPlace(ts, tr));ED.rtPicked = false;ED.rtFallback = r.fallback@@ -8433,7 +8508,7 @@ async function edRtApply(kind) {if (!res) return false;const idx = (SBE.tracks || []).findIndex(t => String(t.id) === String(res.track));phosToast(SBE_RT_NAME + ' on ' + sbeTrackLabel(idx) + ': ' + (r.label || variant)- + (kind === 'take' ? ', take ' + seed : '') + ', ' + sbeRtFmtLevel(level) + '.',+ + (kind === 'take' ? ', take ' + seed : '') + ', ' + sbeRtFmtLevel(lvl) + '.',{ kind: 'success', duration: 5000 });return true;}@@ -8635,7 +8710,13 @@ function sbePaintOverlays() {const name = (okind === 'text')? (sbeOvText(o).text.split('\n')[0] || 'Title'): sbeNiceName(o.title || String(o.path || '').split('/').pop() || 'card');- html += '<div class="sbe-ov is-' + okind + (o.id === SBE.ovSel ? ' is-sel' : '') + '" '+ // STACKED: a title that shares seconds with a picture overlay is drawn in+ // the lane's lower half and the picture in the upper, so both stay+ // visible and grabbable.+ const other = (SBE.overlays || []).some(x => x !== o && sbeOvLayerOf(x) !== sbeOvLayerOf(o)+ && sbeNum(x.film_start) < sbeNum(o.film_end) - 1e-6 && sbeNum(x.film_end) > sbeNum(o.film_start) + 1e-6);+ const stack = other ? (okind === 'text' ? ' is-stack-lo' : ' is-stack-hi') : '';+ html += '<div class="sbe-ov is-' + okind + stack + (o.id === SBE.ovSel ? ' is-sel' : '') + '" '+ 'data-id="' + escapeHtml(o.id) + '" '+ 'title="' + escapeHtml((okind === 'text'? 'Title — drawn over the picture. '@@ -8671,16 +8752,19 @@ function sbeOvPaint(t) {if (!el || !el.classList) return;const tx = sbeEl('sbeOvText');const now = (t === undefined) ? SBE.playhead : sbeNum(t);- const o = sbeOvAt(SBE.overlays, now);+ // BOTH LAYERS, each on its own element: a title (the DOM text) can sit on+ // a picture overlay (the image layer) at the same second.+ const ot = sbeOvAt(SBE.overlays, now, 'text');+ const om = sbeOvAt(SBE.overlays, now, 'media');const txOff = () => { if (tx && tx.classList) tx.classList.remove('is-on'); };- if (!o) { el.classList.remove('is-on'); txOff(); return; }- if (sbeOvKind(o) === 'text') {+ if (!ot && !om) { el.classList.remove('is-on'); txOff(); sbeOvVideoOff(); sbeOvNote(''); return; }+ if (ot) {+ const o = ot;// A TITLE IS DRAWN IN THE DOM, not re-rendered: the same string, the same// anchor and the same size rule (`font_size` at 1080 high, scaled to// the stage) the rasteriser uses, so what is on the stage is what lands// in the file. The stage's own height is the scale; the style values// are written as custom properties and the stylesheet does the rest.- el.classList.remove('is-on');if (!tx || !tx.classList) return;const tt = sbeOvText(o);const st = tt.style;@@ -8695,16 +8779,155 @@ function sbeOvPaint(t) {tx.style.opacity = String(sbeFadeOpacityAt(o, now));tx.classList.add('is-on');sbeOvTextPlace(tx, st, stage);+ } else {+ txOff();+ }+ const o = om;+ if (!o || !o.path) { el.classList.remove('is-on'); sbeOvVideoOff(); sbeOvNote(''); return; }+ // A VIDEO NEVER GOES THROUGH THE <img>. It used to: every overlay was+ // `/image?path=<file>`, so a .mov sting failed to load and WebKit painted+ // its broken-image "?" in the middle of every frame of the film (owner,+ // SUNDAY MASS, 2 Nov). A video plays on its own layer from its preview.+ if (sbeOvKind(o) === 'video') {+ el.classList.remove('is-on');+ sbeOvVideoPaint(o, now);return;}- txOff();- if (!o.path) { el.classList.remove('is-on'); return; }+ sbeOvVideoOff();const url = '/image?w=1280&path=' + encodeURIComponent(o.path);- if (el.getAttribute('src') !== url) el.setAttribute('src', url);+ if (!el.dataset) el.dataset = {};+ if (!el.dataset.errHooked && typeof el.addEventListener === 'function') {+ // NEVER A BROKEN-IMAGE GLYPH ON THE STAGE. A card that will not load is+ // taken off and named quietly in the corner instead.+ el.dataset.errHooked = '1';+ el.addEventListener('error', () => {+ el.dataset.failed = el.getAttribute('src') || '';+ el.classList.remove('is-on');+ sbeOvPaint();+ });+ }+ if (el.getAttribute('src') !== url) { el.dataset.failed = ''; el.setAttribute('src', url); }+ if (el.dataset.failed === url) {+ el.classList.remove('is-on');+ sbeOvNote('This overlay can\u2019t be shown here \u2014 the render still includes it.');+ return;+ }+ sbeOvNote('');el.style.opacity = String(sbeFadeOpacityAt(o, now));el.classList.add('is-on');}+// ---- THE OVERLAY LANE'S VIDEO LAYER --------------------------------------+// The overlay's PREVIEW copy (made beside the clip proxies: HEVC with alpha+// for a transparent sting, all-intra H.264 otherwise) plays muted on its own+// <video>, following the playhead: seeked when parked, chased only past a+// sixth of a second when playing. A video overlay with no preview yet asks+// for one once and says so in the corner; one that cannot be previewed says+// that, and the render — which reads the original — is unaffected.+function sbeOvNote(text) {+ const n = sbeEl('sbeOvNote');+ if (!n) return;+ if (n.textContent !== text) n.textContent = text;+ n.hidden = !text;+}++function sbeOvVideoOff() {+ const v = sbeEl('sbeOvVideo');+ if (!v) return;+ v.style.opacity = '0';+ try { if (!v.paused) v.pause(); } catch (e) {}+}++function sbeOvPreviewFor(o) {+ return (o && o.preview) || ((SBE.ovPreviews || {})[(o || {}).path]) || '';+}++function sbeOvAskPreview(path) {+ if (!SBE.id || !path) return;+ SBE.ovAsked = SBE.ovAsked || {};+ if (SBE.ovAsked[path]) return;+ SBE.ovAsked[path] = 1;+ const fd = new URLSearchParams();+ fd.set('id', SBE.id);+ fd.set('path', path);+ fetch('/storyboard/edit/overlay-preview', { method: 'POST', body: fd })+ .then(r => r.json())+ .then(r => {+ SBE.ovPreviews = Object.assign({}, SBE.ovPreviews || {}, (r && r.previews) || {});+ if (!SBE.ovPreviews[path]) { SBE.ovFailed = SBE.ovFailed || {}; SBE.ovFailed[path] = 1; }+ sbeOvPaint();+ })+ .catch(() => { SBE.ovFailed = SBE.ovFailed || {}; SBE.ovFailed[path] = 1; sbeOvPaint(); });+}++// A browser that decodes HEVC but not its alpha layer (Chromium) shows a+// transparent sting as an opaque black frame over the picture — worse than+// nothing. One look at the four corners of the first frame decides: opaque+// black corners on a non-WebKit engine means "cannot preview here".+function sbeOvAlphaLost(v) {+ if (!/Chrome\/|Firefox\//.test(navigator.userAgent || '')) return false;+ try {+ const c = document.createElement('canvas');+ c.width = 32; c.height = 18;+ const g = c.getContext('2d');+ g.drawImage(v, 0, 0, 32, 18);+ const d = g.getImageData(0, 0, 32, 18).data;+ const at = (x, y) => { const i = (y * 32 + x) * 4; return d[i + 3] > 250 && d[i] + d[i + 1] + d[i + 2] < 12; };+ return at(0, 0) && at(31, 0) && at(0, 17) && at(31, 17);+ } catch (e) { return false; }+}++function sbeOvVideoPaint(o, now) {+ const v = sbeEl('sbeOvVideo');+ if (!v) return;+ const prev = sbeOvPreviewFor(o);+ if (!prev || !SBE.proxyUrl) {+ sbeOvVideoOff();+ if ((SBE.ovFailed || {})[o.path]) {+ sbeOvNote('This overlay can\u2019t be previewed here \u2014 the render still includes it.');+ } else {+ sbeOvNote('Making a preview of the overlay\u2026');+ sbeOvAskPreview(o.path);+ }+ return;+ }+ const url = SBE.proxyUrl + encodeURIComponent(String(prev).split('/').pop());+ if (!v.dataset) v.dataset = {};+ if (!v.dataset.hooked && typeof v.addEventListener === 'function') {+ v.dataset.hooked = '1';+ v.addEventListener('error', () => { v.dataset.bad = v.dataset.src || ''; sbeOvPaint(); });+ v.addEventListener('loadeddata', () => {+ if (sbeOvAlphaLost(v)) v.dataset.bad = v.dataset.src || '';+ sbeOvPaint();+ });+ // The transport stopping does not repaint the overlay lane, so the+ // layer stops itself the moment it notices.+ v.addEventListener('timeupdate', () => { if (!SBE.playing && !v.paused) { try { v.pause(); } catch (e) {} } });+ }+ if (v.dataset.src !== url) { v.dataset.src = url; v.src = url; }+ if (v.dataset.bad === url) {+ sbeOvVideoOff();+ sbeOvNote('This overlay can\u2019t be previewed here \u2014 the render still includes it.');+ return;+ }+ sbeOvNote('');+ v.muted = true;+ const want = Math.max(0, sbeNum(o.start) + Math.max(0, now - sbeNum(o.film_start)));+ try {+ if (v.readyState >= 1) {+ const drift = v.currentTime - want;+ if (SBE.playing) {+ if (Math.abs(drift) > 0.16) v.currentTime = want;+ if (v.paused) v.play().catch(() => {});+ } else {+ if (!v.paused) v.pause();+ if (Math.abs(drift) > 0.5 / sbeFps()) v.currentTime = want;+ }+ }+ } catch (e) {}+ v.style.opacity = String(sbeFadeOpacityAt(o, now));+}+// WHERE THE BOX SITS, IN PIXELS, KEPT INSIDE THE FRAME. The anchor is a// fraction and the align says which edge of the text sits on it; measured// against the stage so a wide title at x=0.2 is pushed back in rather than@@ -8787,6 +9010,10 @@ function edAddTitle() {SBE.ovSel = res.added.id;SBE.sel = '';SBE.txSel = '';+ // THE TEXT BOX HAS TO BE ON SCREEN to type into: it lives in the+ // inspector, and with the inspector closed Add title selected a block the+ // user then had to find a panel for.+ if (!SBE.inspect && typeof sbeInspectSet === 'function') sbeInspectSet(true);sbePaint();sbeOvPaint();const box = sbeEl('sbeOvTextBox');@@ -9646,7 +9873,7 @@ function sbePaintHead() {// menu would have been two more chances to add a panel that Escape and a// click elsewhere could not shut.const SBE_POPS = ['sbeFilmsMenu', 'sbeRenderMenu', 'sbeMoreMenu', 'sbeKeysPop', 'sbeMusicMenu',- 'sbeCbarMenu', 'sbeCtxMenu', 'sbeSoundMenu'];+ 'sbeCbarMenu', 'sbeCtxMenu', 'sbeSoundMenu', 'sbeBedPop'];function sbePopToggle(id, anchorId) {const el = sbeEl(id);@@ -10875,7 +11102,6 @@ function sbeSpeedCommit(v) {// started when you arrived. The stage's black is what a fade to black fades// to, so this is the whole of it on the picture lane.function sbeFadePaint(t) {- const v = sbeEl('sbeVideo');const img = sbeEl('sbeStill');const now = (t === undefined) ? SBE.playhead : sbeNum(t);// THE CLIP AT THE PLAYHEAD, not `curId`. `curId` is the transport's own@@ -10893,13 +11119,15 @@ function sbeFadePaint(t) {if (!el) return;el.style.opacity = el.classList.contains('is-on') ? String(o) : '';};- paint(v);+ // BOTH pictures: the spare is never `.is-on`, so this hands it back to the+ // stylesheet, which is what clears a ramp it carried before the last swap.+ for (const v of sbeVids()) paint(v);paint(img);}function sbeApplyPreviewFilter(b, frame) {const css = (Math.abs(sbeNum(b)) < 1e-6) ? '' : 'brightness(' + sbeBrightnessCss(b) + ')';- const v = sbeEl('sbeVideo');+ const v = sbeVid();const i = sbeEl('sbeStill');if (v) v.style.filter = css;if (i) i.style.filter = css;@@ -10923,8 +11151,10 @@ function sbeGradeCss(c) {return parts.join(' ');}function sbeApplyPreviewGrade(c, frame) {+ // The LIVE picture only. The incoming one is graded at the handover (sbeVidHandover), so+ // the outgoing clip is never shown wearing the incoming clip's look.const css = sbeGradeCss(c);- const v = sbeEl('sbeVideo');+ const v = sbeVid();const i = sbeEl('sbeStill');if (v) v.style.filter = css;if (i) i.style.filter = css;@@ -10939,7 +11169,7 @@ function sbeApplyPreviewFraming(frame) {const f = sbeFraming({ frame: frame || {} });const t = (Math.abs(f.zoom - 1) < 1e-9) ? '' : 'scale(' + f.zoom.toFixed(3) + ')';const o = (f.x * 100).toFixed(2) + '% ' + (f.y * 100).toFixed(2) + '%';- for (const el of [sbeEl('sbeVideo'), sbeEl('sbeStill')]) {+ for (const el of [sbeVid(), sbeEl('sbeStill')]) {if (!el || !el.style) continue;el.style.transform = t;el.style.transformOrigin = t ? o : '';@@ -11394,11 +11624,28 @@ function sbeOnTrackMove(ev) {// A move or a trim always works from the SNAPSHOT: the model clamps at// neighbours, and re-applying deltas to an already-clamped state would// let a pointer that kept going drag the clip through the wall.- const ripple = !!(ev.metaKey || ev.ctrlKey);+ // A SHOT WITH NO ROOM EITHER SIDE MOVES BETWEEN THE OTHERS. A plain drag+ // only slides a clip inside its own gaps, so on a film cut end to end+ // (SUNDAY MASS: 17 shots, no gaps) dragging a shot did nothing at all —+ // the model clamped it to where it was and nothing said why. Boxed in,+ // the drag is the reorder ⌘-drag already does: the shot goes where it is+ // dropped and the others close up around it. With a gap beside it, the+ // plain drag still slides it into the gap.+ if (d.boxed === undefined && d.mode === 'move') {+ const was = JSON.parse(d.before);+ const i = was.findIndex(x => String(x.id) === String(d.id));+ const me = was[i];+ const prev = i > 0 ? was[i - 1] : null, next = was[i + 1] || null;+ const tightL = prev ? Math.abs(sbeNum(prev.film_end) - sbeNum(me.film_start)) < 1e-3+ : sbeNum(me.film_start) < 1e-3;+ const tightR = next ? Math.abs(sbeNum(next.film_start) - sbeNum(me.film_end)) < 1e-3 : false;+ d.boxed = !!(me && next && tightL && tightR);+ }+ const ripple = !!(ev.metaKey || ev.ctrlKey) || (d.mode === 'move' && d.boxed === true);d.ripple = ripple;track.classList.toggle('is-ripple', ripple);SBE.clips = JSON.parse(d.before);- const o = { ripple: ripple };+ const o = { ripple: ripple, tight: d.mode === 'move' && d.boxed === true && !(ev.metaKey || ev.ctrlKey) };if (d.mode === 'movemany') {// THE BLOCK SLIDES BY ONE DELTA, and it is the PRIMARY clip's own start// that is snapped — the beat the user is watching is the one under the@@ -11507,6 +11754,20 @@ function sbeOnTrackUp(ev) {function sbeSeek(t) {const dur = Math.max(sbeFilmDuration(SBE.clips), 0);+ // A CLICK WHILE PLAYING PLAYS ON FROM THERE, the way every editor does.+ // It used to move the playhead and load the frame into the paused picture+ // element while the transport still read "playing": the picture froze on+ // that frame (no clock ran it) and the score played on from the OLD place+ // until the next cut re-synced it. Measured in the app's web view on+ // SUNDAY MASS (2 Nov): a click at 0:40 while playing from 0:03 left the+ // playhead parked at 40.00 for 2.7 s with the score at 0:05.7.+ if (SBE.playing) {+ sbeStop();+ SBE.playhead = Math.max(0, Math.min(dur, sbeNum(t)));+ sbePaintHead();+ sbeShowFrameAt(SBE.playhead).then(() => { if (!SBE.playing && SBE.open) sbePlay(); });+ return;+ }SBE.playhead = Math.max(0, Math.min(dur, sbeNum(t)));sbePaintHead();// A SCRUB LANDS ON THE RIGHT SOURCE SECOND. Forced, because the ground has@@ -11564,8 +11825,21 @@ function sbeLoadInto(v, c, at) {setTimeout(() => { v.removeEventListener('seeked', done); resolve(); }, 2500);};if (v.dataset.src === url && v.readyState >= 1) { seek(); return; }+ // THE SAME FILE, STILL ARRIVING. The preloader may have started this very+ // file on the spare a moment ago; assigning the src again would throw that+ // load away and start it over, which is the delay the preload exists to+ // remove. Wait for the load already under way instead.+ if (v.dataset.src === url && !v.error && v.networkState !== 3) {+ const ready = () => { v.removeEventListener('loadedmetadata', ready); seek(); };+ v.addEventListener('loadedmetadata', ready);+ setTimeout(() => { v.removeEventListener('loadedmetadata', ready); resolve(); }, 2500);+ return;+ }v.dataset.src = url;- const meta = () => { v.removeEventListener('loadedmetadata', meta); seek(); };+ // A later load may have replaced this one on the same element (the spare+ // is shared by the preloader and the cut); only the newest file seeks.+ const meta = () => { v.removeEventListener('loadedmetadata', meta);+ if (v.dataset.src === url) seek(); else resolve(); };v.addEventListener('loadedmetadata', meta);const fail = () => { v.removeEventListener('error', fail); resolve(); };v.addEventListener('error', fail);@@ -11574,8 +11848,174 @@ function sbeLoadInto(v, c, at) {});}+// ---------------------------------------------------------------------------+// TWO PICTURES, ONE ON SCREEN — why a cut is never black+// ---------------------------------------------------------------------------+// Pointing the visible <video> at the next clip's file is what made every cut+// flash black: WebKit drops the old picture the moment `src` changes and paints+// the element's own black until the new file has decoded its first frame+// after the seek. Measured in the app's own web view on a 17-clip film: all 16+// cuts went black, 60-200 ms each. Chrome tends to hold the old frame, which+// is why a desktop browser never showed it.+//+// So the stage owns two elements, `sbeVideo` and `sbeVideoB`. One is LIVE (on+// screen, carries the sound); the other is the SPARE. A new file is only ever+// loaded into the spare, off screen, and the two trade places in one+// synchronous step once the spare holds the decoded frame. The live element+// is never handed a new `src` while it is showing, so the stage always has a+// real picture on it. While a clip plays, the next clip is loaded and seeked+// on the spare ahead of time (sbePreloadNext), so most cuts are a swap with+// no wait at all.+//+// The spare is hidden with opacity like everything else on this stage, never+// display:none — WebKit will not load a display:none <video>.+function sbeVid() { return sbeEl(SBE.vidLive === 'sbeVideoB' ? 'sbeVideoB' : 'sbeVideo'); }+function sbeVidSpare() { return sbeEl(SBE.vidLive === 'sbeVideoB' ? 'sbeVideo' : 'sbeVideoB'); }+function sbeVids() { return [sbeEl('sbeVideo'), sbeEl('sbeVideoB')].filter(Boolean); }+// Both pictures off: a still, a slug or a hole is on the stage. It also+// cancels a video still being staged, so a slow load cannot land on top of+// the still that replaced it. `pause` is for the transport; a scrub that+// lands on a still has nothing playing to stop.+function sbeVidsOff(pause) {+ SBE.vidGen = (SBE.vidGen || 0) + 1;+ for (const el of sbeVids()) {+ if (pause !== false) { try { el.pause(); } catch (e) {} }+ el.classList.remove('is-on');+ if (el.style) el.style.opacity = '';+ }+}++// The source second of `c` that film second `t` shows, clamped the way+// sbeLoadInto clamps it, so "is the spare already there" compares like with like.+function sbeVidTarget(c, at) {+ return Math.max(0, Math.min(sbeNum(c.end) - 1e-3, sbeNum(at)));+}+// Is this element holding a decoded frame of `url` at source second `t`?+function sbeVidHolds(el, url, t) {+ return !!el && el.dataset.src === url && el.readyState >= 2 && !el.seeking+ && Math.abs(sbeNum(el.currentTime) - t) < 0.5 / sbeFps();+}++// WAIT FOR THE FRAME, NOT THE SEEK. 'seeked' says the position moved; the+// picture can still be on its way to the compositor. requestVideoFrameCallback+// fires when a frame is ready to present; a paused, freshly seeked element in+// WebKit may never fire it, so readyState >= 2 (the current frame is decoded)+// plus a short ceiling is the floor of the wait.+function sbeVidFrameReady(el) {+ return new Promise(resolve => {+ if (!el) { resolve(); return; }+ let done = false;+ const end = () => { if (!done) { done = true; resolve(); } };+ if (el.readyState >= 2) {+ if (typeof el.requestVideoFrameCallback === 'function') {+ try { el.requestVideoFrameCallback(end); } catch (e) {}+ setTimeout(end, 40);+ } else {+ end();+ }+ return;+ }+ const on = () => { el.removeEventListener('loadeddata', on); el.removeEventListener('canplay', on); end(); };+ el.addEventListener('loadeddata', on);+ el.addEventListener('canplay', on);+ setTimeout(() => { el.removeEventListener('loadeddata', on); el.removeEventListener('canplay', on); end(); }, 400);+ });+}++// THE SWAP. One synchronous step: the incoming element (already holding its+// decoded frame) turns on and starts, the outgoing one turns off and pauses,+// and the clip's look and fade go on the new live picture — so the browser+// paints one state or the other and never a third.+//+// The element that just went off is NOT handed the next clip's file at once.+// It waits a quarter of a second (SBE_VID_SETTLE_MS) before sbePreloadNext may+// load into it: re-sourcing a <video> in the frames right after it was on+// screen is the one step that still showed black in the app's web view.+const SBE_VID_SETTLE_MS = 250;+function sbeVidSwap(c, play) {+ const live = sbeVid(), spare = sbeVidSpare();+ if (!spare || spare === live) return live;+ try { spare.muted = !!SBE.muted || !sbePictureCarriesSound(c); spare.playbackRate = sbeSpeed(c); } catch (e) {}+ spare.classList.add('is-on');+ if (play) { try { const p = spare.play(); if (p && p.catch) p.catch(() => {}); } catch (e) {} }+ if (live) {+ live.classList.remove('is-on');+ if (live.style) live.style.opacity = '';+ try { live.pause(); } catch (e) {}+ }+ SBE.vidLive = spare.id;+ SBE.vidSettleAt = Date.now() + SBE_VID_SETTLE_MS;+ sbeApplyPreviewGrade(c, sbeFraming(c));+ sbeFadePaint();+ return spare;+}++// PUT FILM SECOND `at` OF VIDEO CLIP `c` ON THE STAGE without the stage ever+// going black. Resolves to the element now showing it, or null when a later+// request overtook this one (a fast scrub) — the later one owns the stage.+// `play`: the transport is running, so the incoming clip starts as it goes on.+async function sbeStageVideo(c, at, play) {+ const gen = SBE.vidGen = (SBE.vidGen || 0) + 1;+ const url = sbeClipUrl(c);+ const t = sbeVidTarget(c, at);+ const live = sbeVid(), spare = sbeVidSpare();+ if (!spare) { // a page without the second element+ await sbeLoadInto(live, c, at);+ if (live) live.classList.add('is-on');+ return live;+ }+ // 1. The spare is already there (the preloader got to it first): a cut.+ if (sbeVidHolds(spare, url, t)) return sbeVidSwap(c, play);+ // 2. The same file is already live (a split, a scrub inside one clip): a seek+ // on the element that is showing holds its last frame until the new one+ // lands, so there is nothing to hide.+ if (live && live.dataset.src === url && live.readyState >= 1) {+ await sbeLoadInto(live, c, at);+ if (gen !== SBE.vidGen) return null;+ live.classList.add('is-on');+ return live;+ }+ // 3. A file nobody has: load it OFF SCREEN, wait for its frame, then swap.+ // The live element keeps showing the outgoing picture the whole time.+ await sbeLoadInto(spare, c, at);+ if (gen !== SBE.vidGen) return null;+ await sbeVidFrameReady(spare);+ if (gen !== SBE.vidGen) return null;+ return sbeVidSwap(c, play);+}++// THE NEXT CUT, PREPARED WHILE THIS CLIP PLAYS. The spare loads the next video+// clip and seeks it to its in-point, so when the playhead reaches the cut+// sbeStageVideo finds it waiting (case 1) and the cut costs nothing. Paused and+// silent until then; a still, a slug or the end of the film needs nothing.+function sbePreloadNext(c) {+ const spare = sbeVidSpare();+ if (!spare || !c) return;+ // Just off screen: give it SBE_VID_SETTLE_MS before it takes a new file.+ const wait = sbeNum(SBE.vidSettleAt, 0) - Date.now();+ if (wait > 0) {+ clearTimeout(SBE.preloadTimer);+ SBE.preloadTimer = setTimeout(() => { if (SBE.curId === c.id) sbePreloadNext(c); }, wait + 5);+ return;+ }+ const next = SBE.clips[SBE.clips.indexOf(c) + 1];+ if (!next || sbeKind(next) !== 'video') return;+ if (sbeVidHolds(spare, sbeClipUrl(next), sbeVidTarget(next, sbeNum(next.start)))) return;+ try { spare.pause(); } catch (e) {}+ sbeLoadInto(spare, next, sbeNum(next.start));+}++// The line under the program monitor for a video clip. Shared by the scrub+// (sbeShowFrameAt) and the cut (sbeEnter): the line used to be written only on+// a scrub, so during playback it kept naming the shot playback started on.+function sbeProgInfoVideo(c) {+ sbeProgInfo((c.title || String(c.path || '').split('/').pop()) + ' · ' + sbeNum(c.start).toFixed(2) + '–' ++ sbeNum(c.end).toFixed(2) + (c.proxy ? '' : ' · source'),+ c.proxy ? '' : 'SOURCE — slow to seek. Run Prepare (A2 head ▾) for proxies.');+}+async function sbeShowFrameAt(t) {- const v = sbeEl('sbeVideo');+ const v = sbeVid();const img = sbeEl('sbeStill');if (!v) return;// THE OVERLAY LANE IS NOT THE PICTURE'S BUSINESS, so it is painted BEFORE@@ -11588,18 +12028,21 @@ async function sbeShowFrameAt(t) {const c = sbeClipAt(SBE.clips, t);SBE.curId = c ? c.id : '';if (!c) {- v.classList.remove('is-on');+ sbeVidsOff(false);if (img) img.classList.remove('is-on');sbeProgInfo(SBE.clips.length ? 'nothing plays here' : 'no clips', '');return;}const kind = sbeKind(c);- sbeApplyPreviewGrade(c, sbeFraming(c));+ // The grade goes on with the picture it belongs to: here for a still or a+ // slug, at the swap for a video (sbeStageVideo), never early onto the+ // outgoing frame.+ if (kind !== 'video') sbeApplyPreviewGrade(c, sbeFraming(c));if (kind === 'slug') {// NO FILE, SO NOTHING TO LOAD. Both layers off leaves the stage's own// black, which is the frame the render will write — the one case where the// preview is not an approximation at all.- v.classList.remove('is-on');+ sbeVidsOff(false);if (img) img.classList.remove('is-on');sbeProgInfo('black · ' + sbeLen(c).toFixed(2) + 's', '');sbePaintTrack();@@ -11609,7 +12052,7 @@ async function sbeShowFrameAt(t) {// An <img> cannot land on the wrong frame and cannot be slow to seek, so// a still never reaches the missing-proxy path the badge exists to warn// about. Swap the src only when it changed — reassigning it re-decodes.- v.classList.remove('is-on');+ sbeVidsOff(false);if (img) {const url = sbeClipUrl(c);if (img.getAttribute('src') !== url) img.src = url;@@ -11620,12 +12063,13 @@ async function sbeShowFrameAt(t) {sbePaintTrack();return;}+ // The still (if one was up) stays on until the video has a frame to show.+ const shown = await sbeStageVideo(c, sbeNum(c.start) + (t - sbeNum(c.film_start)) * sbeSpeed(c));+ if (!shown) return; // a later scrub owns the stage now+ shown.classList.add('is-on');if (img) img.classList.remove('is-on');- await sbeLoadInto(v, c, sbeNum(c.start) + (t - sbeNum(c.film_start)) * sbeSpeed(c));- v.classList.add('is-on');- sbeProgInfo((c.title || c.path.split('/').pop()) + ' · ' + sbeNum(c.start).toFixed(2) + '–' +- sbeNum(c.end).toFixed(2) + (c.proxy ? '' : ' · source'),- c.proxy ? '' : 'SOURCE — slow to seek. Run Prepare (A2 head ▾) for proxies.');+ sbeApplyPreviewGrade(c, sbeFraming(c));+ sbeProgInfoVideo(c);// A SCRUB SHOWS THE TRUE OPACITY at the second it landed on, which is the// only way a fade can be judged without playing the whole clip.sbeFadePaint(t);@@ -12789,8 +13233,17 @@ function sbeSetMute(on, note, remember) {if (remember !== false) {try { localStorage.setItem('sbeMuted', SBE.muted ? '1' : '0'); } catch (e) {}}- const v = sbeEl('sbeVideo');- if (v) { v.muted = SBE.muted; v.volume = 1; }+ // The LIVE picture follows the same rule sbeLoadInto applies: a clip whose+ // sound is off, or played by the strip, stays muted under an unmute. The+ // spare is paused; sbeStageVideo sets its mute for its own clip at the swap.+ {+ const live = sbeVid();+ const cur = sbeById(SBE.clips || [], SBE.curId);+ for (const v of sbeVids()) {+ v.muted = SBE.muted || (v === live && cur ? !sbePictureCarriesSound(cur) : v !== live);+ v.volume = 1;+ }+ }// ONE OPINION ABOUT SOUND, across both monitors. A source screen with its// own mute would be a second source of truth for the exact state this// switch exists to keep single.@@ -12832,7 +13285,7 @@ function sbeSetMute(on, note, remember) {function sbeUnmuteFromRefusal() {SBE.muteToasted = false;sbeSetMute(false);- if (SBE.playing) { const v = sbeEl('sbeVideo'); if (v) { try { v.play(); } catch (e) {} } }+ if (SBE.playing) { const v = sbeVid(); if (v) { try { v.play(); } catch (e) {} } }sbeMusicPlay();}@@ -12840,20 +13293,34 @@ function sbeUnmuteFromRefusal() {// seeks and plays; the other two only decide which layer is lit, because// there is nothing to decode, nothing to seek, and no clock to start.async function sbeEnter(c, at) {- const v = sbeEl('sbeVideo');const img = sbeEl('sbeStill');- sbeApplyPreviewGrade(c, sbeFraming(c));const kind = sbeKind(c);if (kind === 'video') {- if (img) img.classList.remove('is-on');- await sbeLoadInto(v, c, (at === undefined || at === null) ? sbeNum(c.start) : sbeNum(at));+ // THE CUT. The incoming clip goes on the stage through the spare (already+ // loaded by sbePreloadNext when the cut was reached by playing into it),+ // so the outgoing picture holds until the incoming one is there to replace+ // it — never the element's own black in between.+ // Null means another caller changed the stage while this cut waited for+ // its frame (a repaint during the hold); the transport still has to run,+ // so it plays whatever is now live rather than stalling on a paused one.+ const v = (await sbeStageVideo(c, (at === undefined || at === null) ? sbeNum(c.start) : sbeNum(at), true))+ || sbeVid();+ if (!v) return;v.classList.add('is-on');+ if (img) img.classList.remove('is-on');+ sbeApplyPreviewGrade(c, sbeFraming(c));+ sbeProgInfoVideo(c);try { v.playbackRate = sbeSpeed(c); } catch (e) {}try { await v.play(); } catch (e) {}+ sbePreloadNext(c);return;}- try { v.pause(); } catch (e) {}- v.classList.remove('is-on');+ sbeApplyPreviewGrade(c, sbeFraming(c));+ sbeVidsOff();+ sbePreloadNext(c);+ sbeProgInfo(kind === 'still'+ ? (c.title || String(c.path || '').split('/').pop()) + ' · still · ' + sbeLen(c).toFixed(2) + 's'+ : 'black · ' + sbeLen(c).toFixed(2) + 's', '');if (img) {if (kind === 'still' && c.path) {const url = sbeClipUrl(c);@@ -12874,14 +13341,16 @@ async function sbePlay() {SBE.lastTs = 0;sbePaintChrome();if (!sbeClipAt(SBE.clips, SBE.playhead)) SBE.playhead = sbeNum(c.film_start);- const v = sbeEl('sbeVideo');SBE.curId = c.id;if (sbeKind(c) === 'video') {// ENTERING MID-CLIP: film seconds into the slot are `speed` source// seconds into the take — the review caught a 2x clip re-seeking on// every frame because this seek landed at the 1x position.- await sbeLoadInto(v, c, sbeNum(c.start) + (SBE.playhead - sbeNum(c.film_start)) * sbeSpeed(c));+ const v = (await sbeStageVideo(c, sbeNum(c.start) + (SBE.playhead - sbeNum(c.film_start)) * sbeSpeed(c), true))+ || sbeVid();v.classList.add('is-on');+ const img = sbeEl('sbeStill');+ if (img) img.classList.remove('is-on');try { v.playbackRate = sbeSpeed(c); } catch (e) {}try {await v.play();@@ -12900,6 +13369,7 @@ async function sbePlay() {}}sbeApplyPreviewGrade(c, sbeFraming(c));+ sbePreloadNext(c);} else {await sbeEnter(c);}@@ -12912,8 +13382,7 @@ function sbeStop() {SBE.playing = false;SBE.lastTs = 0;if (SBE.raf) { cancelAnimationFrame(SBE.raf); SBE.raf = 0; }- const v = sbeEl('sbeVideo');- if (v) { try { v.pause(); } catch (e) {} }+ for (const v of sbeVids()) { try { v.pause(); } catch (e) {} }sbeMusicStop();sbeStripStop();if (SBE.open) sbePaintChrome();@@ -12921,7 +13390,7 @@ function sbeStop() {async function sbeFrame() {if (!SBE.playing) return;- const v = sbeEl('sbeVideo');+ const v = sbeVid();// THE WALL CLOCK, for the clips that do not carry one. A still and a slug// have no <video> whose currentTime the playhead can be read off, so without// this the transport froze the instant a film reached its first black.@@ -12960,14 +13429,35 @@ async function sbeFrame() {const wantV = sbeNum(c.start) + Math.max(0, songT - sbeNum(c.film_start)) * sbeSpeed(c);const drift = wantV - v.currentTime;const oneFrame = 1 / sbeFps();+ // A CLIP THAT HAS JUST COME ON is allowed one seek at two frames: the+ // hold at the cut leaves it exactly that far behind the score, and a+ // seek in the first instant of a shot is invisible, where a rate ramp+ // would play the whole shot late (a 2 % ramp needs 5 s to close a+ // tenth of a second, longer than most shots are).+ const fresh = SBE.chaseId !== c.id;+ if (fresh) SBE.chaseId = c.id;+ // A SEEK TAKES TIME, and the score does not wait for it: landing on+ // where the score WAS leaves the picture behind by the seek's own+ // latency. `seekLead` is that latency, learned from the residual the+ // last seek left (half-step average, 0-0.4 s), and the next seek aims+ // that far ahead.+ if (SBE.chaseLearn === c.id && !v.seeking && !v.paused) {+ SBE.chaseLearn = null;+ SBE.seekLead = Math.max(0, Math.min(0.4, sbeNum(SBE.seekLead, 0) + 0.5 * drift));+ }try {- if (Math.abs(drift) >= 0.5) {+ if (Math.abs(drift) >= 0.5 || (fresh && Math.abs(drift) > 2 * oneFrame)) {// Bigger than a rate ramp should ever have to close (a scrub, a// stall, the clip that just loaded) — a seek is honest here.- v.currentTime = wantV;+ const lead = drift > 0 ? sbeNum(SBE.seekLead, 0) : 0;+ v.currentTime = Math.min(sbeNum(c.end) - 1e-3, wantV + lead);v.playbackRate = sbeSpeed(c);+ SBE.chaseLearn = c.id;} else if (Math.abs(drift) > oneFrame) {- v.playbackRate = sbeSpeed(c) * (drift > 0 ? 1.02 : 0.98);+ // PROPORTIONAL, capped at 5 %: pitch is preserved, so the ramp is+ // a hair of tempo on the clip's own sound, never a pitch bend.+ const k = Math.max(0.02, Math.min(0.05, Math.abs(drift) * 0.5));+ v.playbackRate = sbeSpeed(c) * (drift > 0 ? 1 + k : 1 - k);} else {v.playbackRate = sbeSpeed(c);}@@ -12991,7 +13481,7 @@ async function sbeFrame() {} else {// A hole: the picture goes black and the clock keeps running, which is// exactly what the render will do if the gap is ever filled.- v.classList.remove('is-on');+ for (const el of sbeVids()) el.classList.remove('is-on');const img = sbeEl('sbeStill');if (img) img.classList.remove('is-on');const nxt = SBE.clips.find(x => sbeNum(x.film_start) > SBE.playhead);@@ -13055,11 +13545,25 @@ function sbeMusicAt(t) {// (`audio_start_time`), so the song's own position is the ground truth for// where every clip's mouth SHOULD be — and it is the one clock in this page// a browser does not stall, seek or decode-jitter the way a <video> can.-// Only while there is a song actually playing under everything: a board-// with no soundtrack, or the "Under" mode where clips keep their own sound,-// has no such ground truth and the picture stays the clock it always was.+//+// ...AND IN UNDER MODE TOO (2 Nov), for the second half of that reason. The+// rule used to be Replace only, on the grounds that a film whose clips keep+// their own sound has no musical ground truth. It does not need one: what it+// needs is a clock that keeps running across a cut, and the picture is not+// that clock. Every cut holds the transport while the next clip loads, so a+// picture-driven playhead lost the length of that hold at every cut while the+// score played straight on — then `sbeMusicSync` yanked the score back once+// the gap passed its quarter-second tolerance. Measured on SUNDAY MASS (17+// shots, clip sound under a score) in WebKit: 9 jumps of the score in one+// play-through, the score up to 0.83 s away from the picture, which is what+// "there are problems with the sound... it's not the same as the version you+// have" was. The render has no such hold: its film clock is continuous, which+// is the score's clock. So whenever a soundtrack is actually playing, it+// drives the playhead and the picture (with its own sound) chases it.+// A film with no soundtrack, or a stretch the bed does not cover, keeps the+// picture as its clock — `sbeSongPlayhead` returns null there.function sbeMusicMaster() {- return !!(SBE.audio && SBE.audio.mode === 'replace' && SBE.musicOk+ return !!(SBE.audio && SBE.audio.path && SBE.musicOk&& SBE.musicEl && !SBE.musicEl.paused);}// The inverse of `sbeMusicAt`: the film second the song's own `currentTime`@@ -13079,6 +13583,7 @@ function sbeMusicPlay() {const a = SBE.musicEl;if (!a || !SBE.musicOk) return;const at = sbeMusicAt(SBE.playhead);+ sbeMusicLevelSync();try {if (at === null) { a.pause(); return; }a.currentTime = at;@@ -13102,17 +13607,37 @@ function sbeMusicSync() {//// ON THE BED'S OWN CLOCK, which is the played window and not the track: the// playhead less the film second the music starts at.- const bw = sbeMusicWindow(SBE.audio, SBE.peaks ? SBE.peaks.duration : 0);- a.volume = sbeBedGainAt(SBE.audio || {}, SBE.clips,- sbeFilmDuration(SBE.clips),- SBE.playhead - bw.film_start);+ sbeMusicLevelSync();try {if (a.paused) a.play().catch(() => {});- if (Math.abs(a.currentTime - want) > 0.25) a.currentTime = want;+ // THE MASTER IS NOT CORRECTED BY ITS FOLLOWER. While the score drives+ // the playhead, the only gap between them is the hold at a cut (the+ // playhead parked on the next clip's first second while it loads) — and+ // pulling the score back across that gap is the audible jump this rule+ // removed. However long the hold (a slow machine, a cold proxy), the+ // score plays on and the picture catches up to it. A real move while+ // playing (a marker click) re-seeks the score in `sbeSeek`.+ if (!sbeMusicMaster() && Math.abs(a.currentTime - want) > 0.25) a.currentTime = want;} catch (e) {}}function sbeMusicStop() { const a = SBE.musicEl; if (a) { try { a.pause(); } catch (e) {} } }+// THE BED'S LEVEL, EVERY FRAME. It used to be set only in `sbeMusicSync`,+// which runs at the cuts — so the first shot played the score at the+// element's default 1.0 whatever its fader said (SUNDAY MASS, 2 Nov: the+// score at 0.6 under the clips came in at full level for the opening three+// seconds), and a fade or keyframe on the bed between two cuts was never+// heard. Same curve as the render's `volume` and the level line.+function sbeMusicLevelSync() {+ const a = SBE.musicEl;+ if (!a || !SBE.musicOk) return;+ const bw = sbeMusicWindow(SBE.audio, SBE.peaks ? SBE.peaks.duration : 0);+ const g = sbeBedGainAt(SBE.audio || {}, SBE.clips, sbeFilmDuration(SBE.clips),+ SBE.playhead - bw.film_start);+ const want = Math.max(0, Math.min(1, sbeNum(g, 1)));+ try { if (Math.abs(a.volume - want) > 1e-3) a.volume = want; } catch (e) {}+}+// ---- THE STRIP PLAYER ---------------------------------------------------// A POOL, NOT AN ELEMENT. The music bed is one track and one <audio>; clip// strips overlap by design — that is what a split edit IS — so a J-cut needs@@ -13203,6 +13728,29 @@ function sbeStripSync(force) {else if (!a.paused) a.pause();} catch (e) {}}+ sbePictureGainSync();+ sbeMusicLevelSync();+}++// THE PICTURE'S OWN SOUND GETS ITS ENVELOPE TOO. A linked clip is heard+// through the picture element, and that element was held at volume 1 — so a+// clip's level line, its keyframes and its fades were in the render (the+// clip lane's `volume` term) and in the export, and missing from the one+// place the person cutting listens. An agent's cut that set clip sound at+// 0.9 under the score played at 1.0 here and 0.9 in the file. Same curve,+// same clock as the strip voices above: film seconds into the strip.+// Runs wherever the strips are synced (every frame, every scrub).+function sbePictureGainSync() {+ // The picture element on screen. (With two stage videos this is the LIVE+ // one — the black-flash fix's `sbeVid()`.)+ const v = sbeVid();+ if (!v) return;+ const c = sbeClipAt(SBE.clips, SBE.playhead);+ if (!c || !sbePictureCarriesSound(c)) return;+ const win = sbeClipAudio(c);+ const g = sbeGainAt(c, win.len, Math.max(0, SBE.playhead - win.film_start));+ const want = Math.max(0, Math.min(1, sbeNum(g, 1)));+ try { if (Math.abs(v.volume - want) > 1e-3) v.volume = want; } catch (e) {}}function sbeStripStop() {@@ -13928,9 +14476,11 @@ function sbeDeliverGet() {return { format: SBE_DELIVER_FORMATS.indexOf(d.format) >= 0 ? d.format : 'h264',size: SBE_DELIVER_SIZES.indexOf(d.size) >= 0 ? d.size : 'native',finish: SBE_DELIVER_FINISH.indexOf(d.finish) >= 0 ? d.finish : 'none',- // FILM-28: off by default — a mix graded by ear is not something- // a render should quietly retarget without being asked.- loudnorm: !!d.loudnorm };+ // MASTER LOUDNESS IS ON BY DEFAULT (2 Nov). Off, the editor's film+ // came out 3-4 dB quieter than the agent's cut of the same film+ // and ~8 dB quieter in the dialogue: every film made by hand+ // sounded weak next to everything else. Unticking is remembered.+ loudnorm: d.loudnorm !== false };}// FILM-14: unlike Deliver's format/size/finish (a client preference posted// with each render), the Film look rides IN THE DOCUMENT — `edit.settings`,@@ -13974,12 +14524,14 @@ function sbeDeliverPaint() {const short = ({ h264: '', hevc: 'HEVC', prores: 'ProRes' })[d.format];const size = d.size === 'native' ? '' : (d.size === '2160p' ? '4K' : '1080p');const fin = d.finish === 'none' ? '' : (d.finish === 'heavy_grain' ? 'heavy grain' : 'grain');- const ln = d.loudnorm ? '-14 LUFS' : '';+ // On is the default, so the button names only the exception.+ const ln = d.loudnorm ? '' : 'no master';const tag = [short, size, fin, ln].filter(Boolean).join(' ');btn.textContent = tag ? ('Render · ' + tag) : 'Render';btn.title = 'Assemble the film as ' + ({ h264: 'H.264', hevc: 'HEVC', prores: 'ProRes 422 HQ' })[d.format]+ (d.size === 'native' ? ', as cut' : (d.size === '2160p' ? ' at 4K' : ' at 1080p'))- + (d.loudnorm ? ', normalized to -14 LUFS' : '')+ + (d.loudnorm ? ', mastered to -15 LUFS with a -2 dB peak limit'+ : ', without the loudness master')+ '. Change it under the arrow.';}}@@ -14035,7 +14587,7 @@ async function sbeRenderFilm() {fd.set('format', dl.format);fd.set('size', dl.size);fd.set('finish', dl.finish);- if (dl.loudnorm) fd.set('loudnorm', 'on');+ fd.set('loudnorm', dl.loudnorm ? 'on' : 'off');// FILM-28: A JOB, NOT A BLOCKED REQUEST. The route used to hold the whole// fetch open until ffmpeg finished — no progress, and closing the tab (or// just impatience) had no way to say "stop". `edit/render/start` answers@@ -14775,6 +15327,9 @@ function workflowSwitch(name) {const edTab = document.getElementById('edSectionTab');const osTab = document.getElementById('oneshotSectionTab');const characters = document.getElementById('charactersSection'); // dead HTML; hide defensively+ const remoteTab = document.getElementById('remoteSection');+ if (remoteTab) remoteTab.hidden = (name !== 'remote');+ if (name !== 'remote' && typeof remoteTabLeave === 'function') { try { remoteTabLeave(); } catch (e) {} }// Set body data attribute so CSS can switch the layout per workflow.document.body.setAttribute('data-workflow', name);// All non-Manual panes start hidden; the active branch re-shows its own.@@ -14827,6 +15382,10 @@ function workflowSwitch(name) {if (manual) manual.style.display = 'none';if (audioTab) audioTab.style.display = 'block';if (typeof audioStudioInit === 'function') audioStudioInit();+ } else if (name === 'remote') {+ // Remote Control: a page, not a tool. Its own file (webapp/js/remote.js).+ if (manual) manual.style.display = 'none';+ if (typeof remoteTabEnter === 'function') { try { remoteTabEnter(); } catch (e) { console.warn('remoteTabEnter failed', e); } }} else if (name === 'oneshot') {// One Shot: its own composer and its own API (webapp/js/oneshot.js,// POST /oneshot). A shot that never cuts is a different thing to make@@ -14848,10 +15407,10 @@ function workflowSwitch(name) {// so leaving suspends it (player/outputs restored) and returning to// Images with Ideogram active brings it back with its boxes intact.if (typeof ideoSyncStage === 'function') ideoSyncStage();- // The engine switcher is a Video-form control (each ENGINES row names the- // `surfaces` it belongs to). Offering a render engine while the user is in- // Images or Train Character would be a choice that changes nothing, so the- // switcher and its divider fold away with the form they belong to.+ // The Model picker re-draws for the surface just entered: each ENGINES row+ // names the `surfaces` it belongs to (video, image, music), so Video lists+ // the video models, Images the image models, Compose YuE2; a tab with no+ // model choice (Train Character, Storyboard) folds it away.if (typeof renderEngineSwitch === 'function') {try { renderEngineSwitch(); } catch (e) {}}@@ -14900,7 +15459,7 @@ Object.assign(globalThis, {sbeBedGainPoints, sbeBedGainAt, sbeMixWrite, sbeBedAfxWrite,sbeSetBedFade, sbeBedPointsWrite, sbeBedAddKeyframe, sbeBedMoveKeyframe,sbeBedDeleteKeyframe, sbeAfxWrite, sbeAddKeyframe, sbeMoveKeyframe,- sbeDeleteKeyframe, sbeDeleteStrip, sbeSetAudioFade, sbeOvKind,+ sbeDeleteKeyframe, sbeDeleteStrip, sbeSetAudioFade, sbeOvKind, sbeOvLayerOf, sbeClipShortName,sbeOvAt, sbeOvById, sbeOvFits, sbeOvMove,sbeOvTrim, sbeOvAdd, sbeOvDelete, sbeStripOwned,// Editor v2: speed on the clip, titles on the overlay lane, transitions ondiff --git a/webapp/js/engines.js b/webapp/js/engines.jsindex 51cd987..6f3b745 100644--- a/webapp/js/engines.js+++ b/webapp/js/engines.js@@ -44,6 +44,7 @@ function defaultEngine() {function engineStatus(e) {if (!e) return { capable: false, available: false };if (e.state === 'announced') return { capable: false, available: false, announced: true };+ if ((e.surfaces || []).indexOf('image') !== -1) return imageModelStatus(e);if (!e.probe) return { capable: true, available: true };return (window._ENGINE_PROBES && window._ENGINE_PROBES[e.probe]) || { capable: false, available: false };}@@ -88,6 +89,9 @@ function engineOnSurface(e) {function engineRenderable(e) {if (!engineOnSurface(e)) return false;if (e.builtin || e.state === 'announced') return true;+ // Image models stay listed when they cannot fit this Mac, dimmed with the+ // Mac size that runs them (the Images tab's memory-fit rule, 2 Sep 2026).+ if ((e.surfaces || []).indexOf('image') !== -1) return true;return !!engineStatus(e).capable;}@@ -394,6 +398,16 @@ function _h3V13Mode() {function h3FlexState() {return (H3 && H3.flex) || { available: false, supported: false, downloaded: false };}+// H3 Flex Turbo (5.0, Pro, preview): the four-step Flex (akhaliq's fused+// LoRA with LightX2V's Turbo). Same cells as Flex (cell.flex_turbo_min).+function h3FlexTurboState() {+ return (H3 && H3.flex_turbo) || { available: false, supported: false, downloaded: false, pro: true, pro_active: false };+}+function h3FlexTurboOn(cell) {+ cell = cell || h3CurrentCell();+ return !!(cell && cell.flex_turbo_min != null && (typeof h3FlexServesMode !== 'function' || h3FlexServesMode(null, 'flex_turbo'))+ && h3FlexTurboState().available && h3SpeedPref() === 'flex_turbo');+}function h3FlexOn(cell) {cell = cell || h3CurrentCell();return !!(cell && cell.flex_min != null && (typeof h3FlexServesMode !== 'function' || h3FlexServesMode(null, 'flex'))@@ -401,7 +415,7 @@ function h3FlexOn(cell) {}// ---- What H3 Flex can render, from the server (owner, 31 Oct 2026) ----------// H3 Flex renders Text and Image only, and only on 5 s-window cells+// Flex and Flex Turbo render Text and Image only, and only on 5 s-window cells// (not the dense single pass, not Fast HD). Anywhere else make_job quietly// renders H3's own sampler and only says so after submit, so while Flex is the// pick every control it cannot honour is greyed and refuses the click: the@@ -413,15 +427,16 @@ function h3FlexOn(cell) {const H3_FLEX_LOCK_TIP = 'H3 Flex makes videos from text or an image. Switch to H3 for this.';const H3_FLEX_CELL_TIP = 'H3 Flex runs on 5-second windows. Switch to H3 for this.';const H3_FLEX_SPEED_TIP = 'H3 Flex runs its own steps. Switch to H3 to pick Fast, Best or Steps.';-// H3 Flex is what this form will ask for.+// Flex or Flex Turbo is what this form will ask for.function h3FlexPickedAny() {const pref = h3SpeedPref();- return currentEngine() === 'h3' && pref === 'flex';+ return currentEngine() === 'h3' && (pref === 'flex' || pref === 'flex_turbo');}// The modes the picked Flex renders (null = the server did not say: no lock,// make_job decides).function h3FlexModes(which) {- const st = h3FlexState();+ which = which || h3SpeedPref();+ const st = which === 'flex_turbo' ? h3FlexTurboState() : h3FlexState();return Array.isArray(st.modes) ? st.modes : null;}function h3FlexServesMode(mode, which) {@@ -493,7 +508,7 @@ function h3FlexFit() {if (_h3FlexFitBusy || !h3FlexPickedAny()) return;_h3FlexFitBusy = true;try {- const name = 'H3 Flex';+ const name = h3SpeedPref() === 'flex_turbo' ? 'H3 Flex Turbo' : 'H3 Flex';let movedMode = '', movedCell = null;const mode = (document.getElementById('mode') || {}).value || 't2v';if (!h3FlexServesMode(mode)) {@@ -529,9 +544,10 @@ function h3FlexFit() {// it was Flex" trap. Returns the plain reason to refuse with, or ''.function h3FlexSubmitBlock() {if (!h3FlexPickedAny()) return '';- const st = h3FlexState();+ const turbo = h3SpeedPref() === 'flex_turbo';+ const st = turbo ? h3FlexTurboState() : h3FlexState();if (st.available) return '';- const name = 'H3 Flex';+ const name = turbo ? 'H3 Flex Turbo' : 'H3 Flex';if (st.installing) {return name + ' is still downloading. It can render as soon as it is ready, or pick H3 to render now.';}@@ -561,11 +577,11 @@ function h3V13On(cell, opts) {function h3SpeedPref() {let v = null;try { v = localStorage.getItem('phos_h3_speed'); } catch (e) {}- return (v === 'best' || v === 'flex') ? v : 'fast';+ return (v === 'best' || v === 'flex' || v === 'flex_turbo') ? v : 'fast';}function _h3SetSpeedPref(v) {try {- localStorage.setItem('phos_h3_speed', (v === 'best' || v === 'flex') ? v : 'fast');+ localStorage.setItem('phos_h3_speed', (v === 'best' || v === 'flex' || v === 'flex_turbo') ? v : 'fast');} catch (e) {}}function _h3IsI2V() {@@ -579,6 +595,56 @@ function h3TriStepOn(cell) {return !!(cell && cell.tristep_min != null&& h3TriStepState().available && h3SpeedPref() === 'fast');}+// Clean up sound (5.0): re-make a Fast render's sound with the adapter off.+// Remembered per browser; the server's default when never touched.+function h3RevoiceState() {+ return (H3 && H3.revoice) || { supported: false, default: false };+}+function h3CleanSoundPref() {+ let v = null;+ try { v = localStorage.getItem('phos_h3_clean_sound'); } catch (e) {}+ if (v === '1') return true;+ if (v === '0') return false;+ return !!h3RevoiceState().default;+}+// Would THIS cell's render clean up its sound, as things stand?+function h3CleanSoundOn(cell) {+ cell = cell || h3CurrentCell();+ const mode = (document.getElementById('mode') || {}).value || 't2v';+ // Never under H3 Flex: make_job turns clean sound off for a Flex render.+ return !!(h3RevoiceState().supported && h3TriStepOn(cell) && cell+ && cell.revoice_min != null && cell.revoice_fits !== false+ && mode !== 'a2v' && mode !== 'v2a' && h3CleanSoundPref()+ && !(typeof h3FlexPickedAny === 'function' && h3FlexPickedAny()));+}+function setH3CleanSound(on) {+ try { localStorage.setItem('phos_h3_clean_sound', on ? '1' : '0'); } catch (e) {}+ _h3SyncCleanSound();+ // Every price on screen follows: the Speed pill, the chips, the footer.+ _h3SpeedRepriced();+}+function _h3SyncCleanSound() {+ const row = document.getElementById('h3CleanSoundRow');+ const box = document.getElementById('h3CleanSound');+ const hint = document.getElementById('h3CleanSoundHint');+ const inp = document.getElementById('h3_clean_sound');+ const cell = h3CurrentCell();+ const mode = (document.getElementById('mode') || {}).value || 't2v';+ const show = !!(h3RevoiceState().supported && h3TriStepOn(cell) && cell+ && cell.revoice_min != null && mode !== 'a2v' && mode !== 'v2a'+ && !(typeof h3FlexPickedAny === 'function' && h3FlexPickedAny()));+ if (row) row.hidden = !show;+ const fits = !!(cell && cell.revoice_fits !== false);+ if (box) {+ box.checked = show && fits && h3CleanSoundPref();+ box.disabled = !fits;+ }+ if (hint) {+ hint.textContent = !show ? '' : !fits ? (cell.revoice_note || 'needs more memory at this Quality')+ : 'clearer voices, same picture · adds about ' + Math.max(1, Math.round(cell.revoice_min)) + ' min';+ }+ if (inp) inp.value = show ? (h3CleanSoundOn(cell) ? '1' : '0') : '';+}function _h3TriStepMin(cell) {if (!cell || cell.tristep_min == null) return null;return (_h3IsI2V() && cell.tristep_min_i2v != null) ? cell.tristep_min_i2v : cell.tristep_min;@@ -600,17 +666,44 @@ function _h3EtaPlain(s) {// Minutes for a cell under the CURRENT speed (or the one opts names). The// server ships every number (Best eta, Fast eta per mode, per-forward and// fixed seconds for a pinned Steps count); nothing here models anything.+// Face to keep (5.0): the reference block's own cost, on top of either speed.+function _h3ReferenceExtra(cell, fast) {+ const ref = (document.getElementById('h3_reference') || {}).value || '';+ const mode = (document.getElementById('mode') || {}).value || 't2v';+ if (!ref || !cell || (mode !== 't2v' && mode !== 'i2v')) return 0;+ if (!(H3 && H3.reference && H3.reference.supported)) return 0;+ return (fast ? cell.reference_min_fast : cell.reference_min) || 0;+}function h3CellEtaMin(cell, opts) {+ if (!cell) return 0;+ const _fastNow = (opts && opts.fast != null) ? opts.fast : h3TriStepOn(cell);+ const _ref = (typeof _h3ReferenceExtra === 'function') ? _h3ReferenceExtra(cell, _fastNow) : 0;+ return _ref + _h3CellEtaMinCore(cell, opts);+}+// The shape's own price at the current speed (Clean up sound+// and a pinned Steps count folded in); h3CellEtaMin adds the reference.+function _h3CellEtaMinCore(cell, opts) {if (!cell) return 0;// Fast HD is priced whole: the Fast H3 pass plus its Upscale & Face Fix.- if (cell.fast_hd) return (_h3TriStepMin(cell) || cell.tristep_min || 0) + (cell.facefix_min || 0);+ if (cell.fast_hd) {+ // The Fast pass (plus Clean up sound when it rides) and the Face Fix.+ const cleanHd = (opts && opts.clean != null) ? opts.clean+ : (typeof h3CleanSoundOn === 'function' && h3CleanSoundOn(cell));+ return (_h3TriStepMin(cell) || cell.tristep_min || 0) + (cell.facefix_min || 0)+ + (cleanHd ? (cell.revoice_min || 0) : 0);+ }opts = opts || {};const fast = (opts.fast != null) ? opts.fast : h3TriStepOn(cell);- if (fast && cell.tristep_min != null) return _h3TriStepMin(cell);+ if (fast && cell.tristep_min != null) {+ const clean = (opts.clean != null) ? opts.clean+ : (typeof h3CleanSoundOn === 'function' && h3CleanSoundOn(cell));+ return _h3TriStepMin(cell) + (clean ? (cell.revoice_min || 0) : 0);+ }if (opts.turbo) return cell.turbo_min;const flexOn = (opts.flex != null) ? opts.flex: (typeof h3FlexOn === 'function' && h3FlexOn(cell));if (flexOn && cell.flex_min != null) return cell.flex_min;+ if (opts.flex == null && typeof h3FlexTurboOn === 'function' && h3FlexTurboOn(cell) && cell.flex_turbo_min != null) return cell.flex_turbo_min;if (h3V13On(cell, { fast: false, steps: opts.steps, flex: false })) return cell.v13_min;const ov = (opts.steps != null) ? String(opts.steps): ((document.getElementById('h3_steps') || {}).value || 'auto');@@ -646,11 +739,19 @@ function h3CellEta(cell, opts) {if (cell.fast_hd) return h3FmtEtaMin(h3CellEtaMin(cell));opts = opts || {};const fast = (opts.fast != null) ? opts.fast : h3TriStepOn(cell);- if (fast && cell.tristep_min != null) return _h3TriStepEta(cell);+ const refExtra = (typeof _h3ReferenceExtra === 'function') ? _h3ReferenceExtra(cell, fast) : 0;+ if (fast && cell.tristep_min != null) {+ // Clean up sound adds its own pass: price the sum, not the bare Fast receipt.+ const clean = (opts.clean != null) ? opts.clean+ : (typeof h3CleanSoundOn === 'function' && h3CleanSoundOn(cell));+ return (clean || refExtra) ? h3FmtEtaMin(h3CellEtaMin(cell, { fast: true, clean })) : _h3TriStepEta(cell);+ }+ if (refExtra && !opts.turbo) return h3FmtEtaMin(h3CellEtaMin(cell, { fast: false }));if (opts.turbo) return cell.turbo_eta;const flexOn = (opts.flex != null) ? opts.flex: (typeof h3FlexOn === 'function' && h3FlexOn(cell));if (flexOn && cell.flex_eta) return cell.flex_eta;+ if (opts.flex == null && typeof h3FlexTurboOn === 'function' && h3FlexTurboOn(cell) && cell.flex_turbo_eta) return cell.flex_turbo_eta;const ov = (document.getElementById('h3_steps') || {}).value || 'auto';if (ov === 'auto' || !/^\d+$/.test(ov)) {if (h3V13On(cell, { fast: false, flex: false })) {@@ -659,7 +760,7 @@ function h3CellEta(cell, opts) {// Owner ruling (2026-09-29): Best's own real fleet range, same idea as// Fast's above — never for i2v, which the server prices separately and// this fleet cell (mode "t2v") does not cover.- if (!_h3IsI2V() && cell.fleet_range) return cell.fleet_range.eta_range;+ if (!_h3IsI2V() && cell.fleet_range) return cell.fleet_range.eta_range + proEstSuffix(cell.fleet_range);return cell.eta;}return h3FmtEtaMin(h3CellEtaMin(cell, { fast: false }));@@ -694,7 +795,8 @@ function h3SpeedSub(which) {return 'Install (180 MB)';}if (!cell || cell.tristep_min == null) return 'Best only here';- return _h3EtaPlain(_h3TriStepEta(cell)) || '3 steps';+ // h3CellEta adds Clean up sound / a reference when they ride on this render.+ return _h3EtaPlain(h3CellEta(cell, { fast: true })) || '3 steps';}// Kept for callers of the pre-switch API.function h3TurboPillSub() { return h3SpeedSub('fast'); }@@ -786,7 +888,7 @@ function renderH3Turbo() {// owner, 31 Oct 2026: show what Flex cannot do, greyed, so nobody believes a// Fast or Best choice still counts. The Flex note (credit, download,// progress) sits under them. _h3ApplySpeed greys the Steps pills the same way.- const flexPicked = h3SpeedPref() === 'flex';+ const flexPicked = h3SpeedPref() === 'flex' || h3SpeedPref() === 'flex_turbo';if (group) {group.hidden = false;group.classList.toggle('flex-locked', flexPicked);@@ -806,7 +908,8 @@ function renderH3Turbo() {const speedMeta = document.querySelector('#h3SpeedRow .qs-meta');if (speedMeta) speedMeta.hidden = flexPicked;const speedName = document.querySelector('#h3SpeedRow .qs-name');- if (speedName) speedName.textContent = flexPicked ? 'H3 Flex (preview)' : 'Speed';+ if (speedName) speedName.textContent = !flexPicked ? 'Speed'+ : (h3SpeedPref() === 'flex_turbo' ? 'H3 Flex Turbo (faster draft, Pro)' : 'H3 Flex (preview)');_h3SyncSamplerTitles();_h3ApplySpeed();_h3RenderFlexNote();@@ -829,6 +932,12 @@ function _h3RenderFlexNote() {const fx = h3FlexState();const text = document.getElementById('h3FlexNoteText');const btn = document.getElementById('h3FlexGet');+ if (h3SpeedPref() === 'flex_turbo' && !h3TriStepOn(cell)) {+ box.hidden = false;+ if (text) text.textContent = _h3FlexTurboNote(cell);+ if (btn) btn.hidden = true;+ return;+ }const show = h3SpeedPref() === 'flex' && !h3TriStepOn(cell);box.hidden = !show;if (!show || !text) return;@@ -973,14 +1082,17 @@ function _h3ApplySpeed() {const flexOn = !fastOn && typeof h3FlexOn === 'function' && h3FlexOn(cell);const fxIn = document.getElementById('h3_flex');if (fxIn) fxIn.value = flexOn ? '1' : '0';+ const ftOn = !fastOn && !flexOn && typeof h3FlexTurboOn === 'function' && h3FlexTurboOn(cell);+ const ftIn = document.getElementById('h3_flex_turbo');+ if (ftIn) ftIn.value = ftOn ? '1' : '0';// H3-13: the lit half used to be the PREFERENCE alone (pref === 'fast' &&// tri.available), so Native and the single-pass 10s — cells with no Fast// path at all (cell.tristep_min == null) — kept the Fast pill pink while// the render that actually queued ran Best, 8-25x slower. fastOn already// folds in per-cell availability (h3TriStepOn), so light whichever half// is really about to render; the note below still explains why.- const flexPicked = pref === 'flex';- const lit = fastOn ? 'fast' : (flexOn ? 'flex' : 'best');+ const flexPicked = pref === 'flex' || pref === 'flex_turbo';+ const lit = fastOn ? 'fast' : (flexOn ? 'flex' : (ftOn ? 'flex_turbo' : 'best'));document.querySelectorAll('#h3SpeedGroup [data-h3-speed]').forEach(b =>b.classList.toggle('active', b.dataset.h3Speed === lit));const note = document.getElementById('h3SpeedNote');@@ -1052,6 +1164,7 @@ function _h3ApplySpeed() {b.classList.toggle('flex-locked', flexPicked);});}+ _h3SyncCleanSound();if (typeof renderH3LoraSlot === 'function') { try { renderH3LoraSlot(); } catch (e) {} }} finally {_h3SpeedBusy = false;@@ -1066,7 +1179,7 @@ function _h3SpeedRepriced() {// Set the speed ('fast' | 'best'). Remembered per browser.function setH3Speed(v) {- _h3SetSpeedPref((v === 'best' || v === 'flex') ? v : 'fast');+ _h3SetSpeedPref((v === 'best' || v === 'flex' || v === 'flex_turbo') ? v : 'fast');_h3ApplySpeed();_h3SpeedRepriced();}@@ -1076,7 +1189,7 @@ function setH3TriStep(on) { setH3Speed(on ? 'fast' : 'best'); }// What a saved clip was made with, as this switch's value.function h3SpeedOfParams(p) {p = p || {};- return (p.h3_tristep || p.h3_turbo) ? 'fast' : (p.h3_flex ? 'flex' : 'best');+ return (p.h3_tristep || p.h3_turbo) ? 'fast' : (p.h3_flex ? 'flex' : (p.h3_flex_turbo ? 'flex_turbo' : 'best'));}// H3-04: "Fast" / "Best", for any place that shows a submitted or running// H3 job's params — the Now card, a queue row, the info modal. One@@ -1085,6 +1198,7 @@ function h3JobSpeedLabel(p) {if (!p || p.engine !== 'h3') return '';if (h3SpeedOfParams(p) === 'fast') return 'Fast';if (h3SpeedOfParams(p) === 'flex') return 'Pika H3 Flex';+ if (h3SpeedOfParams(p) === 'flex_turbo') return 'H3 Flex Turbo';return p.h3_v13 ? 'Best · lightx2v v1.3' : 'Best';}// "Hailuo H3 · Standard 10s" — the shape a submitted H3 job asked for,@@ -1269,36 +1383,59 @@ function _engineRowVisible() {// ---- The header switcher ----------------------------------------------------// Rendered entirely from the registry. Every visual decision — label, mark,// accent, badge, tooltip, order — comes off the engine's own row, so this-// Scope the mode strip to what the ACTIVE engine actually renders. Each-// engine's form should be its own surface: a model that can't do Extend-// shouldn't advertise Extend. Purely additive to setEngine — the authority-// is still engineServesMode() (and make_job server-side); this only stops the-// UI from offering a mode that would silently bounce the user to the other-// engine. Registry-driven, so a third engine scopes itself for free.+// THE MODE LIST IS DRAWN FROM THE REGISTRY, AND IT NEVER CHANGES SHAPE+// (redesign v2.1, option A). Every model brings its own abilities and the next+// one will bring different ones, so the list of things you can make is the+// same on every engine: switching model never moves a chip or makes one vanish.+// What the registry adds is WHO can make each thing:+//+// * a chip the active engine cannot render stays in place, dimmed+// (.eng-foreign), and says which model does it ("uses H3"); clicking it+// switches to that model (modeChipEngineClick) instead of the old silent+// bounce, or opens its install card when it is not installed yet;+// * where the engines on this Mac DISAGREE about a chip, the chip carries+// the marks of the ones that can do it. A chip every engine can do carries+// none, so the marks only ever say something;+// * a chip NO engine on this Mac can ever render (Add sound on a Mac that+// cannot run H3) is the one thing that does fold: it is not a task here.+//+// The authority stays engineServesMode() and make_job server-side; this only+// draws it. Registry-driven, so a third engine marks itself with no new code.// The Remix parent pill is a UI GROUP whose children are real modes, so it-// hides only when the engine serves NONE of them.+// counts as served when the engine serves ANY of them.+function _modeChipMode(chip) {+ if (chip.dataset.lipsync) return 'a2v';+ return chip.dataset.mode || '';+}+function _engineServesChip(e, mode) {+ if (mode === 'remix') {+ const kids = (typeof REMIX_MODES !== 'undefined' && REMIX_MODES) ? REMIX_MODES : ['ingredients'];+ return kids.some(m => engineServesMode(e, m));+ }+ return engineServesMode(e, mode);+}+function _engineShort(e) {+ return e.short || String(e.label || e.id).split(' ').pop();+}+function _videoEngines() {+ return ENGINES.filter(e => e.state !== 'announced' && (e.surfaces || ['video']).indexOf('video') !== -1+ && (e.builtin || engineStatus(e).capable));+}function syncModeStripToEngine() {const e = engineById(currentEngine());if (!e) return;+ const pool = _videoEngines();// H3 Flex picked: a mode H3 renders but Flex does not is greyed AND refuses// the click (modeChipEngineClick), with the plain reason as its tooltip.- // It stays in place (not folded like another engine's mode) so the user- // sees what Flex cannot do.const flexPicked = e.id === 'h3' && typeof h3FlexPickedAny === 'function' && h3FlexPickedAny();document.querySelectorAll('#modeGroup .mode-chip').forEach(chip => {- const mode = chip.dataset.lipsync ? 'a2v' : chip.dataset.mode;+ const mode = _modeChipMode(chip);if (!mode) return;- let ok;- if (mode === 'remix') {- const kids = (typeof REMIX_MODES !== 'undefined' && REMIX_MODES)- ? REMIX_MODES : ['ingredients'];- ok = kids.some(m => engineServesMode(e, m));- } else {- ok = engineServesMode(e, mode);- }+ let ok = _engineServesChip(e, mode);const flexLocked = ok && flexPicked && !(mode === 'remix'? ((typeof REMIX_MODES !== 'undefined' && REMIX_MODES) ? REMIX_MODES : []).some(m => h3FlexServesMode(m)): h3FlexServesMode(mode));+ if (flexLocked) ok = false;chip.classList.toggle('flex-locked', flexLocked);if (flexLocked) {if (chip.dataset.flexTitle == null) chip.dataset.flexTitle = chip.getAttribute('title') || '';@@ -1310,14 +1447,38 @@ function syncModeStripToEngine() {delete chip.dataset.flexTitle;chip.removeAttribute('aria-disabled');}- // The lip-sync chip has no data-mode and was never folded; keep it so.- if (!chip.dataset.lipsync) chip.classList.toggle('eng-foreign', !ok);+ const by = pool.filter(x => _engineServesChip(x, mode));+ chip.classList.toggle('eng-foreign', !ok);+ chip.classList.toggle('mode-reachable', by.length > 0);+ chip.classList.toggle('mode-unreachable', by.length === 0);+ const sub = chip.querySelector('.mc-sub');+ if (sub) {+ // Flex-locked: plain H3 (the engine already picked) is the way to it.+ if (flexLocked) sub.dataset.uses = _engineShort(e);+ else if (!ok && by.length) sub.dataset.uses = _engineShort(by[0]);+ else delete sub.dataset.uses;+ }+ let marks = chip.querySelector('.mc-eng');+ const differs = pool.length > 1 && by.length > 0 && by.length < pool.length;+ if (!differs) { if (marks) marks.remove(); return; }+ if (!marks) {+ marks = document.createElement('span');+ marks.className = 'mc-eng';+ marks.setAttribute('aria-hidden', 'true');+ chip.appendChild(marks);+ }+ marks.innerHTML = by.map(x => `<svg class="ph" style="--eng-accent:${escapeHtml(x.accent || 'currentColor')}"><use href="#${escapeHtml(x.mark)}"/></svg>`).join('');});}-// Runs in the capture phase ahead of the chip's own handler (main.js), so a-// mode greyed because H3 Flex is the pick never switches; the reason shows.++// A dimmed chip is a door to the model that makes it, not a dead end. Runs in+// the capture phase ahead of the chip's own handler (characters.js), so the+// choice of engine is settled before setMode() asks _syncEngineForMode() which+// engine the user wants: the preference is written, setMode then lands on it+// through the normal gates. A model that is not installed yet answers with its+// own install card and the mode is left alone.function modeChipEngineClick(ev) {- const chip = ev.target.closest('#modeGroup .mode-chip.flex-locked');+ const chip = ev.target.closest('#modeGroup .mode-chip.eng-foreign');if (!chip) return;// Greyed because H3 Flex is the pick: nothing switches; the reason shows.if (chip.classList.contains('flex-locked')) {@@ -1325,6 +1486,20 @@ function modeChipEngineClick(ev) {if (typeof phosToast === 'function') phosToast(H3_FLEX_LOCK_TIP, { kind: 'info' });return;}+ const mode = _modeChipMode(chip);+ const target = _videoEngines().find(x => _engineServesChip(x, mode));+ if (!target) return;+ const st = engineStatus(target);+ if (!target.builtin && !st.available) {+ ev.stopImmediatePropagation(); ev.preventDefault();+ engineSegClick(target.id);+ return;+ }+ try { localStorage.setItem(H3_ENGINE_LS_KEY, target.id); } catch (e) {}+ if (typeof phosToast === 'function') {+ const name = (chip.firstChild && chip.firstChild.textContent || '').trim();+ phosToast(`${name} is made with ${target.label}${target.generation ? ' ' + target.generation : ''} — switched model.`, { duration: 2600 });+ }}// function has no idea which engines exist. Re-run on: boot, every setEngine,@@ -1379,10 +1554,15 @@ function toggleEngineMenu() {const trig = document.querySelector('#engineSwitch .eng-trigger');if (!trig) return;const r = trig.getBoundingClientRect();- m.style.top = (r.bottom + 6) + 'px';- m.style.left = r.left + 'px';m.style.minWidth = Math.max(r.width, 240) + 'px';m.hidden = false;+ // The trigger sits beside Generate, at the foot of the column: the menu+ // opens UPWARD when there is no room under it, and never runs off an edge.+ const mh = m.offsetHeight, mw = m.offsetWidth;+ const roomUp = r.top - 6 - mh >= 8, roomDown = r.bottom + 6 + mh <= window.innerHeight - 8;+ const up = roomUp && (r.top > window.innerHeight / 2 || !roomDown);+ m.style.top = (up ? r.top - 6 - mh : Math.min(r.bottom + 6, window.innerHeight - mh - 8)) + 'px';+ m.style.left = Math.max(8, Math.min(r.left, window.innerWidth - mw - 8)) + 'px';window._engineMenuOpen = true;trig.setAttribute('aria-expanded', 'true');// Move focus INTO the menu (the active engine's row, or the first row) —@@ -1509,6 +1689,115 @@ function h3FlexPickerClick() {if (!st.available && !st.installing) h3FlexInstall();renderEngineSwitch();}++// ---- H3 Flex Turbo: its own picker entry (5.0, Pro, preview) --------------+// Not a server engine either: engine=h3, h3_flex_turbo=1 (akhaliq's four-step+// Flex Turbo LoRA, euler over five knots). A speed-up, so Pro (owner rule).+const H3FLEXTURBO_ID = 'h3flexturbo';+function h3FlexTurboPicked() {+ return currentEngine() === 'h3' && h3SpeedPref() === 'flex_turbo';+}+function h3FlexTurboPickerEntry() {+ const h3e = engineById('h3');+ if (!h3e || !engineRenderable(h3e)) return null;+ const ft = h3FlexTurboState();+ const h3st = engineStatus(h3e);+ if (h3st.available && !ft.supported && !ft.downloaded) return null;+ return Object.assign({}, h3e, {+ id: H3FLEXTURBO_ID, label: 'H3 Flex Turbo', generation: '', preview: true, pro: true, virtual: true,+ sublabel: 'H3 Flex Turbo · faster draft · Pro',+ tagline: 'Four-step H3 Flex: a faster draft, about 1.4× quicker than H3 Flex and a little softer. Pro.',+ });+}+function h3FlexTurboPickerStatus() {+ const h3st = engineStatus(engineById('h3') || {});+ const ft = h3FlexTurboState();+ const d = ft.download || {};+ return {+ capable: !!h3st.capable,+ h3_ready: !!h3st.available,+ pro_active: !!ft.pro_active,+ available: !!(h3st.available && ft.available),+ installing: !!ft.installing,+ progress: ft.installing ? Math.min(99, Math.round(100 * (d.mb || 0) / (d.total_mb || 295))) + '%' : '',+ error: d.error || '',+ download_gb: ft.download_gb || 0.31,+ };+}+function _h3FlexTurboTooltip(st) {+ const credit = ' By akhaliq (Pika H3 Flex by Pika Labs + LightX2V Turbo), running on your Mac. Powered by MiniMax H3.';+ if (!st.pro_active) return 'H3 Flex Turbo is part of Phosphene Pro: a faster draft of H3 Flex in four steps, about 1.4× faster and a little softer.' + credit;+ if (!st.h3_ready) return 'H3 Flex Turbo needs Hailuo H3 first. Click to get it.' + credit;+ if (st.installing) return 'H3 Flex Turbo: downloading (' + st.progress + ').' + credit;+ if (!st.available) return 'H3 Flex Turbo: click to download it (' + st.download_gb + ' GB).' + credit;+ return 'H3 Flex Turbo (faster draft): H3 Flex in four steps, about 1.4× faster and a little softer. Try ideas fast, then render the keeper on Flex or Best.' + credit;+}+function _h3FlexTurboNote(cell) {+ const ft = h3FlexTurboState();+ const credit = ' By akhaliq, fusing Pika H3 Flex (Pika Labs) with LightX2V’s Turbo; running natively on your Mac. Powered by MiniMax H3 ('+ + (ft.license || 'MiniMax H3 Community License') + ').';+ if (!ft.pro_active) return 'H3 Flex Turbo is part of Phosphene Pro. This render uses H3 Flex.' + credit;+ if (!ft.supported) return 'H3 Flex Turbo needs a newer H3 runner.' + credit;+ if (ft.installing) { const d = ft.download || {}; return 'Downloading H3 Flex Turbo: ' + (d.mb || 0) + ' / ' + (d.total_mb || 295) + ' MB.'; }+ if (!ft.downloaded) return 'H3 Flex Turbo: pick it in the engine picker to download it (0.3 GB).' + credit;+ if (h3FlexTurboOn(cell)) return 'H3 Flex Turbo: a faster draft (4 steps, about ' + _h3EtaPlain(cell && cell.flex_turbo_eta) + ' here), a little softer than H3 Flex. Try ideas fast, then render the keeper on Flex or Best. Fast motion can wobble.' + credit;+ return 'H3 Flex Turbo renders Text and Image on 5-second windows; this shape uses Best.';+}+function _h3FlexTurboMenuRow(e, active, surfaceMode) {+ const st = h3FlexTurboPickerStatus();+ const badge = !st.pro_active ? '' : !st.h3_ready ? (engineById('h3').install_size || '').replace(/^~/, '')+ : st.installing ? st.progress : !st.available ? st.download_gb + ' GB' : '';+ const ok = engineServesMode(e, surfaceMode);+ const cls = 'eng-opt eng-opt-flex eng-opt-pro' + (e.id === active ? ' active' : '')+ + (!st.available ? ' needs-install' : '') + (st.available && !ok ? ' inert' : '');+ return `<button type="button" class="${cls}" data-engine="${H3FLEXTURBO_ID}"+ role="option" aria-selected="${e.id === active ? 'true' : 'false'}"+ style="--eng-accent:${escapeHtml(e.accent)};--eng-dim:${escapeHtml(e.accent_dim)};--eng-soft:${escapeHtml(e.accent_soft)}"+ title="${escapeHtml(_h3FlexTurboTooltip(st))}">+ <span class="eng-mark"><svg class="ph" aria-hidden="true"><use href="#${escapeHtml(e.mark)}"/></svg></span>+ <span class="eng-opt-body">+ <span class="eng-opt-top">+ <span class="eng-seg-name">${escapeHtml(e.label)}</span><span class="eng-badge eng-preview">preview</span><span class="eng-badge eng-pro">Pro</span>${+ badge ? `<span class="eng-badge offer">${escapeHtml(badge)}</span>` : ''}+ </span>+ <span class="eng-opt-sub">${escapeHtml(e.tagline)}</span>+ </span>${+ e.id === active ? '<svg class="ph eng-tick" aria-hidden="true"><use href="#ph-check-bold"/></svg>' : ''}+ </button>`;+}+async function h3FlexTurboInstall() {+ const toast = (m, kind) => { if (typeof phosToast === 'function') phosToast(m, { kind }); };+ try {+ const r = await fetch('/h3/flex-turbo/install', { method: 'POST' });+ const j = await r.json().catch(() => ({}));+ if (r.status === 402) { if (typeof openProModal === 'function') openProModal(); return; }+ if (!r.ok) throw new Error(j.error || ('HTTP ' + r.status));+ toast(j.already_installed ? 'H3 Flex Turbo is already installed.'+ : 'Downloading H3 Flex Turbo (0.3 GB). It switches on by itself when ready.', 'ok');+ } catch (e) {+ toast('H3 Flex Turbo: ' + (e.message || 'failed'), 'danger');+ }+}+// Picking it: Pro opens the Pro panel when Pro is off; otherwise H3 with the+// Turbo sampler, downloading the 0.3 GB LoRA on the same click.+function h3FlexTurboPickerClick() {+ const st = h3FlexTurboPickerStatus();+ if (!st.capable) return;+ if (!st.pro_active) {+ if (typeof openProModal === 'function') openProModal();+ else if (typeof phosToast === 'function') phosToast('H3 Flex Turbo is part of Phosphene Pro.', { kind: 'info' });+ return;+ }+ _h3SetSpeedPref('flex_turbo');+ if (!st.h3_ready) { engineSegClick('h3'); return; }+ const h3e = engineById('h3');+ if (typeof _h3FlexEnterMode === 'function' ? !_h3FlexEnterMode(h3e) : !engineServesMode(h3e, currentMode)) return;+ setEngine('h3');+ if (typeof setH3Speed === 'function') setH3Speed('flex_turbo');+ if (typeof h3FlexFit === 'function') h3FlexFit();+ if (!st.available && !st.installing) h3FlexTurboInstall();+ renderEngineSwitch();+}// Status ticks: redraw the picker when Flex's state moves, and finish what// a click on H3 Flex asked for once H3 itself has arrived.let _h3FlexPickerSig = '';@@ -1522,13 +1811,106 @@ function _h3FlexPickerSync() {window._h3FlexAutoAsked = true;h3FlexInstall();}- const sig = [st.h3_ready, st.available, st.installing, st.progress, h3SpeedPref()].join('|');+ const ft = (typeof h3FlexTurboState === 'function') ? h3FlexTurboPickerStatus() : {};+ const sig = [st.h3_ready, st.available, st.installing, st.progress, h3SpeedPref(),+ ft.available, ft.installing, ft.progress, ft.pro_active].join('|');if (sig !== _h3FlexPickerSig) {_h3FlexPickerSig = sig;if (typeof renderEngineSwitch === 'function') { try { renderEngineSwitch(); } catch (e) {} }}}+// ---- Image models: the same picker on the Images tab -------------------------+// Owner, 5 Nov 2026: "for pictures, you select inside the picture thingy" — the+// Images tab chose its model in a long select inside the form while Video and+// Compose chose it at the top of the column. Now the image MODELS are registry+// rows (surfaces=["image"]) drawn by this same picker, and the form's+// #imgStudioEngine keeps only the picked model's versions (FLUX 3 Q8/Q6/Q4,+// Reference Edit Fast/Standard/Quality, P-H3-Image Draft/Standard/High). The+// select stays the form value every Images function reads, so nothing that+// renders, estimates or restores an image changed shape.+const IMG_MODEL_LS_KEY = 'phos_img_model_versions';++function imageModelRows() {+ return ENGINES.filter(e => (e.surfaces || []).indexOf('image') !== -1);+}++// Which image model owns an #imgStudioEngine value ('auto' -> FLUX.2 klein).+function imageModelForValue(v) {+ return imageModelRows().find(e => (e.image_engines || []).indexOf(v) !== -1) || null;+}++function _imgVersionsMemory() {+ try { return JSON.parse(localStorage.getItem(IMG_MODEL_LS_KEY) || '{}') || {}; } catch (e) { return {}; }+}++// The status of one image model, in the picker's vocabulary. Download state+// is per version and lives on the form's chip; the one thing the picker must+// say is that a model can never run on this Mac (every version needs more RAM).+function imageModelStatus(e) {+ const st = (typeof imgStudioEngineStatus === 'function') ? imgStudioEngineStatus() : {};+ const infos = (e.image_engines || []).map(v => st[v]).filter(Boolean);+ if (infos.length && infos.every(i => i.fits_mac === false)) {+ const gb = Math.min.apply(null, infos.map(i => Number(i.mac_gb_needed) || 0));+ return { capable: false, available: false, ram_floor_gb: gb };+ }+ return { capable: true, available: true };+}++// Show only the picked model's versions in the form; hide the select when the+// model has one version (its chip and estimate stay). Keeps the user's version+// per model, so FLUX 3 -> Ideogram -> FLUX 3 comes back on the same Q6.+function syncImageVersions() {+ const sel = document.getElementById('imgStudioEngine');+ if (!sel) return null;+ const model = imageModelForValue(sel.value);+ if (!model) return null;+ const own = model.image_engines || [];+ let shown = 0;+ Array.from(sel.options).forEach(o => {+ if (o.dataset.alwaysHidden === undefined) o.dataset.alwaysHidden = o.hidden ? '1' : '';+ const mine = own.indexOf(o.value) !== -1 && o.dataset.alwaysHidden !== '1';+ o.hidden = !mine;+ if (mine) shown++;+ });+ sel.hidden = shown <= 1;+ const row = sel.closest('.studio-engine-row');+ if (row) row.classList.toggle('single-version', shown <= 1);+ const only = document.getElementById('imgStudioVersionOnly');+ if (only) {+ only.hidden = shown > 1;+ const o = sel.options[sel.selectedIndex];+ only.textContent = (shown <= 1 && o) ? o.textContent : '';+ }+ const mem = _imgVersionsMemory();+ if (mem[model.id] !== sel.value) {+ mem[model.id] = sel.value;+ try { localStorage.setItem(IMG_MODEL_LS_KEY, JSON.stringify(mem)); } catch (e) {}+ }+ return model;+}++// Picking an image model: its last-used version (or its first), then the same+// change chain the select itself runs, so every Images gate re-evaluates.+function pickImageModel(id) {+ const e = engineById(id);+ const sel = document.getElementById('imgStudioEngine');+ if (!e || !sel) return;+ if (!imageModelStatus(e).capable) return;+ const own = (e.image_engines || []).filter(v => {+ const o = Array.from(sel.options).find(x => x.value === v);+ return o && !o.disabled && o.dataset.alwaysHidden !== '1';+ });+ if (!own.length) return;+ const remembered = _imgVersionsMemory()[id];+ const want = own.indexOf(remembered) !== -1 ? remembered : own[0];+ if (sel.value !== want) {+ sel.value = want;+ sel.dispatchEvent(new Event('change', { bubbles: true }));+ }+ renderEngineSwitch();+}+function renderEngineSwitch() {renderLtxGenSwitch(); // the Remix-row switch; independent of the header row belowconst box = document.getElementById('engineSwitch');@@ -1539,17 +1921,31 @@ function renderEngineSwitch() {if (div) div.hidden = !show;if (!show) { box.innerHTML = ''; closeEngineMenu(); return; }- const surfaceMode = _currentSurface() === 'music' ? 'music' : currentMode;+ const surfaceMode = _currentSurface() === 'music' ? 'music'+ : _currentSurface() === 'oneshot' ? 'oneshot' : currentMode;+ const osSurface = _currentSurface() === 'oneshot';const list = ENGINES.filter(engineRenderable);// H3 Flex sits right after H3 (preview; see h3FlexPickerEntry).// typeof: harnesses that lift renderEngineSwitch alone (test_music_engine) run without it.- const flexEntry = (typeof h3FlexPickerEntry === 'function') ? h3FlexPickerEntry() : null;+ // Flex rows are Video-form variants; One Shot renders plain LTX or H3 parts.+ const videoSurface = _currentSurface() === 'video';+ const flexEntry = (videoSurface && typeof h3FlexPickerEntry === 'function') ? h3FlexPickerEntry() : null;if (flexEntry) {const at = list.findIndex(e => e.id === 'h3');list.splice(at + 1, 0, flexEntry);}+ const turboEntry = (videoSurface && typeof h3FlexTurboPickerEntry === 'function') ? h3FlexTurboPickerEntry() : null;+ if (turboEntry) {+ const at = list.findIndex(e => e.id === (flexEntry ? H3FLEX_ID : 'h3'));+ list.splice(at + 1, 0, turboEntry);+ }+ const imgSurface = _currentSurface() === 'image';+ const imgModel = imgSurface ? syncImageVersions() : null;const active = _currentSurface() === 'music' ? 'music'- : (flexEntry && h3FlexPicked() ? 'h3flex' : currentEngine());+ : imgSurface ? (imgModel ? imgModel.id : ((list[0] || {}).id))+ : osSurface ? ((typeof osCurrentEngine === 'function' && osCurrentEngine()) || 'ltx')+ : (turboEntry && h3FlexTurboPicked() ? H3FLEXTURBO_ID+ : (flexEntry && h3FlexPicked() ? 'h3flex' : currentEngine()));// ---- The trigger: the active engine, and nothing else ----const act = list.find(e => e.id === active) || list[0];@@ -1557,12 +1953,14 @@ function renderEngineSwitch() {box.innerHTML = `<button type="button" class="eng-trigger" aria-haspopup="listbox"aria-expanded="false"style="--eng-accent:${escapeHtml(act.accent)};--eng-dim:${escapeHtml(act.accent_dim)};--eng-soft:${escapeHtml(act.accent_soft)}"- title="${escapeHtml(act.virtual ? _h3FlexTooltip(h3FlexPickerStatus(), engineById('h3'))- : _engineTooltip(act, engineStatus(act), engineServesMode(act, surfaceMode)))}">+ title="${escapeHtml(act.virtual ? (act.id === H3FLEXTURBO_ID ? _h3FlexTurboTooltip(h3FlexTurboPickerStatus())+ : _h3FlexTooltip(h3FlexPickerStatus(), engineById('h3')))+ : _engineTooltip(act, engineStatus(act), imgSurface || engineServesMode(act, surfaceMode)))}"><span class="eng-mark"><svg class="ph" aria-hidden="true"><use href="#${escapeHtml(act.mark)}"/></svg></span><span class="eng-seg-name">${escapeHtml(act.label)}</span>${act.generation ? `<span class="eng-seg-gen">${escapeHtml(act.generation)}</span>` : ''}${- act.preview ? '<span class="eng-badge eng-preview">preview</span>' : ''}+ act.preview ? '<span class="eng-badge eng-preview">preview</span>' : ''}${+ act.pro ? '<span class="eng-badge eng-pro">Pro</span>' : ''}<svg class="ph eng-caret" aria-hidden="true"><use href="#ph-caret-down-bold"/></svg></button>`;const t = box.querySelector('.eng-trigger');@@ -1572,6 +1970,7 @@ function renderEngineSwitch() {// ---- The menu: every engine, each stating its own state ----const menu = _engineMenuEl();menu.innerHTML = list.map(e => {+ if (e.virtual && e.id === H3FLEXTURBO_ID) return _h3FlexTurboMenuRow(e, active, surfaceMode);if (e.virtual) {const fst = h3FlexPickerStatus();const fBadge = _h3FlexBadge(fst, engineById('h3'));@@ -1596,7 +1995,9 @@ function renderEngineSwitch() {}const st = engineStatus(e);const offer = !e.builtin && !st.announced && st.capable && !st.available;- const modeOk = engineServesMode(e, surfaceMode);+ // Every image model makes pictures; the form under the picker says what+ // each needs (a reference for Reference Edit).+ const modeOk = imgSurface || engineServesMode(e, surfaceMode);// Four badges, four different sentences. An OFFER (download / repair) is// worth the engine's own colour; a constraint is not.let badge = '', badgeClass = '';@@ -1612,9 +2013,11 @@ function renderEngineSwitch() {: (e.install_size || '').replace(/^~/, '');badgeClass = ' offer';} else if (st.available && !modeOk) { badge = (e.serves_label || '').toLowerCase().replace(' and ', ' · '); }+ else if (imgSurface && !st.capable) { badge = 'needs ' + (st.ram_floor_gb || '?') + ' GB'; }+ else if (e.preview) { badge = 'preview'; }// Inert = real but unreachable RIGHT NOW. Distinct from needs-install,// which IS reachable — that click is the install.- const inert = st.announced || (st.available && !modeOk);+ const inert = st.announced || (st.available && !modeOk) || (imgSurface && !st.capable);const cls = 'eng-opt'+ (e.id === active ? ' active' : '')+ (offer ? ' needs-install' : '')@@ -1643,12 +2046,23 @@ function renderEngineSwitch() {b.onclick = () => {closeEngineMenu();if (b.dataset.engine === 'h3flex') { h3FlexPickerClick(); return; }+ if (b.dataset.engine === H3FLEXTURBO_ID) { h3FlexTurboPickerClick(); return; }// Plain H3 from the picker means H3's own Speed, not Flex.- if (b.dataset.engine === 'h3' && h3SpeedPref() === 'flex'+ if (b.dataset.engine === 'h3' && (h3SpeedPref() === 'flex' || h3SpeedPref() === 'flex_turbo')&& typeof setH3Speed === 'function') {try { localStorage.removeItem('phos_h3flex_wanted'); } catch (e) {}setH3Speed('fast');}+ if (imgSurface) { pickImageModel(b.dataset.engine); return; }+ if (osSurface) {+ // One Shot keeps its own engine state (OS.engine); an engine that is+ // not installed opens its install card exactly as on Video.+ const oe = engineById(b.dataset.engine), ost = engineStatus(oe);+ if (oe && !oe.builtin && ost.capable && !ost.available) { engineSegClick(oe.id); return; }+ if (typeof osSetEngine === 'function') osSetEngine(b.dataset.engine);+ renderEngineSwitch();+ return;+ }engineSegClick(b.dataset.engine);renderEngineSwitch();};@@ -2095,6 +2509,14 @@ function ltxCurrentCell() {// and where it is NOT measured the string is still the server's model, so the// browser never carries a second cost model. The only case it recomputes is a// custom duration, which by definition has no cell.+// Pro active (data-pro set by proStatusRefresh): add the honest estimate the server computed from the+// fleet p75 x the worst measured Pro/Free ratio. Free: nothing.+function proEstSuffix(fr) {+ try {+ if (!document.documentElement.dataset.pro || !fr || !fr.pro_est) return '';+ return ' · Pro ' + fr.pro_est.label;+ } catch (e) { return ''; }+}function ltxCellEta(cell) {if (!cell) return '';if (cell.eta === 'custom') return 'custom';@@ -2119,7 +2541,7 @@ function ltxCellEta(cell) {// +/-10% on a measured cell, skewed upward on a modelled one) still reads// more honestly than a single point; the bare point estimate is last.const fr = cell.fleet_range;- return (fr ? fr.eta_range : (cell.eta_range || cell.eta || '')) + tail;+ return (fr ? fr.eta_range : (cell.eta_range || cell.eta || '')) + tail + proEstSuffix(fr);}// The provenance line for a cell's tooltip — "based on 523 renders on Macs// like yours" / "estimated -- few renders on this Mac class yet". Kept@@ -2687,12 +3109,15 @@ function syncH3MediaModeUi() {// Inline handlers in the markup and the other files resolve these through// the global scope; everything NOT listed here is private to this module.Object.assign(globalThis, {+ imageModelRows, imageModelForValue, syncImageVersions, pickImageModel,engineById, defaultEngine, engineStatus, engineServesMode,h3ResolveTierKey, h3TierByKey, h3CellFor, h3CurrentCell,setH3Upscale, setH3FaceFixAfter, setH3Orientation, setH3Steps, h3TurboPillSub,h3V13State, h3V13On,renderH3Turbo, setH3Turbo, syncModeStripToEngine, modeChipEngineClick, renderEngineSwitch, h3FlexSubmitBlock,- setH3Speed, h3SpeedOfParams, h3FlexOn, h3FlexState, h3EstimateLine, setH3TriStep, h3TriStepOn, h3TriStepState,+ setH3Speed, h3SpeedOfParams, h3FlexOn, h3FlexState, h3FlexTurboOn, h3FlexTurboState,+ h3FlexTurboPickerEntry, h3FlexTurboPickerStatus, h3FlexTurboPickerClick, h3EstimateLine, setH3TriStep, h3TriStepOn, h3TriStepState,+ setH3CleanSound, h3CleanSoundOn, h3CleanSoundPref,h3JobSpeedLabel, h3JobShapeLabel, ltxCellEtaBasis, h3CellEtaBasis,// Published for the Shot setup summary (characters.js): a closed section has// to price the shape it is hiding, and it must do it with the SAME numbers@@ -2714,4 +3139,6 @@ Object.assign(globalThis, {// and the chip fell through to the "needs LTX-2.3" toast while its own// tooltip said "click to switch".switchLtxGeneration,+ // What the form has picked, for capabilities.js (the generic greying).+ h3SpeedPref, h3CurrentQuality, h3CurrentLength, _modeChipMode,});diff --git a/webapp/js/health.js b/webapp/js/health.jsindex 9a8d257..c76a734 100644--- a/webapp/js/health.js+++ b/webapp/js/health.js@@ -47,6 +47,7 @@ async function refreshVersionPill() {// landing under a long-lived panel) is untouched and still shows.if (_versionRestartPending && _versionState&& !_versionState.stale_process+ && !(_versionState.post_update && _versionState.post_update.outcome === 'pending')&& !(((_versionState.behind_by) | 0) > 0)) {_versionRestartPending = false;}@@ -103,6 +104,14 @@ function renderVersionPill() {return;}+ const repair = s.post_update || {};+ if (repair.outcome === 'pending' && repair.state !== 'done') {+ pill.classList.add('pill-busy');+ pill.textContent = repair.state === 'failed' ? 'Retry update' : 'Preparing update';+ pill.title = repair.error || 'Waiting for dependency repair to finish.';+ return;+ }+// Pill text leads with the MEANING of the state, not the version code.// Earlier build showed bare "Y1.005" which read as a label rather than// a status — users didn't realize they could click it. Now every state@@ -188,7 +197,9 @@ function renderVersionPill() {// Current with origin/main.if (s.checked_ts && (s.behind_by | 0) === 0) {pill.classList.add('pill-current');- pill.innerHTML = `<svg class="ph" aria-hidden="true" style="margin-right:4px;vertical-align:-2px"><use href="#ph-check-bold"/></svg>Up to date · ${local}`;+ // The words sit in their own span so a narrow title bar can drop them and+ // keep the tick and the number (the tick already says "up to date").+ pill.innerHTML = `<svg class="ph" aria-hidden="true" style="margin-right:4px;vertical-align:-2px"><use href="#ph-check-bold"/></svg><span class="vp-state">Up to date · </span>${local}`;pill.title = `You're on ${local}, the latest version. Click to re-check now.`;return;}@@ -242,6 +253,7 @@ function _phModalShow(opts) {wrap.onclick = (ev) => {if (ev.target === wrap) { _phModalClose(); if (opts.onCancel) opts.onCancel(); }};+ wrap._cancelModal = () => { _phModalClose(); if (opts.onCancel) opts.onCancel(); };wrap.hidden = false;window._phModalOpen = true;return true;@@ -353,6 +365,12 @@ window._ubStarSettings = null;function _ubRender(s) {const el = document.getElementById('updateBanner');if (!el) return;+ const repair = (s && s.post_update) || {};+ if (!isMacApp() && !(s && s.app_updates) && repair.outcome === 'pending') {+ el.hidden = false;+ _ubRestartState(s.disk_version || s.pull_pulled_to_version || 'the candidate', false);+ return;+ }// Never under the Mac app: its own updater (Sparkle) owns updates.const behind = !isMacApp() && !(s && s.app_updates)&& (s && !s.error && s.checked_ts && (s.behind_by | 0) > 0);@@ -386,7 +404,7 @@ function _ubRestartState(newVersion, requiresFullUpdate) {const sub = document.getElementById('ubSub');const go = document.getElementById('ubUpdate');const later = document.getElementById('ubLater');- if (title) title.textContent = `Updated to ${newVersion} — restart to finish`;+ if (title) title.textContent = `Version ${newVersion} is ready to start`;// SYS-29: this used to hide `go` and tell the user to go click Stop// then Start in Pinokio themselves -- a second, manual mechanism// sitting right next to panelRestart() (the one-click, 409-guarded@@ -405,7 +423,7 @@ function _ubRestartState(newVersion, requiresFullUpdate) {if (pu.pending || pu.active || pu.state === 'failed') {if (title) title.textContent = pu.state === 'failed'? 'The update did not finish'- : `Updated to ${newVersion} \u2014 finishing the update\u2026`;+ : `Preparing version ${newVersion}...`;if (sub) sub.textContent = pu.state === 'failed'? (pu.error || 'post_update.sh failed') + ' \u2014 use Pinokio\u2019s Update (Stop, then Update), or try again.': 'Installing what the new version needs (the same step Pinokio\u2019s Update runs). '@@ -519,10 +537,22 @@ document.addEventListener('DOMContentLoaded', () => {_ubWire();// Same anonymous count as the banner's link, so the two places agree.const sl = document.getElementById('starLink');- if (sl) sl.addEventListener('click', () => {- _ubSaveSetting({star_prompt_done: true}); // retire the banner ask too+ // The header star opens a short thank-you first; the GitHub link lives inside it.+ if (sl) sl.addEventListener('click', (e) => {+ e.preventDefault();+ const ask = document.getElementById('starAsk');+ if (!ask) { window.open(sl.href, '_blank', 'noopener'); return; }+ ask.classList.add('show');+ document.getElementById('starAskGo')?.focus();+ });+ const go = document.getElementById('starAskGo');+ if (go) go.addEventListener('click', () => {+ _ubSaveSetting({star_prompt_done: true}); // retire the banner ask and the twinkle+ sl?.classList.remove('is-calling');try { fetch('/star-click', {method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({via: 'link'})}); } catch (e) {}+ setTimeout(starAskClose, 300);});+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && document.getElementById('starAsk')?.classList.contains('show')) starAskClose(); });// The banner needs two settings before it can decide anything, and the// Settings modal may never be opened — so read them here rather than// relying on _settingsCache, which is only populated when that opens.@@ -535,6 +565,8 @@ document.addEventListener('DOMContentLoaded', () => {star_prompt_done: !!st.star_prompt_done,broadcast_seen_ids: st.broadcast_seen_ids || [],};+ // Until they have starred, the header star twinkles now and then (CSS, reduced-motion aware).+ if (!st.star_prompt_done) document.getElementById('starLink')?.classList.add('is-calling');if (_versionState) { try { _ubRender(_versionState); } catch (e) {} }}).catch(() => {});@@ -654,6 +686,7 @@ window.addEventListener('resize', closeHealthPop);async function panelRestart() {const pill = document.getElementById('versionPill');const say = (t) => { if (pill) pill.textContent = t; };+ const expectedCandidate = ((_versionState || {}).post_update || {}).candidate;try {const r = await fetch('/restart', {method: 'POST'});const d = await r.json().catch(() => ({}));@@ -674,7 +707,13 @@ async function panelRestart() {await new Promise(r => setTimeout(r, 700));try {const r = await fetch('/version', {cache: 'no-store'});- if (r.ok) { location.reload(); return true; }+ if (r.ok) {+ const state = await r.json();+ const result = state.post_update || {};+ if (!expectedCandidate || (result.candidate === expectedCandidate && result.outcome === 'ok')) {+ location.reload(); return true;+ }+ }} catch (e) { /* still down */ }}phosToast(distText('Panel did not come back within 60s — start it from Pinokio.',@@ -697,6 +736,14 @@ async function _appVersionPillClick() {async function versionPillClick() {if (isMacApp() || (_versionState || {}).app_updates) return _appVersionPillClick();+ const recovery = (_versionState || {}).post_update || {};+ if (recovery.outcome === 'pending' && recovery.state === 'failed') {+ const r = await fetch('/version/finish', {method: 'POST'});+ const d = await r.json();+ if (!r.ok || !d.ok) phosToast(d.error || 'Update could not resume.', 'warn');+ await refreshVersionPill();+ return;+ }if (_versionRestartPending) {const s = _versionState || {};const _pu = s.post_update || {};@@ -829,14 +876,14 @@ async function versionDoPull(opts) {pill.classList.remove('pill-busy');renderVersionPill();alert(`Pull failed:\n\n${(data && data.error) || 'unknown error'}\n\n` +- `Tip: try the full Pinokio Update button instead — it also handles ` +- `cases where you have local changes that block a fast-forward.`);+ `Keep your local edits. Save or commit them before retrying Update.`);return;}// 4.17.5: a pull that moved nothing is not an update - no restart, no// "Updated to" banner (the restart came back on the same build and was// counted as a failed update). A stale process still gets its own pill.- if (data.moved === false) {+ if (data.moved === false && !(data.state && data.state.post_update+ && data.state.post_update.outcome === 'pending') && !(data.state && data.state.stale_process)) {pill.classList.remove('pill-busy');renderVersionPill();const go = document.getElementById('ubUpdate');@@ -915,8 +962,10 @@ setInterval(refreshVersionPill, 5 * 60 * 1000);// did not know the `show` class at all: Storyboard's re-plan dialog and the// Editor's Generate-shot dialog open with classList.add('show'), so Escape,// the Tab trap and the scroll lock all ignored them.- const MODAL_SEL = '.models-modal, .model-browser-modal, .expand-lightbox, .modal-bg';+ const MODAL_SEL = '.models-modal, .model-browser-modal, .expand-lightbox, .modal-bg, #phModalWrap';const isVisible = el => {+ if (el.id === 'phModalWrap') return !el.hidden;+ if (el.hidden) return false;const d = el.style.display;// Some modals open by adding an .open class (.model-browser-modal), the// .modal-bg family by adding .show; others toggle the inline style.@@ -925,13 +974,60 @@ setInterval(refreshVersionPill, 5 * 60 * 1000);};const visibleModals = () =>Array.from(document.querySelectorAll(MODAL_SEL)).filter(isVisible);- const topVisible = () => {- const v = visibleModals();- return v.length ? v[v.length - 1] : null;+ const stack = [];+ let opener = null;+ let inertNodes = [];+ document.addEventListener('click', e => {+ opener = e.target.closest('button, a, input, [tabindex]') || document.activeElement;+ }, true);+ const topVisible = () => stack.length ? stack[stack.length - 1].el : null;+ window.phosTopModal = topVisible;+ const FOCUSABLE = 'summary, button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';+ const focusables = el => Array.from(el.querySelectorAll(FOCUSABLE))+ .filter(n => !n.closest('[inert]') && n.getClientRects().length);+ const focusFirst = el => {+ const target = focusables(el)[0] || el;+ if (target === el) el.tabIndex = -1;+ target.focus();};- const FOCUSABLE = 'button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';const refreshScrollLock = () => {- document.body.classList.toggle('modal-open', visibleModals().length > 0);+ const visible = visibleModals();+ let returnTo = null;+ for (let i = stack.length - 1; i >= 0; i--) {+ if (!visible.includes(stack[i].el)) {+ const closed = stack.splice(i, 1)[0];+ closed.el.style.zIndex = closed.zIndex;+ returnTo = closed.opener;+ }+ }+ for (const el of visible) {+ if (!stack.some(item => item.el === el)) {+ stack.push({el, opener: opener || document.activeElement, zIndex: el.style.zIndex});+ el.style.zIndex = String(10000 + stack.length);+ }+ }+ // Inert siblings along the whole ancestor path, including lower dialogs.+ for (const [node, value] of inertNodes) node.inert = value;+ inertNodes = [];+ const top = topVisible();+ if (top) {+ for (let node = top; node && node !== document.body; node = node.parentElement) {+ for (const sibling of node.parentElement.children) {+ if (sibling !== node) { inertNodes.push([sibling, sibling.inert]); sibling.inert = true; }+ }+ }+ }+ opener = null;+ document.body.classList.toggle('modal-open', !!top);+ // Polling may have replaced the opener while its child dialog was up.+ if (returnTo && !returnTo.isConnected && top) {+ const action = returnTo.getAttribute('onclick');+ returnTo = focusables(top).find(el =>+ (returnTo.id && el.id === returnTo.id) ||+ (action && el.getAttribute('onclick') === action)) || null;+ }+ if (returnTo && returnTo.isConnected && (!top || top.contains(returnTo))) returnTo.focus();+ if (top && !top.contains(document.activeElement)) focusFirst(top);};// Wire a single MutationObserver per modal element. Cheaper than a// global subtree observer and avoids the cost of body-wide attribute@@ -943,7 +1039,7 @@ setInterval(refreshVersionPill, 5 * 60 * 1000);watched.add(el);new MutationObserver(refreshScrollLock).observe(el, {attributes: true,- attributeFilter: ['style', 'class'],+ attributeFilter: ['style', 'class', 'hidden'],});};document.querySelectorAll(MODAL_SEL).forEach(watch);@@ -967,7 +1063,8 @@ setInterval(refreshVersionPill, 5 * 60 * 1000);const top = topVisible();if (!top) return;e.preventDefault();- e.stopPropagation();+ e.stopImmediatePropagation();+ if (top._cancelModal) { top._cancelModal(); return; }// Case-insensitive: sbCloseReplan() / sbeGenClose() are the class-based// dialogs' own close functions and never matched a lower-case "close".const closeBtn =@@ -982,18 +1079,17 @@ setInterval(refreshVersionPill, 5 * 60 * 1000);// outrank `.modal-bg.show` and the dialog could never open again.top.classList.remove('show', 'open');} else { top.style.display = 'none'; }- });+ }, true);// Focus trap — when a modal is visible, Tab cycles inside it.document.addEventListener('keydown', e => {if (e.key !== 'Tab') return;const top = topVisible();if (!top) return;- const focusables = Array.from(top.querySelectorAll(FOCUSABLE))- .filter(el => el.offsetWidth > 0 || el.offsetHeight > 0);- if (!focusables.length) return;- const first = focusables[0];- const last = focusables[focusables.length - 1];+ const controls = focusables(top);+ if (!controls.length) { e.preventDefault(); focusFirst(top); return; }+ const first = controls[0];+ const last = controls[controls.length - 1];const active = document.activeElement;if (e.shiftKey && (active === first || !top.contains(active))) {e.preventDefault();@@ -1014,7 +1110,7 @@ Object.assign(globalThis, {// SYS-19: closeHealthPop wasn't published -- openTierModal (settings.js)// and openModelsModal (preview.js) need it so clicking a health-popover// row closes the popover before its modal opens on top of it.- closeHealthPop,+ closeHealthPop, starAskClose,// The update/broadcast pop-up is the panel's only real dialog component// (kicker/title/body/two buttons, one at a time via _phModalOpen) — VC-35's// fix is "one in-app confirm/undo component", not a second modal shape, so@@ -1022,6 +1118,8 @@ Object.assign(globalThis, {_phModalShow, _phModalClose,});+function starAskClose() { document.getElementById('starAsk')?.classList.remove('show'); }+// ---- The one-time "star us on GitHub" card (owner, 2 Nov 2026; v2 4 Nov) --// After the fifth finished render the server sets `star_prompt_due` on// /status (see _star_prompt_after_job). v2, learned from how T3 Code asksdiff --git a/webapp/js/main.js b/webapp/js/main.jsindex 6cb9a45..658fcb1 100644--- a/webapp/js/main.js+++ b/webapp/js/main.js@@ -29,13 +29,18 @@ function _wireModeGroupTabSemantics() {}// ====== Init ======+studioMotionInit();// Licence screens (4.19.8): wrap fetch() first, so a 451 licence_required// from any later call opens the model's licence instead of a bare error.installLicenceGate();+// Grey out what the picked model cannot do (model_capabilities.py rows).+capInstall();+proStatusRefresh();musicInit();+speechInit();_wireModeGroupTabSemantics();-// A mode greyed because H3 Flex is the pick refuses the click (capture phase,-// ahead of the chip's own handler) and says why.+// Option A (redesign v2.1): a dimmed mode chip switches to the model that+// makes it. Capture phase, so it runs before the chip's own onclick.document.getElementById('modeGroup')?.addEventListener('click', modeChipEngineClick, true);// VC-34: the Tier quick-link next to the Quality label. Tier is fixed at// boot (RAM doesn't change at runtime), so this is a one-time read of the@@ -197,3 +202,15 @@ initStagePlayerFit();// install_step `first_use`: one report the first time anyone clicks or types// on the page (health.js).try { armFirstUseReport(); } catch (e) {}+// `/?open_film=<id>` opens that film in the Editor — the link an imported+// cut answers with (`POST /storyboard/edit/import`), and what the Panel's+// "Open in editor" sends. An identifier only, never a path; the editor's one+// door (edOpenBoard) does the rest after the page has loaded.+(() => {+ let id = '';+ try { id = new URLSearchParams(window.location.search).get('open_film') || ''; } catch (e) {}+ if (!/^sb_[A-Za-z0-9_-]{1,100}$/.test(id)) return;+ const go = () => { try { if (typeof edOpenBoard === 'function') edOpenBoard(id); } catch (e) {} };+ if (document.readyState === 'complete') setTimeout(go, 0);+ else window.addEventListener('load', go, { once: true });+})();diff --git a/webapp/js/oneshot.js b/webapp/js/oneshot.jsindex cf13f8a..a2e3c8c 100644--- a/webapp/js/oneshot.js+++ b/webapp/js/oneshot.js@@ -136,13 +136,6 @@ function osDocument() {// ---- rendering --------------------------------------------------------------function osRenderEngine() {- const h3ok = osH3Available();- document.querySelectorAll('#osEngineGroup .pill-btn').forEach(b => {- const e = b.dataset.osEngine;- b.classList.toggle('active', e === OS.engine);- b.classList.toggle('disabled', e === 'h3' && !h3ok);- if (e === 'h3') b.title = h3ok ? '' : 'Hailuo H3 is not installed on this Mac';- });const meta = osEl('osEngineMeta');if (meta) {meta.textContent = OS.engine === 'h3'@@ -153,7 +146,15 @@ function osRenderEngine() {if (cb) cb.hidden = OS.engine === 'h3';const ho = document.querySelector('[data-os-toggle="handoff"]');if (ho && ho.parentElement) ho.parentElement.hidden = OS.engine === 'h3';+ // The top Model picker shows OS.engine (a Load Params or a fallback to LTX+ // moves it without a click on the picker).+ if (document.body && document.body.dataset && document.body.dataset.workflow === 'oneshot'+ && typeof renderEngineSwitch === 'function') {+ try { renderEngineSwitch(); } catch (e) {}+ }}+// What the top Model picker reads on the One Shot tab.+function osCurrentEngine() { return OS.engine; }function osRenderLengths() {const g = osEl('osLengthGroup');if (!g) return;@@ -639,7 +640,6 @@ function osWire() {// a manual osSetSeconds() later in the same session is never overridden,// and neither is a take Load Params restored before the first wire._osApplyStoredPrefs();- document.querySelectorAll('#osEngineGroup [data-os-engine]').forEach(b => b.onclick = () => osSetEngine(b.dataset.osEngine));document.querySelectorAll('[data-os-toggle]').forEach(group => {group.querySelectorAll('[data-os-value]').forEach(b => b.onclick = () => osToggle(group.dataset.osToggle, b.dataset.osValue));});@@ -659,7 +659,7 @@ function osWire() {// ---- published to the page --------------------------------------------------Object.assign(globalThis, {oneshotTabEnter, oneshotTabLeave, oneshotOpenFromParams, osWire,- osSetEngine, osSetSeconds, osSetQuality, osSetCharacter, osToggle,+ osSetEngine, osCurrentEngine, osSetSeconds, osSetQuality, osSetCharacter, osToggle,osBeatsInput, osSplitPrompt, osPlanBeats, osGenerate, osDocument, osBeatsList, osSetBeats, osRenderBeats,osLengthLabel, osPartSeconds, osPartsText, osPartsShort, osClock, osVerdict, osPaintStatus,});diff --git a/webapp/js/preview.js b/webapp/js/preview.jsindex e367467..d9efc4c 100644--- a/webapp/js/preview.js+++ b/webapp/js/preview.js@@ -199,6 +199,7 @@ function _renderLiveStageFrame(s, preview) {setStageAspect(surface, _lw, _lh);wrap.classList.remove('empty');wrap.classList.add('live-stage');+ const newLiveJob = wrap.dataset.liveJobId !== String(cur.id);wrap.dataset.liveJobId = String(cur.id);const stopping = window._stopEarlyRequested === cur.id;@@ -211,23 +212,43 @@ function _renderLiveStageFrame(s, preview) {// engine had published five estimates whose layout (light, smoke, the// subject's place) already matched the take (owner, 2026-10-22: "it just// takes a shitload of time, and only near the end does it show").- if (!preview.url) {- if (wrap.dataset.liveState !== 'warming') {- wrap.innerHTML = `<div class="live-stage-warming">- <svg class="live-stage-warming-mark" viewBox="0 0 24 16" fill="none" aria-hidden="true">- <rect x="1" y="1" width="22" height="14" rx="2" stroke="currentColor" stroke-width="1"/>- <path d="M1 5h22M1 11h22M6 1v14M18 1v14" stroke="currentColor" stroke-width=".8" opacity=".72"/>- </svg>- <strong>Finding the shot…</strong>- <span>The first useful estimate will appear here.</span>- </div>`;- wrap.dataset.liveState = 'warming';- }- } else {+ // Keep the mark mounted through the first image request. An HTTP failure+ // must not trade the waiting state for a blank stage; only onload reveals it.+ // A new job resets the old frame even if the queue advances in one poll.+ if (newLiveJob || !wrap.querySelector('.live-stage-warming')) {+ const brandMark = document.querySelector('header .ph-mark');+ wrap.innerHTML = `<div class="live-stage-warming">+ <div id="studioStageMark" class="ph-mark studio-stage-mark" aria-hidden="true">${brandMark ? brandMark.innerHTML : ''}</div>+ <div class="live-stage-progress" role="progressbar" aria-label="Stage render progress" aria-valuemin="0" aria-valuemax="100"></div>+ <strong class="live-stage-phase"></strong>+ </div>`;+ wrap.classList.remove('has-live-frame');+ wrap.dataset.liveState = 'warming';+ }+ const warming = wrap.querySelector('.live-stage-warming');+ const progress = warming.querySelector('.live-stage-progress');+ const phase = warming.querySelector('.live-stage-phase');+ const reported = Number((cur.progress || {}).pct);+ const pct = Number.isFinite(reported) ? Math.min(99, Math.max(0, reported)) : 0;+ if (progress) {+ progress.textContent = `${Math.round(pct)}%`;+ progress.style.setProperty('--p', String(pct / 100));+ progress.setAttribute('aria-valuenow', String(Math.round(pct)));+ }+ if (phase) phase.textContent = stopping ? 'Finishing the current step…'+ : ((cur.progress || {}).phase_label || 'Preparing your video');+ if (preview.url) {let img = wrap.querySelector('.live-stage-image');if (!img) {- wrap.innerHTML = '<img class="live-stage-image" alt="Live render preview">';- img = wrap.querySelector('.live-stage-image');+ img = document.createElement('img');+ img.className = 'live-stage-image';+ img.alt = 'Live render preview';+ wrap.appendChild(img);+ img.onload = () => {+ if (!img.isConnected || wrap.dataset.liveJobId !== String(cur.id)) return;+ wrap.classList.add('has-live-frame');+ warming.setAttribute('aria-hidden', 'true');+ };}if (img.getAttribute('src') !== preview.url) img.setAttribute('src', preview.url);// Rough until the server calls it meaningful: blurred, so nobody judges a@@ -1893,7 +1914,11 @@ async function refreshModelsModal({ silent = false } = {}) {// ahead. `needs_hf` is derived from the registry's mirror block.const hfOk = (data.hf_available ?? true) || (r.needs_hf === false);const hostMissing = r.host_key && !completeByKey[r.host_key];- if (r.app_owned) {+ if (r.availability === 'unavailable' || (r.availability === 'read_only' && !r.complete)) {+ cls = 'missing'; icon = '<svg class="ph" aria-hidden="true"><use href="#ph-x-circle"/></svg>';+ statusText = escapeHtml(r.path_message);+ btnHtml = '<button class="ghost" onclick="refreshModelsModal()">Check again</button>';+ } else if (r.app_owned) {// Mac app: the app is fetching this pack itself (app_models.json) - no// second Download here; the server refuses one too.cls = 'downloading';@@ -1914,7 +1939,7 @@ async function refreshModelsModal({ silent = false } = {}) {// ~/.cache/huggingface/ rather than the canonical mlx_models/// dir. Common on manual / dev installs that pre-existed Pinokio// and pulled the model via `huggingface-cli` or first-run helper.- const tag = r.where === 'hf_cache' ? 'HF cache' : 'local';+ const tag = r.availability === 'read_only' ? 'read-only' : (r.where === 'hf_cache' ? 'HF cache' : 'local');statusText = `Ready · ${r.total_files} files · ~${r.size_gb || '?'} GB · ${tag}`;btnHtml = `<button class="ghost" disabled>Installed</button>`;} else if (r.present_files > 0) {@@ -2024,7 +2049,14 @@ async function refreshModelsModal({ silent = false } = {}) {: `<button onclick="openMusicInstallCard()">${inst.active ? 'Progress' : music.repairable ? 'Repair' : 'Install'}</button>`}</li>`;}- list.innerHTML = (rows + h3Row + musicRow) || `<li class="empty-state">No model manifest found — required_files.json is missing or unreadable.</li>`;+ const html = (rows + h3Row + musicRow) || `<li class="empty-state">No model manifest found — required_files.json is missing or unreadable.</li>`;+ if (list._html !== html) {+ const active = document.activeElement;+ const action = list.contains(active) ? active.getAttribute('onclick') : null;+ list._html = html;+ list.innerHTML = html;+ if (action) Array.from(list.querySelectorAll('button')).find(b => b.getAttribute('onclick') === action)?.focus();+ }// Footer summarises required vs optional counts.// Count only what THIS BUILD needs. 2.3's two base rows were inside// "Required: N/M ready", which made §7.1's first-visit contractdiff --git a/webapp/js/queue.js b/webapp/js/queue.jsindex e6fb4e6..25dcd1e 100644--- a/webapp/js/queue.js+++ b/webapp/js/queue.js@@ -163,7 +163,12 @@ function h3FinishFieldsFromSidecar(p, tierKey) {// The Speed switch value the clip was made with (Fast = 3-step, or the// retired Turbo; Best = the shape's full sampler). setH3Speed re-checks// availability: a Fast clip on an install without the adapter lands on Best.- h3_speed: (p.h3_tristep || p.h3_turbo) ? 'fast' : (p.h3_flex ? 'flex' : 'best'),+ h3_speed: (p.h3_tristep || p.h3_turbo) ? 'fast' : (p.h3_flex ? 'flex' : (p.h3_flex_turbo ? 'flex_turbo' : 'best')),+ // Clean up sound rides with Fast: a clip made with it is remade with it.+ // Absent on sidecars before 4.20 (= leave the current preference alone).+ h3_clean_sound: (p.h3_clean_sound === true || p.h3_clean_sound === false) ? p.h3_clean_sound : null,+ // Face to keep carries over (same person in the finish).+ h3_reference: (typeof p.h3_reference === 'string') ? p.h3_reference : '',// The shot list carries over, and it is safe to: Finish means SAME LENGTH,// higher quality, so the window count is identical by construction and// entry i still means window i. Dropping it would silently finish a@@ -340,6 +345,10 @@ async function h3FinishActive() {// Turbo before the shape: setH3Turbo forces the Steps pills back to 'auto',// and setH3Tier below re-reads them when it stamps the resolved count.if (typeof setH3Speed === 'function' && fields.h3_speed) setH3Speed(fields.h3_speed);+ if (typeof setH3CleanSound === 'function' && fields.h3_clean_sound != null) setH3CleanSound(fields.h3_clean_sound);+ if (typeof pickerSetImage === 'function' && document.getElementById('h3_reference')) {+ try { pickerSetImage('h3_reference', fields.h3_reference || '', { snapAspect: false }); } catch (e) {}+ }// Shape LAST of the H3 controls: setH3Tier stamps width/height/frames/steps// from the cell table, so anything geometry-related set after it would be// fighting the source of truth. The LENGTH inside `fields.h3_tier` is the@@ -682,6 +691,9 @@ function _h3ServesMode(mode) {function setEngine(engine, opts) {if (engine === 'music') { audioModeSet('compose'); workflowSwitch('audio'); return; }+ // Re-grey after this switch lands, clicked or not (loading a clip's+ // settings switches engine with no click; capabilities.js).+ if (typeof capSyncSoon === 'function') capSyncSoon();opts = opts || {};const fallback = defaultEngine();const note = document.getElementById('engineRowNote');@@ -959,6 +971,11 @@ function updateH3Availability(s) {|| (((next.flex || {}).available) !== ((H3.flex || {}).available))|| (((next.flex || {}).supported) !== ((H3.flex || {}).supported))|| (((next.flex || {}).download || {}).status !== ((H3.flex || {}).download || {}).status)+ // And H3 Flex Turbo: a finished download must flip the form's+ // h3_flex_turbo to 1 without another click.+ || (((next.flex_turbo || {}).available) !== ((H3.flex_turbo || {}).available))+ || (((next.flex_turbo || {}).supported) !== ((H3.flex_turbo || {}).supported))+ || (((next.flex_turbo || {}).download || {}).status !== ((H3.flex_turbo || {}).download || {}).status)|| ((next.tiers || []).length !== (H3.tiers || []).length);// BOTH bindings, and they must stay the same object: the H3-specific code// reads `H3` on nearly every line, the registry reads the probe map. A@@ -966,7 +983,8 @@ function updateH3Availability(s) {// engine (or worse, the reverse).const _triDl = !!((next.tristep || {}).installing || (H3.tristep || {}).installing|| (next.v13 || {}).installing || (H3.v13 || {}).installing- || (next.flex || {}).installing || (H3.flex || {}).installing);+ || (next.flex || {}).installing || (H3.flex || {}).installing+ || (next.flex_turbo || {}).installing || (H3.flex_turbo || {}).installing);H3 = next;window._ENGINE_PROBES.h3 = next;// A running 3-step download prints its progress on the pill.@@ -1812,6 +1830,13 @@ function updateDerived() {// Colorize (restore) shows its own source-video picker. Unlike Extend it// KEEPS the sizing + quick-metrics rows below (the source's own dims/length// drive the output, but the prompt + seed still apply).+ // Face to keep (H3, Text/Image, a runner with --reference).+ const _h3Ref = document.getElementById('h3RefSection');+ if (_h3Ref) {+ const _ref = (globalThis.H3 && globalThis.H3.reference) || {};+ _h3Ref.classList.toggle('show', document.body.dataset.engine === 'h3' && !!_ref.supported+ && (currentMode === 't2v' || currentMode === 'i2v'));+ }const _restoreSection = document.getElementById('restoreSection');if (_restoreSection) _restoreSection.classList.toggle('show', currentMode === 'restore');// Upscale ×2 — its own source picker + "keep the shot" slider. The source@@ -2046,6 +2071,7 @@ globalThis.PICKERS = ['keyframe_05_image','end_image','a2v_image',+ 'h3_reference',];function pickerEls(key) {@@ -3414,8 +3440,8 @@ function notifyJobsDone(s) {}function notifyOneJob(j) {const failed = j.status === 'failed';- const what = (j.params && (j.params.label || j.params.preset_label)) ||- (j.params && j.params.prompt ? String(j.params.prompt).slice(0, 60) : '') ||+ const what = (j.params && j.params.preset_label && !j.params.label ? j.params.preset_label : '') ||+ rowTitle(j, j.params && j.params.prompt, j.params && j.params.label) ||(j.params && j.params.mode) || 'a render';playDoneChime(failed);try {@@ -3595,11 +3621,11 @@ async function poll() {if (dl) {const elapsed = Math.max(0, Math.round(s.server_now - (dl.started_ts || s.server_now)));mp.innerHTML = dl.background- ? `<span class="dot"></span>↓ extras · ${escapeHtml(String(dl.key))}`+ ? `<span class="dot"></span>↓ models · ${escapeHtml(String(dl.key))}`: `<span class="dot"></span>↓ ${dl.key} · ${elapsed}s`;mp.className = 'pill pill-running';- mp.title = (dl.background ? `Background download after install (you can render meanwhile): ${dl.name || dl.repo_id}`- : `Downloading ${dl.repo_id}`) + ` — ${dl.last_line || 'starting…'}`;+ mp.title = (dl.background ? `Requested model download: ${dl.name || dl.repo_id}`+ : `Downloading ${dl.repo_id}`) + ` · ${dl.last_line || 'starting…'}`;} else {// Per-repo ready/total counts, scoped server-side (VC-32) to repos that// are actually relevant to THIS generation — never another generation's@@ -3639,6 +3665,7 @@ async function poll() {// pack lands (or disappears), same live-unlock contract Q8 already has.if (typeof updateH3Availability === 'function') updateH3Availability(s);updateMusicAvailability(s);+ if (typeof speechStatusUpdate === 'function') speechStatusUpdate(s);// The pack-incomplete gate, BEFORE the render rather than 30 s into it.if (typeof applyPackIncompleteGate === 'function') {try { applyPackIncompleteGate(s); } catch (e) {}@@ -3874,7 +3901,7 @@ async function poll() {timing = `<strong>${fmtMin(elapsed)}</strong> elapsed${avg ? ' / ~'+fmtMin(avg)+' avg' : ''}`;}fill.style.width = pct + '%';- nowCard.querySelector('.ttl').textContent = snippet(s.current.params.label || s.current.params.prompt, 80);+ nowCard.querySelector('.ttl').textContent = rowTitle(s.current, s.current.params.prompt, s.current.params.label);// Image jobs don't have width/height/frames; show n × aspect instead.// Falls through to the video shape when those fields ARE present.//@@ -3923,9 +3950,10 @@ async function poll() {? `<span class="now-clamp-note" title="${escapeHtml(clampNotes.join('; '))}">⚠ ${escapeHtml(clampNotes[0])}</span>`: '',].filter(Boolean).join('<br>');- nowCard.querySelector('.meta').innerHTML = underline+ const proNow = cur.pro_profile ? `<span class="pro-chip" title="This render runs the ${escapeHtml(String(cur.pro_profile))} Pro speed profile">Pro speed · ${escapeHtml(String(cur.pro_profile))}</span>` : '';+ nowCard.querySelector('.meta').innerHTML = (underline? `${baseMeta}<br>${underline}`- : baseMeta;+ : baseMeta) + (proNow ? ` ${proNow}` : '');livePreviewData = normalizeLivePreview(s, prog);renderNowPreview(s, prog, livePreviewData);} else {@@ -3964,7 +3992,7 @@ async function poll() {// _h3InstallCardContent). `details` is a fixed string we compose// ourselves (never user/engine-supplied), so it's safe unescaped.nowCard.querySelector('.meta').innerHTML =- `<span style="color: var(--muted)">${escapeHtml(snippet(last.params.label || last.params.prompt, 80))}</span>` ++ `<span style="color: var(--muted)">${escapeHtml(rowTitle(last, last.params.prompt, last.params.label))}</span>` +` <span style="color: var(--muted)">· ${escapeHtml(last.params.mode)} · ${last.params.width}×${last.params.height}</span>` +`<br><span style="color: var(--text)">${escapeHtml(hint)}</span>` +// SYS-33: errors rarely linked to Docs even where a section already@@ -4002,7 +4030,7 @@ async function poll() {nowCard.classList.add('stopped');nowCard.querySelector('.ttl').textContent = 'Stopped early';nowCard.querySelector('.meta').innerHTML =- `<span style="color: var(--muted)">${escapeHtml(snippet(last.params.label || last.params.prompt, 80))}</span>` ++ `<span style="color: var(--muted)">${escapeHtml(rowTitle(last, last.params.prompt, last.params.label))}</span>` +`<br><span style="color: var(--text)">Nothing was saved.</span>`;if (actionsEl) {actionsEl.dataset.jobId = String(last.id);@@ -4035,6 +4063,8 @@ async function poll() {}}+ if (typeof studioProgress === 'function') studioProgress(s);+// Y2.001 — bottom-pane live dot mirrors worker state. Tooltip sets// a one-line status for accessibility / hover. The dot animates// when running, switches red on the failed state.@@ -4140,9 +4170,9 @@ async function poll() {const editable = !j.params.take && j.params.engine !== 'music'&& !['image', 'train', 'upscale', 'sharp_export'].includes(j.params.mode);return `- <li${editable ? ` class="q-row-editable" onclick="editQueuedJob('${j.id}')" title="Click to edit this queued job"` : ''}>+ <li data-job-id="${escapeHtml(j.id)}"${editable ? ` class="q-row-editable" onclick="editQueuedJob('${j.id}')" title="Click to edit this queued job"` : ''}><span class="pos">#${i+1}</span>- <span class="ttl" title="${escapeHtml(j.params.prompt)}">${escapeHtml(j.params.label || snippet(j.params.prompt, 60))}</span>+ <span class="ttl" title="${escapeHtml(j.params.prompt)}">${escapeHtml(rowTitle(j, j.params.prompt, j.params.label))}</span>${sbBadge}<span class="params">${params}${clampBadge}${etaChip}</span><span class="q-reorder">${upBtn}${downBtn}</span>@@ -4186,7 +4216,7 @@ async function poll() {hl.innerHTML = `<li class="empty-state"><span></span><span>${empty}</span><span></span><span></span></li>`;}else hl.innerHTML = filtered.slice(0, 20).map(j => {- const titleText = escapeHtml(j.params.label || snippet(_displayPromptFor(j.params.prompt), 60));+ const titleText = escapeHtml(rowTitle(j, _displayPromptFor(j.params.prompt), j.params.label));const titleAttr = escapeHtml(_displayPromptFor(j.params.prompt));let titleHtml;if (j.status === 'failed' && j.error) {@@ -4420,7 +4450,7 @@ function applyFirstRunCard(s) {// rendered hundreds of clips would still be greeted as brand new. A// gallery with anything in it is not a first run.const hasOutputs = (s.outputs || []).length > 0;- const show = !(dismissed || everFinished || hasOutputs);+ const show = !!s.base_available && !(dismissed || everFinished || hasOutputs);card.style.display = show ? '' : 'none';const etaEl = document.getElementById('firstRunEta');if (show && etaEl && !etaEl.textContent) {@@ -4815,6 +4845,58 @@ function _displayPromptFor(prompt) {const cap = _parseIdeoCaption(prompt);return cap ? cap.high_level_description : (prompt || '');}+// Display-only title for a clip/job. SAME RULE as clip_title.display_title()+// (Python, which the server uses to send `title`): a user label wins; else strip+// the H3 scaffolding (field labels, [Shot N], At MM:SS, <d>..</d>, (S1), <Picture N>,+// alignment line), skip a bare style/trigger lead-in, take the first sentence, trim+// to ~60 chars at a word boundary. Never used for stored prompts or file names.+function displayTitle(prompt, label, limit) {+ limit = limit || 60;+ const squash = (t) => String(t == null ? '' : t).replace(/\s+/g, ' ').trim();+ const trim = (t) => {+ if (t.length <= limit) return t;+ let cut = t.slice(0, limit + 1); const sp = cut.lastIndexOf(' ');+ cut = sp >= limit * 0.5 ? cut.slice(0, sp) : t.slice(0, limit);+ return cut.replace(/[ ,;:\-.]+$/, '') + '\u2026';+ };+ const lab = squash(label);+ if (lab) return trim(lab);+ const orig = String(prompt == null ? '' : prompt);+ const clean = (t) => t+ .replace(/^\s*For the target video, at 0(?:\.0+)? seconds[^\n]*\n?/i, ' ')+ .replace(/\b(?:integrated_multimodal_description|overall_soundscape|non_diegetic_music|summary|high_level_description)\s*:/gi, ' ')+ .replace(/\[\s*Shot\s*\d+\s*\]/gi, ' ')+ .replace(/\bAt\s+\d{1,2}:\d{2}(?:\.\d+)?\s*,/gi, ' ')+ .replace(/\(\s*S\d+\s*\)/g, ' ')+ .replace(/<\s*(?:Picture|Image|Audio|Video)\s*\d+\s*>(?:\s*\(from[^)]*\))?/gi, ' ')+ .replace(/\s+/g, ' ').trim().replace(/^[ :;-]+|[ :;-]+$/g, '');+ let t = clean(orig.replace(/<d>[\s\S]*?<\/d>/gi, ' '));+ if (!t) {+ const inner = [...orig.matchAll(/<d>([\s\S]*?)<\/d>/gi)].map(m => m[1]).join(' ')+ .replace(/^\s*\[[A-Za-z ]+\]\s*/, '');+ t = clean(inner);+ }+ if (!t) return '';+ const sents = t.split(/(?<=[.!?])\s+/).map(x => x.trim()).filter(Boolean);+ const styleLead = /^(?:live-action(?:-style [a-z]+)?|cinematic|animated|photorealistic|vintage film|warm film look|film look)\s*,\s*/i;+ const styleOnly = /(?:shot on [A-Za-z0-9 ]{2,20}|film look|film grain|vhs look|tape damage|tape recording)$/i;+ const trigger = /^[A-Za-z]*\d[A-Za-z0-9_]*\s*,|^[a-z0-9_]*trn\s*,/i;+ let first = '';+ for (let i = 0; i < sents.length; i++) {+ let c = sents[i].replace(/[.!?]+$/, '');+ while (styleLead.test(c)) c = c.replace(styleLead, '');+ c = c.replace(trigger, '').trim();+ if (i < sents.length - 1 && (styleOnly.test(c) || c.length < 12)) continue;+ first = c; break;+ }+ first = first || sents[0].replace(/[.!?]+$/, '');+ if (first && first[0] === first[0].toLowerCase() && first[0] !== first[0].toUpperCase()) first = first[0].toUpperCase() + first.slice(1);+ return trim(first);+}+// Title for a job/output row: the server's `title` when it sent one, else derived here.+function rowTitle(r, prompt, label) {+ return (r && r.title) || displayTitle(prompt, label);+}// Friendly engine label from the internal token stamped on image jobs// (params.engine = "mflux/ideogram" etc.). Falls back to the raw token.function _imgEngineLabel(token) {@@ -4910,11 +4992,9 @@ function _songCardName(o) {// or a file with no sidecar).function _cardTitleText(o) {if (o && o.music) return _songCardName(o);- const p = (o && o.prompt || '').trim();+ const p = rowTitle(o, (o && o.prompt || '').trim(), '');if (!p) return escapeHtml(o.name);- const words = p.split(/\s+/);- const head = words.slice(0, 8).join(' ');- return escapeHtml(head) + (words.length > 8 ? '…' : '');+ return escapeHtml(p);}// VC-36: the "Balanced · 1280×720" / "t2v · 1280×720" chip row — quality@@ -4941,6 +5021,15 @@ function _posterVersionQuery(o) {// mp4 header), never the quality preset's or H3 tier's default canvas — those// labelled a square, portrait, native-export or Sharp-exported clip with the// preset's landscape delivery size. Unknown dimensions print no size at all.+// "Pro speed · saved ~N min": only from the sidecar's receipt (write_sidecar stamps it when a Pro speed profile ran).+// A Free render has no receipt and no chip; nothing here estimates or nags.+function _proSpeedChip(o) {+ const p = o && o.pro;+ if (!p || !(Number(p.saved_sec) > 0)) return '';+ const m = Math.round(Number(p.saved_sec) / 60);+ const txt = m >= 1 ? `Pro speed · saved ~${m} min` : `Pro speed · saved ~${Math.round(Number(p.saved_sec))} s`;+ return `<span class="pro-chip" title="Ran the ${escapeHtml(String(p.profile || 'Pro'))} profile: ${escapeHtml(String(Math.round(p.elapsed_sec)))} s instead of ~${escapeHtml(String(Math.round(p.free_equivalent_sec)))} s on the Free path (${escapeHtml(String(p.speedup))}×, measured on ${escapeHtml(String(p.measured_on || 'the reference Mac'))})">${txt}</span>`;+}function _cardModeSizeChip(o) {const bits = [];if (o && o.mode) bits.push(o.mode);@@ -5098,7 +5187,7 @@ function renderCarousel() {${o.sb ? `<span class="badge sb-badge" title="Shot ${o.sb.n} of a storyboard — click to open it"onclick="event.stopPropagation(); sbOpenFromClip('${escapeHtml(o.sb.id)}')">S${String(o.sb.n).padStart(2,'0')}</span> · ` : ''}${_outputDurationLabel(o)} · ${o.size_mb.toFixed(1)} MB</div>- ${(() => { const chip = _cardModeSizeChip(o); return chip ? `<div class="card-chip-row">${escapeHtml(chip)}</div>` : ''; })()}+ ${(() => { const chip = _cardModeSizeChip(o), pro = _proSpeedChip(o); return chip || pro ? `<div class="card-chip-row">${escapeHtml(chip)}${pro}</div>` : ''; })()}</div></div>`;}).join('');@@ -7140,6 +7229,7 @@ async function loadParams(recipe) {if (eng) {eng.value = 'ideogram4_inline';if (typeof ideoSyncVisibility === 'function') ideoSyncVisibility(); // reveal the canvas+ if (typeof renderEngineSwitch === 'function') renderEngineSwitch(); // top picker: Ideogram 4}const pe = document.getElementById('imgStudioPrompt');if (pe) pe.value = _ideoSrc.high_level_description || '';@@ -7604,6 +7694,18 @@ async function loadParams(recipe) {if (typeof setH3Speed === 'function' && typeof h3SpeedOfParams === 'function') {try { setH3Speed(h3SpeedOfParams(p)); } catch (e) {}}+ // 4.20: Clean up sound and Face to keep come back with the clip; a sidecar+ // without a reference clears a stale pick (never render another person).+ if (typeof setH3CleanSound === 'function'+ && (p.h3_clean_sound === true || p.h3_clean_sound === false)) {+ try { setH3CleanSound(p.h3_clean_sound); } catch (e) {}+ }+ if (typeof pickerSetImage === 'function' && document.getElementById('h3_reference')) {+ try {+ pickerSetImage('h3_reference', typeof p.h3_reference === 'string' ? p.h3_reference : '',+ { snapAspect: false });+ } catch (e) {}+ }if (typeof setH3Steps === 'function') {// A Best clip made on the full sampler, where Best would now run// lightx2v v1.3 (High, Text/Image): pin the count it ran, so Load@@ -7945,6 +8047,15 @@ function renderOutputInfoBody(path, data) {+ ` · σ ${escapeHtml(String(ti.sigma_subset || '50:0,16,33,49'))}`+ (acc && acc.applied != null ? ' · ' + escapeHtml(String(acc.applied)) + ' modules wrapped' : '')+ '</dd>');+ if (p.h3_clean_sound) {+ // The re-voice pass's own record: one per window (w1_revoice...).+ const rv = (data && data.h3 && data.h3.revoice) || {};+ const first = Object.values(rv)[0] || {};+ const secs = Object.values(rv).reduce((a, r) => a + (Number(r && r.seconds) || 0), 0);+ genRows.push(`<dt>Sound</dt><dd>Cleaned up · made again with the full model`+ + (first.forwards ? ' · ' + escapeHtml(String(first.forwards)) + ' sound steps' : '')+ + (secs ? ' · ' + escapeHtml(String(Math.round(secs))) + ' s' : '') + '</dd>');+ }} else if (p.h3_turbo) {const tinfo = (data && data.h3 && data.h3.turbo) || null;const applied = tinfo && tinfo.applied && tinfo.applied.applied;@@ -9074,3 +9185,119 @@ Object.assign(globalThis, {// "Continue from here" (VA-38) — the player button's inline onclick target.windowsContinueFromPartial,});++// ===== Studio presentation motion =====+// Presentation only. The existing status poll owns all job state and timing.+// No extra polling, speculative progress, or changes to generation controls.+let studioReducedMotion = null;+const studioAnimations = new Set();+function studioAnimate(el, frames, duration = 240) {+ if (!el || studioReducedMotion.matches || document.hidden) return;+ const a = el.animate(frames, { duration, easing: 'cubic-bezier(.4,0,.2,1)' });+ studioAnimations.add(a);+ a.finished.catch(() => {}).finally(() => studioAnimations.delete(a));+}+let studioJob = null, studioCompletion = null, studioLastPercent = null;+function studioPercent(value, visible) {+ const el = document.getElementById('studioProgressValue');+ if (!el) return;+ el.hidden = !visible;+ if (!visible) { studioLastPercent = null; return; }+ const n = Math.round(value);+ if (n === studioLastPercent) return;+ const digits = el.firstElementChild;+ digits.textContent = `${n}%`;+ // A fixed-width counter slides to each reported value. It never counts+ // beyond server progress, and accessibility gets the exact value at once.+ if (studioLastPercent !== null) studioAnimate(digits, [+ { opacity: .3, transform: 'translateY(35%)' }, { opacity: 1, transform: 'translateY(0)' }+ ], 320);+ studioLastPercent = n;+}+function studioProgress(status) {+ const card = document.getElementById('nowCard');+ const fill = document.getElementById('progressFill');+ if (!card || !fill) return;+ const bar = fill.parentElement;+ // --p rides with the scale so the CSS can pin the brand gradient to the+ // track (the fill uncovers it rather than squashing it into its width).+ const setFill = (x) => { fill.style.transform = `scaleX(${x})`; fill.style.setProperty('--p', String(x)); };+ const current = status.running && status.current;+ if (current) {+ if (studioCompletion) { clearTimeout(studioCompletion); studioCompletion = null; }+ card.classList.remove('is-complete');+ const changed = studioJob !== current.id;+ studioJob = current.id;+ card.classList.add('is-rendering');+ const pct = Math.min(99, Math.max(0, parseFloat(fill.style.width) || 0));+ // Do not animate backwards across two unrelated jobs.+ if (changed) { fill.style.transition = 'none'; studioLastPercent = null; }+ setFill(pct / 100);+ if (changed) requestAnimationFrame(() => { fill.style.transition = ''; });+ bar.setAttribute('aria-valuenow', String(Math.round(pct)));+ studioPercent(pct, true);+ return;+ }+ card.classList.remove('is-rendering');+ const completed = studioJob && (status.history || []).find(j => j.id === studioJob && j.status === 'done');+ studioJob = null;+ if (completed) {+ card.classList.add('is-complete');+ setFill(1);+ bar.setAttribute('aria-valuenow', '100');+ studioPercent(100, true);+ studioCompletion = setTimeout(() => {+ card.classList.remove('is-complete'); setFill(0);+ bar.setAttribute('aria-valuenow', '0'); studioPercent(0, false); studioCompletion = null;+ }, studioReducedMotion.matches ? 300 : 1100);+ } else if (!studioCompletion) {+ setFill(0); bar.setAttribute('aria-valuenow', '0'); studioPercent(0, false);+ }+}+++function studioMotionInit() {+ if (studioReducedMotion) return;+ studioReducedMotion = matchMedia('(prefers-reduced-motion: reduce)');+ studioReducedMotion.addEventListener('change', () => {+ if (studioReducedMotion.matches) studioAnimations.forEach(a => a.cancel());+ });+ // Workflow changes reveal only the active working surface. The existing+ // workflowSwitch function continues to own visibility, focus and persistence.+ let studioWorkflow = document.body.dataset.workflow;+ new MutationObserver(() => {+ const next = document.body.dataset.workflow;+ if (next === studioWorkflow) return;+ studioWorkflow = next;+ const ids = {manual:'genForm',studio:'studioSection',audio:'audioSectionTab',storyboard:'sbSectionTab',editor:'edSectionTab',oneshot:'oneshotSectionTab',train:'trainSection'};+ studioAnimate(document.getElementById(ids[next]), [+ {opacity:.45,transform:'translateY(4px)'},{opacity:1,transform:'translateY(0)'}+ ]);+ }).observe(document.body,{attributes:true,attributeFilter:['data-workflow']});++ // queue.js replaces rows when its signature changes. Compare stable job ids+ // so a poll never re-animates the entire queue. Reorders get one small settle.+ const studioQueue = document.getElementById('queueList');+ let studioRows = new Map();+ if (studioQueue) new MutationObserver(() => {+ const next = new Map();+ [...studioQueue.children].forEach((row,i) => {+ const id = row.dataset.jobId;+ if (!id) return;+ const state = `${i}:${row.textContent}`;+ if (studioRows.get(id) !== state) studioAnimate(row,[+ {opacity:.45,transform:'translateY(4px)'},{opacity:1,transform:'translateY(0)'}+ ]);+ next.set(id,state);+ });+ studioRows = next;+ }).observe(studioQueue,{childList:true});++ // Native fields keep native keyboard behaviour; feedback never moves the caret.+ document.addEventListener('focusin', event => {+ if (event.target.matches('input:not([type="hidden"]),textarea,select'))+ studioAnimate(event.target, [{opacity:.82},{opacity:1}], 180);+ });++}+Object.assign(globalThis, {studioMotionInit, studioProgress});diff --git a/webapp/js/remote.js b/webapp/js/remote.jsnew file mode 100644index 0000000..8a6eee4--- /dev/null+++ b/webapp/js/remote.js@@ -0,0 +1,218 @@+// Remote Control page (left menu). Public Studio UI only: it asks /remote/state what the+// Pro-side module says and draws it. Pairing, encryption and the Pro check are not here.++const $ = (id) => document.getElementById(id);+let poll = null;+let state = null;+let offer = null; // {url, expires_at} while a pairing code is showing+let qrLib = null;+let drawnUrl = '';+let busy = false;++function rmLoadQr() {+ if (qrLib) return qrLib;+ qrLib = new Promise((resolve, reject) => {+ if (window.qrcode) return resolve(window.qrcode);+ const s = document.createElement('script');+ s.src = '/webapp/vendor/qrcode/qrcode.js';+ s.onload = () => resolve(window.qrcode);+ s.onerror = () => reject(new Error('qr'));+ document.head.appendChild(s);+ });+ return qrLib;+}++async function rmApi(path, form) {+ const opts = form === undefined ? {} : {+ method: 'POST',+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },+ body: new URLSearchParams(form).toString(),+ };+ const r = await fetch('/remote/' + path, opts);+ let doc = {};+ try { doc = await r.json(); } catch (e) { /* keep {} */ }+ return doc;+}++function rmSetErr(msg) {+ const el = $('rmError');+ if (!el) return;+ el.hidden = !msg;+ el.textContent = msg || '';+}++function rmAgo(ts) {+ if (!ts) return 'not seen yet';+ const s = Math.max(0, Math.round(Date.now() / 1000 - ts));+ if (s < 60) return 'just now';+ if (s < 3600) return Math.round(s / 60) + ' min ago';+ if (s < 86400) return Math.round(s / 3600) + ' h ago';+ return Math.round(s / 86400) + ' d ago';+}++// Pro on this Mac: the Remote module says so, or the studio's own /pro/status did (proStatusRefresh+// sets <html data-pro>). Either way the page shows status, never "comes with Pro".+function rmIsMember(st) {+ return !!(st && st.pro) || !!document.documentElement.dataset.pro;+}++function rmConnection(st) {+ // -> [class, text]+ if (!st.available || !st.pro) return ['off', rmIsMember(st) ? 'Not set up yet' : 'Pro feature'];+ if (!st.enabled || !st.running) return ['off', 'Off'];+ const anyPhone = (st.devices || []).some((d) => d.connected);+ const lan = !!st.lan, relay = st.relay === 'connected';+ if (anyPhone) return ['on', 'Phone connected' + (lan ? ' · same Wi-Fi' : ' · via relay')];+ if (lan && relay) return ['on', 'Ready · same Wi-Fi or away'];+ if (lan) return ['on', 'Ready · same Wi-Fi'];+ if (relay) return ['warn', 'Ready · via relay only'];+ return ['bad', 'Offline · no network found'];+}++function rmRender() {+ const st = state;+ if (!st) return;+ const pro = $('rmPro'), main = $('rmMain'), wait = $('rmProWait');+ const gated = !st.available || !st.pro;+ // A Pro member never sees the upsell: no Remote module yet = a status line instead.+ const member = rmIsMember(st);+ pro.hidden = !gated || member;+ if (wait) wait.hidden = !gated || !member;+ main.hidden = gated;+ const [cls, text] = rmConnection(st);+ $('rmConnDot').className = 'rm-dot ' + cls;+ $('rmConnText').textContent = text;+ if (gated) return;++ const pairing = st.pairing || {};+ const joined = pairing.joined;+ $('rmAllow').hidden = !joined;+ $('rmQrLive').hidden = !!joined || !pairing.open;+ $('rmQrIdle').hidden = !!joined || !!pairing.open;+ if (joined) {+ $('rmAllowName').textContent = joined.name || 'A phone';+ const c = String(joined.code || '').replace(/\D/g, '');+ $('rmAllowCode').textContent = c.length === 6 ? c.slice(0, 3) + ' ' + c.slice(3) : c;+ }+ if (pairing.open && offer) {+ const left = Math.max(0, (pairing.expires_at || offer.expires_at) - Date.now() / 1000);+ $('rmCountdown').textContent = Math.floor(left / 60) + ':' + String(Math.floor(left % 60)).padStart(2, '0');+ }+ if (!pairing.open) { offer = null; drawnUrl = ''; }++ const devs = (st.devices || []).filter((d) => d.confirmed);+ $('rmPhonesCount').textContent = devs.length ? String(devs.length) : '';+ $('rmPhonesEmpty').hidden = devs.length > 0;+ const ul = $('rmPhones');+ ul.textContent = '';+ for (const d of devs) {+ const li = document.createElement('li');+ li.className = 'rm-phone';+ li.innerHTML = '<span class="rm-phone-ic" aria-hidden="true"></span><div class="rm-phone-main"><b></b><span></span></div>';+ li.querySelector('b').textContent = d.name || 'iPhone';+ li.querySelector('.rm-phone-main span').textContent =+ (d.connected ? 'Connected now' : 'Last seen ' + rmAgo(d.last_seen)) + (d.scope === 'own' ? ' · only its own clips' : '');+ li.querySelector('.rm-phone-ic').classList.toggle('on', !!d.connected);+ const b = document.createElement('button');+ b.type = 'button'; b.className = 'rm-link danger'; b.textContent = 'Remove';+ let armed = false, t = null;+ b.addEventListener('click', async () => {+ if (!armed) {+ armed = true; b.textContent = 'Click again to remove';+ t = setTimeout(() => { armed = false; b.textContent = 'Remove'; }, 4000);+ return;+ }+ clearTimeout(t);+ state = await rmApi('revoke', { id: d.id });+ rmRender();+ });+ li.appendChild(b);+ ul.appendChild(li);+ }+ $('rmForgetAll').hidden = devs.length === 0;++ $('rmEnable').checked = !!st.enabled && !!st.running;+ $('rmFactLan').textContent = st.lan ? (st.lan_url || st.host || 'Ready') : (st.enabled ? 'No local network found' : 'Off');+ $('rmFactRelay').textContent = ({ connected: 'Connected', connecting: 'Connecting…', off: 'Off', offline: 'Offline',+ unavailable: 'Not available yet', error: 'Not reachable', 'no-pro-token': 'Needs Pro' })[st.relay] || '—';+ const nm = $('rmName');+ if (document.activeElement !== nm) nm.value = st.mac_name || '';+ if (st.error) rmSetErr(st.error);+}++async function rmDrawQr(url) {+ if (!url || url === drawnUrl) return;+ drawnUrl = url;+ try {+ const q = await rmLoadQr();+ const qr = q(0, 'L');+ qr.addData(url);+ qr.make();+ const n = qr.getModuleCount(), cv = $('rmQr'), ctx = cv.getContext('2d');+ const quiet = 3, cell = Math.floor(cv.width / (n + quiet * 2));+ const size = cell * (n + quiet * 2);+ ctx.fillStyle = '#fff'; ctx.fillRect(0, 0, cv.width, cv.height);+ const off = Math.floor((cv.width - size) / 2) + quiet * cell;+ ctx.fillStyle = '#0e0e10';+ for (let r = 0; r < n; r++) for (let c = 0; c < n; c++) {+ if (qr.isDark(r, c)) ctx.fillRect(off + c * cell, off + r * cell, cell, cell);+ }+ } catch (e) { rmSetErr('Could not draw the code. Reload the page and try again.'); }+}++async function rmRefresh() {+ try { state = await rmApi('state'); } catch (e) { return; }+ rmRender();+}++async function rmShowCode() {+ if (busy) return;+ busy = true; rmSetErr('');+ $('rmPairBtn').disabled = true;+ try {+ const doc = await rmApi('pair', {});+ if (!doc.ok) { rmSetErr(doc.error || 'Could not open pairing.'); }+ else { offer = doc; state = doc.state || state; rmRender(); await rmDrawQr(doc.url); }+ } finally { busy = false; $('rmPairBtn').disabled = false; }+}++function rmWire() {+ if (rmWire.done) return; rmWire.done = true;+ $('rmPairBtn').addEventListener('click', rmShowCode);+ $('rmQrCancel').addEventListener('click', async () => { offer = null; drawnUrl = ''; state = await rmApi('pair_cancel', {}); rmRender(); });+ const confirm = async (allow) => {+ const j = state && state.pairing && state.pairing.joined;+ if (!j) return;+ const scope = (document.querySelector('input[name="rmScope"]:checked') || {}).value || 'all';+ state = await rmApi('confirm', { id: j.id, allow: allow ? '1' : '0', scope });+ rmRender();+ };+ $('rmAllowYes').addEventListener('click', () => confirm(true));+ $('rmAllowNo').addEventListener('click', () => confirm(false));+ $('rmEnable').addEventListener('change', async (e) => {+ rmSetErr('');+ const doc = await rmApi('enable', { on: e.target.checked ? '1' : '0' });+ if (doc.ok === false) rmSetErr(doc.error || 'Could not change Remote Control.');+ else state = doc;+ rmRender();+ });+ $('rmName').addEventListener('change', async (e) => { state = await rmApi('name', { name: e.target.value }); rmRender(); });+ $('rmForgetAll').addEventListener('click', async () => {+ if (!rmConfirm_('Remove every paired phone? They will need to pair again.')) return;+ state = await rmApi('forget_all', {}); rmRender();+ });+}+function rmConfirm_(msg) { return window.confirm(msg); }++function remoteTabEnter() {+ rmWire();+ rmRefresh();+ if (!poll) poll = setInterval(rmRefresh, 1500);+ const piece = $('rmQrLive');+ if (piece && !piece.hidden && offer) rmDrawQr(offer.url);+}+function remoteTabLeave() {+ if (poll) { clearInterval(poll); poll = null; }+}++Object.assign(globalThis, { remoteTabEnter, remoteTabLeave });diff --git a/webapp/js/settings.js b/webapp/js/settings.jsindex 634e4e3..3508682 100644--- a/webapp/js/settings.js+++ b/webapp/js/settings.js@@ -5,7 +5,7 @@// ====== Inline models card (top of form) ======// Displays what the current install needs RIGHT WHERE the user is about// to act. Beats burying the download CTA in a header modal. State picked-// from /status: base missing → red blocker, current-mode-needs-Q8 →+// from /status: base missing → first-download offer, current-mode-needs-Q8 →// amber prompt, downloading → animated progress, all-good → hidden.function updateModelsCard(s) {const card = document.getElementById('modelsInline');@@ -17,6 +17,13 @@ function updateModelsCard(s) {const last = document.getElementById('modelsInlineLast');const actions = document.getElementById('modelsInlineActions');if (!card) return;+ const setActions = html => {+ if (actions._html === html) return;+ const focused = actions.contains(document.activeElement);+ actions._html = html;+ actions.innerHTML = html;+ if (focused) actions.querySelector('button')?.focus();+ };const baseOk = !!s.base_available;const q8Ok = !!s.q8_available;@@ -25,9 +32,19 @@ function updateModelsCard(s) {const dismissed = !!(s.settings && s.settings.models_card_dismissed);// Reset state classes — we set the right one below.- card.classList.remove('state-missing', 'state-warn', 'state-downloading', 'dismissible');+ card.classList.remove('state-missing', 'state-warn', 'state-downloading', 'dismissible', 'is-ready');progress.style.display = 'none';+ if (s.model_path_error) {+ card.style.display = '';+ card.classList.add('state-warn');+ icon.textContent = '!';+ title.textContent = 'Model folder needs attention';+ sub.textContent = s.model_path_error;+ setActions('<button class="ghost" onclick="openModelsModal()">Check models</button>');+ return;+ }+// ----- A Pinokio-side H3 build/install is running RIGHT NOW --------------// H3-19: install/build only ever runs as a Pinokio script — there is no// real in-panel trigger for the ~75 GB clone+venv+download (unlike the@@ -45,39 +62,38 @@ function updateModelsCard(s) {icon.textContent = '↓';title.textContent = `Building ${extBuild.what || 'an H3 engine'} in Pinokio`;sub.textContent = 'Running in the Pinokio sidebar — Generate resumes here automatically when it finishes. No need to keep that tab open.';- actions.innerHTML = '';+ setActions('');return;}- // ----- 4.20: the post-install background downloads ----------------------- // A fresh install starts with the renderer only; Gemma 3 and the IC-LoRAs- // follow in the background. That is not a problem to fix, so the card says- // so calmly: you can render now, this is what is arriving and what it- // unlocks. Cancel skips that one pack (Settings -> Models still offers it).+ // Requested video packs share one queue and one progress display.+ // Stop keeps partial files and clears every remaining pack in that request.const bgq = s.deferred_downloads || {};if (dl && dl.background) {card.style.display = '';card.classList.add('state-downloading');icon.textContent = '↓';const rest = Math.max(0, (bgq.pending || []).length - 1);- title.textContent = `Finishing setup in the background — you can render now`;+ title.textContent = 'Downloading your video model';sub.textContent = `Downloading ${dl.name || dl.key}${dl.size_gb ? ` (~${dl.size_gb} GB)` : ''}`+ (rest ? ` · ${rest} more after this (${bgq.left_gb} GB left in all)` : '')+ ' · resumes if interrupted';progress.style.display = '';const m = (dl.last_line || '').match(/\b(\d{1,3})%/);- fill.style.width = m ? `${Math.min(100, parseInt(m[1]))}%` : '15%';- last.textContent = dl.last_line || 'starting…';- actions.innerHTML = `<button class="ghost" onclick="cancelDownload()">Skip this one</button>`;+ fill.style.width = dl.bytes_total ? `${Math.min(99, 100 * dl.bytes_done / dl.bytes_total)}%` : m ? `${Math.min(99, parseInt(m[1]))}%` : '0%';+ last.textContent = dl.bytes_total ? `${(dl.bytes_done / 1e9).toFixed(2)} of about ${(dl.bytes_total / 1e9).toFixed(2)} GB · ${dl.last_line || 'Connecting'} ` : dl.last_line || 'Connecting';+ setActions(`<button class="ghost" onclick="cancelDownload()">Stop download</button>`);return;}- if (!dl && bgq.state === 'waiting_disk' && bgq.message && baseOk) {+ if (!dl && bgq.active && bgq.message) {card.style.display = '';card.classList.add('state-warn');icon.innerHTML = '<svg class="ph" aria-hidden="true"><use href="#ph-download-simple"/></svg>';- title.textContent = 'Background downloads paused — the disk is nearly full';+ const failed = bgq.state === 'retry_wait' || bgq.state === 'failed';+ title.textContent = bgq.state === 'waiting_disk' ? 'Download paused: more disk space needed' : failed ? 'Download needs another try' : 'Download waiting';sub.textContent = bgq.message;- actions.innerHTML = `<button class="ghost" onclick="openModelsModal()">Models</button>`;+ setActions((failed ? `<button onclick="downloadFirstVideo()">Try again</button>` : '')+ + `<button class="ghost" onclick="cancelDownload()">Stop download</button><button class="ghost" onclick="openModelsModal()">Models</button>`);return;}@@ -93,18 +109,26 @@ function updateModelsCard(s) {progress.style.display = '';// Try to extract a percent from the last hf line (tqdm format).const m = (dl.last_line || '').match(/\b(\d{1,3})%/);- fill.style.width = m ? `${Math.min(100, parseInt(m[1]))}%` : '15%';- last.textContent = dl.last_line || 'starting…';- actions.innerHTML = `<button class="danger" onclick="cancelDownload()">Cancel</button>`;+ fill.style.width = dl.bytes_total ? `${Math.min(99, 100 * dl.bytes_done / dl.bytes_total)}%` : m ? `${Math.min(99, parseInt(m[1]))}%` : '0%';+ last.textContent = dl.bytes_total ? `${(dl.bytes_done / 1e9).toFixed(2)} of about ${(dl.bytes_total / 1e9).toFixed(2)} GB · ${dl.last_line || 'Connecting'} ` : dl.last_line || 'Connecting';+ setActions(`<button class="danger" onclick="cancelDownload()">Cancel</button>`);return;}- // ----- Base missing — hard block, the panel can't render anything --------- if (!baseOk) {+ // Image and song readiness belong to their own forms. Falling through to+ // the video card's quiet state would falsely say all weights are installed.+ if (currentMode === 'image' || document.body.dataset.workflow === 'audio') {+ card.style.display = 'none';+ setActions('');+ return;+ }++ // ----- Offer the active video model on a first run ----------------------+ if (!baseOk && currentMode !== 'image' && document.body.dataset.engine !== 'h3' && document.body.dataset.workflow !== 'audio') {card.style.display = '';- card.classList.add('state-missing');+ card.classList.add('state-warn');icon.innerHTML = '<svg class="ph" aria-hidden="true"><use href="#ph-warning-fill"/></svg>';- title.textContent = 'Base models needed before you can render';+ title.textContent = 'Get the video model';// Mac app: the app is fetching the base set itself (app_models.json).// Say so and offer no second Download - two fetchers on one pack is not// safe, and the server refuses it anyway. Absent under Pinokio.@@ -120,11 +144,10 @@ function updateModelsCard(s) {fill.style.width = `${Math.min(100, Math.round(100 * appDl.done_bytes / appDl.total_bytes))}%`;last.textContent = '';}- actions.innerHTML = '';+ setActions('');return;}const missingList = s.base_missing || [];- const missing = missingList.length;// REGISTRY-DRIVEN, for the ACTIVE generation. `base_missing` is already// version-scoped, so offering `q4` here downloaded 2.3's base to fix a// broken 2.5 install: 20 GB spent, still broken.@@ -140,20 +163,13 @@ function updateModelsCard(s) {|| missingList.some(f => String(f).includes(p.local_dir));const needBase = packNeeded(pBase), needEnc = packNeeded(pEnc);const parts = [];- if (needBase) parts.push(`${escapeHtml(pBase ? pBase.name : 'The base model')} (~${escapeHtml(pBase ? pBase.size : '?')})`);- if (needEnc) parts.push(`${escapeHtml(pEnc ? pEnc.name : 'its text encoder')} (~${escapeHtml(pEnc ? pEnc.size : '?')})`);- sub.innerHTML = (parts.join(' and ') || 'A required model')- + ` ${parts.length > 1 ? 'are' : 'is'} required. Click below — downloads resume if interrupted.${- // VC-10: was always "(N files left)" — grammatically wrong for the- // single-file case the review actually hit ("1 files left").- missing ? ` <span style="color:var(--muted)">(${missing} file${missing === 1 ? '' : 's'} left)</span>` : ''- }`;- // A mirrored pack does not need `hf` at all — the same per-row question the- // Models modal already asks, answered from the same registry field.- const baseNeedsHf = pBase ? (pBase.needs_hf !== false) : true;- actions.innerHTML = ((s.hf_available ?? true) || !baseNeedsHf)- ? `<button onclick="startDownload('${escapeHtml(pBase ? pBase.key : 'q4')}')">Download ${escapeHtml(pBase ? pBase.name : 'base')} (${escapeHtml(pBase ? pBase.size : '?')})</button>`- : `<button disabled title="${escapeHtml(distText('hf binary not found — reinstall via Pinokio', 'hf not found — quit Phosphene and open it again to rerun setup'))}">hf missing</button>`;+ if (needBase) parts.push(`${pBase ? pBase.name : 'The base model'} (~${pBase ? pBase.size : '?'})`);+ if (needEnc) parts.push(`${pEnc ? pEnc.name : 'its text encoder'} (~${pEnc ? pEnc.size : '?'})`);+ sub.textContent = 'Recommended for your first video. ' + parts.join(' and ')+ + '. Download once, then make videos locally. Images and songs have their own models.';+ setActions(`<button onclick="downloadFirstVideo()">Download video models</button>`+ + `<button class="ghost" onclick="setMode('image')">Try images</button>`+ + `<button class="ghost" onclick="openModelsModal()">All models</button>`);return;}@@ -205,9 +221,9 @@ function updateModelsCard(s) {+ (missing && missing < 8? ` <span style="color:var(--muted)">(${missing} files left — partial install detected)</span>` : '');const wantNeedsHf = (want.needs_hf !== false);- actions.innerHTML = ((s.hf_available ?? true) || !wantNeedsHf)+ setActions(((s.hf_available ?? true) || !wantNeedsHf)? `<button onclick="startDownload('${escapeHtml(want.key)}')">Download ${escapeHtml(want.name)} (${escapeHtml(want.size)})</button>`- : `<button disabled>hf missing</button>`;+ : `<button disabled>hf missing</button>`);return;}@@ -261,7 +277,7 @@ function updateModelsCard(s) {sub.textContent = built? 'Its compact engine just needs building — no download.': 'Needs its compact (Q8) engine, built during install.';- actions.innerHTML = `<button onclick="openH3InstallCard()">Set up H3 →</button>`;+ setActions(`<button onclick="openH3InstallCard()">Set up H3 →</button>`);return;}if (h3s.capable && !h3s.available && h3s.repairable) {@@ -283,7 +299,7 @@ function updateModelsCard(s) {? 'H3’s code checkout is missing or incomplete. Restoring it takes ~1 '+ 'minute and <b>re-downloads nothing</b>.': 'Missing: ' + escapeHtml(_miss[0] || 'see the repair card') + '.';- actions.innerHTML = `<button onclick="openH3InstallCard()">How to repair H3</button>`;+ setActions(`<button onclick="openH3InstallCard()">How to repair H3</button>`);return;}@@ -296,7 +312,7 @@ function updateModelsCard(s) {const allReady = baseOk && q8Ok;if (allReady) {card.style.display = 'none';- actions.innerHTML = '';+ setActions('');return;}// ----- Partial-OK quiet state ---------------------------------------------@@ -304,7 +320,11 @@ function updateModelsCard(s) {// picked a Q8-needing mode — gentle nudge in neutral colours, dismissible.if (dismissed) { card.style.display = 'none'; return; }card.style.display = '';- card.classList.add('dismissible');+ // `is-ready`: nothing is wrong here, so it is ONE quiet line under the Model+ // picker, never a card that competes with it (owner, 5 Nov 2026: on rc.2 this+ // card sat above "Model" and pushed it down). The × stays and the dismissal+ // persists (settings.models_card_dismissed), so once closed it stays closed.+ card.classList.add('dismissible', 'is-ready');icon.innerHTML = '<svg class="ph" aria-hidden="true"><use href="#ph-check-bold"/></svg>';// SYS-17: "Models ready · 3/12" read as "25% ready" -- the denominator// counts every optional add-on, most of which nobody needs. Also@@ -319,7 +339,7 @@ function updateModelsCard(s) {? `Ready to render ✓ · ${addons} add-on${addons === 1 ? '' : 's'} available`: 'Ready to render ✓';sub.textContent = 'All the weights this Mac renders with are installed.';- actions.innerHTML = '';+ setActions('');}// Persist the "user dismissed the models card" flag. POSTs to /settings@@ -746,76 +766,43 @@ async function refreshStorageSection() {const foot = document.getElementById('storageFoot');if (!sec || !list || !foot) return;let d;- try { d = await api('/storage'); } catch (e) { sec.style.display = 'none'; return; }+ try { d = await api('/storage'); } catch (e) { sec.style.display = ''; foot.textContent = 'Could not read storage. Close Settings and try again.'; return; }const rows = d.rows || [];- // Rule 5: nothing to reclaim -> the section and its <h3> are both absent. A- // single-generation install never sees it.- // GATED ON WHAT CAN ACTUALLY BE RECLAIMED, not on row count. Rule 5 says a- // single-generation install never sees this section — and it didn't, on the- // box §7c was proved on, which happened to hold q8 + the add-on. On a genuine- // fresh install /storage returns exactly ONE row: Gemma 3, removable false,- // 0 GB reclaimable — and `rows.length` is 1, so the whole section rendered,- // <h3> and all, to say that nothing can be freed. A "kept, and here is why"- // row earns its place BESIDE something actionable; on its own it is a section- // about nothing.- const actionable = rows.filter(r => r.removable && (r.bytes || 0) > 0);- if (!actionable.length) { sec.style.display = 'none'; return; }sec.style.display = '';- list.innerHTML = rows.map(r => {- // A KEPT FILE IS NOT A PROBLEM. `partial` painted an amber border and- // #ph-warning-fill on a perfectly healthy Gemma 3, under a heading about- // weights this build does not render with — three signals of trouble on a- // file that is working exactly as intended. A lock reads as "deliberate";- // a warning triangle reads as "you have a problem".- const icon = r.removable- ? '<svg class="ph" aria-hidden="true"><use href="#ph-check-bold"/></svg>'- : '<svg class="ph" aria-hidden="true"><use href="#ph-info"/></svg>';- const btn = r.removable- ? `<button class="ghost" onclick="removeStoragePack('${escapeHtml(r.key)}')">Remove</button>`- : '';- return `- <li class="${r.removable ? 'ready' : 'kept'}">- <span class="icon">${icon}</span>- <div class="meta">- <span class="ttl">${escapeHtml(r.name)}<span style="float:right">${escapeHtml(r.size)}</span></span>- <span class="sub">${escapeHtml((r.paths || []).join(' + '))}</span>- <span class="sub">${escapeHtml(r.note)}</span>- </div>- ${btn}- </li>`;- }).join('');- foot.innerHTML = escapeHtml(- `${d.reclaimable_label} reclaimable · ${d.free_label} free on this disk`)- + `<br>Removing a pack never touches <code>mlx_outputs/</code> — your clips stay where they are.`;+ list.innerHTML = rows.map(r => `+ <li class="kept"><div class="meta">+ <span class="ttl">${escapeHtml(r.name)} (${escapeHtml(r.size)})</span>+ <span class="sub">${escapeHtml((r.paths || []).join(' + '))}</span>+ <span class="sub">${escapeHtml(r.note)}</span>+ </div></li>`).join('');+ if (!rows.length) list.textContent = d.message || 'No model folders found.';+ foot.textContent = d.message || `${d.reclaimable_label} superseded · ${d.free_label} free on this disk`;+ const button = document.getElementById('storageCleanup');+ button.textContent = `Free up ${d.reclaimable_label}`;+ button.disabled = !d.reclaimable;+}-// Native confirm(), the house rule, and it names the size AND the consequence.-// No modal: this dialog is a .models-modal with no focus trap (see the spec's-// §11-D), and stacking a custom confirm inside it would be a worse experience-// than the browser's own.-async function removeStoragePack(key) {- let d;- try { d = await api('/storage'); } catch (e) { return; }- const row = (d.rows || []).find(r => r.key === key);- if (!row) return;- const consequence = row.note ? row.note + '\n' : '';- if (!confirm(`Remove ${row.name}?\n\n`- + `Frees ${row.size} from mlx_models/.\n`- + consequence- + `Nothing you have already rendered is affected.`)) return;- let res;+async function cleanupSupersededModels() {+ const button = document.getElementById('storageCleanup');+ const returnFocus = document.activeElement === button;+ button.disabled = true;try {- res = await api('/models/remove', 'POST',- new URLSearchParams({ repo_key: key }));+ const d = await api('/storage');+ if (!d.reclaimable) return;+ const folders = d.rows.filter(r => r.superseded_bytes).map(r => r.name).join('\n');+ if (!confirm(`Free up ${d.reclaimable_label}?\n\nRemove superseded model files in:\n${folders}\n\nThis cannot be undone. Current models, outputs and LoRAs stay on disk.`)) return;+ const res = await api('/storage/cleanup', 'POST', new URLSearchParams({+ confirmed: 'yes', confirmation: d.confirmation+ }));+ phosToast(`Freed ${res.freed_label}.`, { kind: 'success' });} catch (e) {phosToast(String((e && e.message) || e), { kind: 'danger', duration: 6000 });- return;- }- phosToast(`Removed ${res.label} — ${res.freed_label} free.`,- { kind: 'success', duration: 6000 });- refreshStorageSection();- if (document.getElementById('modelsModal').style.display !== 'none') {- refreshModelsModal({ silent: true });+ } finally {+ await refreshStorageSection();+ if (returnFocus && document.activeElement === document.body) {+ (button.disabled ? document.querySelector('#settingsModal button') : button)?.focus();+ }}}@@ -1580,7 +1567,38 @@ _applyHdrPillAvailability();// ---- published to the page --------------------------------------------------// Inline handlers in the markup and the other files resolve these through// the global scope; everything NOT listed here is private to this module.+// Every hidden -> visible visit starts the CSS entrance once. Status polls and+// repeated open calls leave it alone. The modal scaffold owns Escape and Tab.+let proReturnFocus = null;+function openProModal(opener = null) {+ const modal = document.getElementById('proModal');+ if (modal.style.display !== 'none') return;+ proReturnFocus = opener || document.activeElement;+ modal.style.display = 'flex';+ modal.querySelector('button').focus();+}+// The PRO mark: one GET /pro/status at boot. Free is the default state of the page; nothing nags.+async function proStatusRefresh() {+ let st = null;+ try { const r = await fetch('/pro/status', { cache: 'no-store' }); if (r.ok) st = await r.json(); } catch (_) { st = null; }+ const mark = document.getElementById('proMark');+ const active = !!(st && st.active);+ document.documentElement.dataset.pro = active ? (st.plan || 'pro') : '';+ // The header "Pro" door is for Free in Pinokio only: a Pro member sees the PRO mark by the logo+ // instead, and the Mac app has its own Pro chip in the top bar.+ const btn = document.getElementById('proBtn');+ if (btn) btn.hidden = active || isMacApp();+ if (mark) { mark.hidden = !active; mark.textContent = ''; const d = document.createElement('span'); d.className = 'pro-mark-dash'; d.setAttribute('aria-hidden', 'true'); mark.append(d, active && st.label ? st.label.toUpperCase() : 'PRO'); }+ return st;+}+function closeProModal() {+ document.getElementById('proModal').style.display = 'none';+ if (proReturnFocus && proReturnFocus.isConnected) proReturnFocus.focus();+}+Object.assign(globalThis, {+ downloadFirstVideo,+ openProModal, closeProModal, proStatusRefresh,pushSubscription, pushToggle, pushTest,appearanceGet, applyAppearance, setAppearance,renderNotifyState, toggleNotify, askNotifyPermission,@@ -1591,5 +1609,15 @@ Object.assign(globalThis, {clearToken, closeSettingsModal, applySettings, _applyHdrPillAvailability,// inline-handler targets: generated markup resolves these through the// global scope (the v4.9.0 regression, PR #69)- removeStoragePack,+ cleanupSupersededModels,});++async function downloadFirstVideo() {+ try {+ const response = await fetch('/models/video', {method: 'POST'});+ const result = await response.json();+ if (!response.ok) throw new Error(result.error || 'Download did not start. Try again.');+ phosToast('Video models queued. Progress appears here.');+ poll();+ } catch (e) { phosToast(e.message || String(e), {kind: 'danger'}); }+}diff --git a/webapp/js/shortcuts.js b/webapp/js/shortcuts.jsindex 0372fb5..2f7a69b 100644--- a/webapp/js/shortcuts.js+++ b/webapp/js/shortcuts.js@@ -394,6 +394,7 @@ function _scVisible(el) {// The same list health.js's Esc scaffold closes, plus the Docs.function shortcutTopModal() {+ if (typeof window.phosTopModal === 'function') return window.phosTopModal();const sel = '.models-modal, .model-browser-modal, .expand-lightbox, .modal-bg.show';const open = Array.from(document.querySelectorAll(sel)).filter(el =>el.classList.contains('open') || el.classList.contains('show')@@ -417,6 +418,7 @@ function shortcutFocusSearch() {}function shortcutGenerateFrom(t) {+ if (shortcutTopModal()) return false;const id = t && t.id;if (id === 'prompt') {const form = document.getElementById('genForm');diff --git a/webapp/js/speech.js b/webapp/js/speech.jsnew file mode 100644index 0000000..f32ffc2--- /dev/null+++ b/webapp/js/speech.js@@ -0,0 +1,391 @@+// webapp/js/speech.js — Audio → Speech: text to speech in a preset voice or a+// saved character's voice (speech_engine.py on the server, docs/SPEECH.md).+//+// The pane, its install card, the voice picker and Generate. A finished line+// lands in Outputs like any WAV, so "Use this audio for… → Lip-sync" works on+// it from the gallery too; the pane also offers it right under Generate.+//+// SAFETY: a cloned voice (a character's sample or a clip you add) needs the+// "this is my voice / I have permission" box ticked. The server refuses a+// clone job without it, so the box is the explanation, not the guard.+//+// Everything a handler in the markup calls is published at the bottom.++const SPEECH = {+ kind: 'preset',+ voices: null, // /speech/voices payload+ clipPath: null, // uploaded reference clip (server path)+ clipName: null,+ lastJobId: null, // the job this pane queued last+ lastShown: null, // the output path the pane is showing+ busy: false,+ estTimer: null,+ estReq: 0,+};+let speechInstall = { state: 'idle', active: false };+let speechInstallSeenActive = false;+let speechStatusCache = null;++function _sel(id) { return document.getElementById(id); }+function _sesc(s) { return String(s == null ? '' : s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); }++function speechInit() {+ speechStatusCache = BOOT.speech || null;+ speechInstall = BOOT.speech_install || speechInstall;+ try {+ const k = localStorage.getItem('phos_speech_kind');+ if (['preset', 'character', 'clip'].includes(k)) SPEECH.kind = k;+ } catch (_) {}+}++// Called when the Speech pane becomes visible (characters.js decides which+// Audio pane shows). Loads the voice list once, then on every show refreshes+// the characters (a character trained since may now have a voice).+async function speechShow() {+ speechRenderInstall();+ try {+ const r = await fetch('/speech/voices');+ if (r.ok) SPEECH.voices = await r.json();+ } catch (_) {}+ speechRenderVoices();+ speechFormChanged();+}++function speechRenderVoices() {+ const v = SPEECH.voices || {};+ const sel = _sel('speechVoice');+ if (sel && v.presets && !sel.options.length) {+ let saved = 'ryan';+ try { saved = localStorage.getItem('phos_speech_voice') || 'ryan'; } catch (_) {}+ sel.innerHTML = v.presets.map(p =>+ `<option value="${_sesc(p.id)}"${p.id === saved ? ' selected' : ''}>${_sesc(p.label)} — ${_sesc(p.sub)}${p.native !== 'English' ? ` (${_sesc(p.native)} accent)` : ''}</option>`).join('');+ }+ const pills = _sel('speechStylePills');+ if (pills && v.styles && !pills.children.length) {+ pills.innerHTML = v.styles.map(s =>+ `<button type="button" class="pill-btn${s.id === 'natural' ? ' active' : ''}" data-value="${_sesc(s.id)}" title="${_sesc(s.instruct || 'The voice as it is')}" onclick="speechStylePick(this)">${_sesc(s.label)}</button>`).join('');+ }+ const ch = _sel('speechCharacter');+ if (ch) {+ const keep = ch.value;+ const list = v.characters || [];+ ch.innerHTML = list.length+ ? list.map(c => `<option value="${_sesc(c.id)}">${_sesc(c.name)}</option>`).join('')+ : '<option value="">No character has a voice sample yet</option>';+ if (keep && list.some(c => c.id === keep)) ch.value = keep;+ // A rebuilt list that lands on a different character must never carry the+ // confirmation given for the previous one (programmatic selection fires no+ // change event).+ if (ch.value !== keep) { speechConsentReset(); speechLoadCharacterWords(); }+ const hint = _sel('speechCharacterHint');+ if (hint) hint.textContent = list.length+ ? "Uses the voice sample from this character's training."+ : "Add a voice sample when training a character in Train, or use a clip here.";+ }+ const lang = _sel('speechLanguage');+ if (lang && v.languages && !lang.options.length) {+ lang.innerHTML = v.languages.filter(l => l !== 'auto').map(l =>+ `<option value="${_sesc(l)}"${l === 'english' ? ' selected' : ''}>${_sesc(l[0].toUpperCase() + l.slice(1))}</option>`).join('');+ }+ document.querySelectorAll('#speechKindSeg .seg-btn').forEach(b => {+ const on = b.dataset.value === SPEECH.kind;+ b.classList.toggle('active', on);+ b.setAttribute('aria-pressed', String(on));+ });+}++// The voice-owner confirmation belongs to ONE voice: any change of voice+// clears it, and it is never stored, so it is asked again for a new voice.+function speechConsentReset() {+ const c = _sel('speechConsent');+ if (c) c.checked = false;+}++// A character's sample never changes, so the words typed for it are kept+// (per browser) and come back the next time that character is picked.+function _speechWordsKey() { return 'phos_speech_words_' + ((_sel('speechCharacter') || {}).value || ''); }+function speechLoadCharacterWords() {+ if (SPEECH.kind !== 'character') return;+ let w = '';+ try { w = localStorage.getItem(_speechWordsKey()) || ''; } catch (_) {}+ _sel('speechClipText').value = w;+}+function speechClipTextChanged() {+ if (SPEECH.kind === 'character') {+ try { localStorage.setItem(_speechWordsKey(), _sel('speechClipText').value || ''); } catch (_) {}+ }+ speechFormChanged();+}++function speechCharacterChanged() {+ speechConsentReset();+ speechLoadCharacterWords();+ speechFormChanged();+}++function speechKindPick(btn) {+ if (SPEECH.kind !== btn.dataset.value) {+ speechConsentReset();+ _sel('speechClipText').value = '';+ }+ SPEECH.kind = btn.dataset.value;+ speechLoadCharacterWords();+ try { localStorage.setItem('phos_speech_kind', SPEECH.kind); } catch (_) {}+ speechRenderVoices();+ speechFormChanged();+}++function speechStylePick(btn) {+ _sel('speechStyle').value = btn.dataset.value;+ btn.parentElement.querySelectorAll('.pill-btn').forEach(b => {+ b.classList.toggle('active', b === btn);+ b.setAttribute('aria-pressed', String(b === btn));+ });+ speechFormChanged();+}++function speechRenderClip() {+ const slot = _sel('speechClipSlot');+ if (!slot) return;+ slot.innerHTML = SPEECH.clipPath+ ? `<div class="ss-tag">${_sesc(SPEECH.clipName || SPEECH.clipPath.split('/').pop())}</div><div class="hint">Click to replace</div>`+ : '<div class="hint">Add 5–20 seconds of clear speech from one person, no music (WAV, MP3, M4A or FLAC)</div>';+}++async function speechClipUpload(files) {+ const file = files && files[0];+ if (!file) return;+ const status = _sel('speechStatus');+ if (status) status.textContent = 'Uploading the clip…';+ try {+ const fd = new FormData();+ fd.append('audio', file);+ const r = await fetch('/upload', { method: 'POST', body: fd });+ const data = await r.json();+ if (!r.ok || data.error) throw new Error(data.error || ('HTTP ' + r.status));+ SPEECH.clipPath = data.path;+ SPEECH.clipName = file.name;+ speechConsentReset();+ if (status) status.textContent = '';+ } catch (e) {+ if (status) status.textContent = 'Clip upload failed: ' + (e.message || 'unknown');+ }+ speechFormChanged();+}++function speechFormChanged() {+ const kind = SPEECH.kind;+ const presetRow = _sel('speechPresetRow');+ if (!presetRow) return;+ presetRow.hidden = kind !== 'preset';+ _sel('speechCharacterRow').hidden = kind !== 'character';+ _sel('speechClipRow').hidden = kind !== 'clip';+ const words = _sel('speechClipText');+ words.hidden = kind === 'preset';+ words.placeholder = kind === 'character'+ ? "Optional: type the words in this character's voice sample, for a closer match"+ : "Optional: type the clip's words for a closer voice match";+ _sel('speechConsentRow').hidden = kind === 'preset';+ _sel('speechCloneHint').hidden = kind === 'preset';+ speechRenderClip();+ const speed = Number(_sel('speechSpeed').value || 1);+ _sel('speechSpeedVal').textContent = speed.toFixed(2) + '×';+ const lang = (_sel('speechLanguage') || {}).value || 'english';+ const seed = Number((_sel('speechSeed') || {}).value || -1);+ const sum = _sel('speechAdvancedSummary');+ if (sum) sum.textContent = `${lang[0].toUpperCase() + lang.slice(1)} · ${seed >= 0 ? 'seed ' + seed : 'random seed'}`;+ try { if (_sel('speechVoice').value) localStorage.setItem('phos_speech_voice', _sel('speechVoice').value); } catch (_) {}+ const st = speechStatusCache || {};+ const ready = !!st.available;+ const pane = _sel('speechPane');+ if (pane) pane.classList.toggle('speech-locked', !ready);+ const btn = _sel('speechGenBtn');+ const text = (_sel('speechText').value || '').trim();+ const needsConsent = kind !== 'preset' && !_sel('speechConsent').checked;+ const noVoice = (kind === 'character' && !_sel('speechCharacter').value) || (kind === 'clip' && !SPEECH.clipPath);+ const installing = !!(speechInstall && speechInstall.active);+ if (btn) {+ btn.disabled = SPEECH.busy || installing || (ready && (!text || needsConsent || noVoice));+ btn.textContent = ready ? 'Generate' : installing ? 'Installing…' : `Install Speech (~${st.install_gb || 6} GB)`;+ btn.title = !ready ? 'Downloads the voice models once, then Generate works offline'+ : !text ? 'Write the line first' : needsConsent ? 'Tick the voice confirmation first'+ : noVoice ? (kind === 'clip' ? 'Add a clip of the voice first' : 'Pick a character with a voice sample') : '';+ }+ speechEstimateSoon(text, speed);+}++// The server prices the line (rule: the browser computes no estimate of its+// own). Debounced; a stale answer is dropped.+function speechEstimateSoon(text, speed) {+ clearTimeout(SPEECH.estTimer);+ const fit = _sel('speechFit');+ const est = _sel('speechEstimate');+ if (!text) { if (fit) fit.textContent = ''; if (est) est.textContent = ''; return; }+ SPEECH.estTimer = setTimeout(async () => {+ const req = ++SPEECH.estReq;+ try {+ const r = await fetch(`/speech/estimate?speed=${encodeURIComponent(speed)}&text=${encodeURIComponent(text.slice(0, 2000))}`);+ const e = await r.json();+ if (req !== SPEECH.estReq) return;+ if (fit) {+ fit.textContent = `About ${e.audio_sec} s of speech.` + (e.lipsync_fits ? ' Fits one lip-sync clip.'+ : ` One lip-sync clip fits about ${(speechStatusCache || {}).lipsync_max_sec || 10} s. Split your script into shorter parts.`);+ fit.classList.toggle('warn', !e.lipsync_fits);+ }+ if (est) est.textContent = (speechStatusCache || {}).available ? `≈ ${e.eta_sec} s · estimate` : '';+ } catch (_) {}+ }, 250);+}++// ---- install card ---------------------------------------------------------++function speechRenderInstall() {+ const el = _sel('speechInstallPanel');+ if (!el) return;+ const st = speechStatusCache || {};+ const inst = speechInstall || {};+ el.hidden = !!st.available && !inst.active;+ if (el.hidden) return;+ const size = `~${st.install_gb || 6} GB`;+ let html;+ if (st.capable === false) {+ html = `<p class="mi-lead">Speech needs about ${_sesc(st.min_ram_gb || 16)} GB of unified memory, so it can't run on this Mac.</p>`;+ } else if (inst.active) {+ const pct = inst.percent || 1;+ const bytes = inst.bytes_total ? ` · ${(inst.bytes_done / 1e9).toFixed(1)} of ${(inst.bytes_total / 1e9).toFixed(1)} GB` : '';+ html = `<p class="mi-lead"><b>${inst.state === 'stopping' ? 'Stopping…' : 'Installing Speech…'}</b> ${pct}%</p>+ <div class="progress-bar"><div class="fill" style="width:${pct}%"></div></div>+ <p class="mi-sub">Step ${(inst.step_index || 0) + 1} of ${inst.steps || 4} · ${_sesc(inst.step_label || '')}${bytes}</p>+ <p class="mi-line">${_sesc(inst.last_line || '')}</p>+ <div class="mi-actions"><button type="button" class="danger" onclick="speechInstallStop()" ${inst.state === 'stopping' ? 'disabled' : ''}>Stop</button>+ <span class="mi-note">Keep working. Speech is ready to use when the install finishes.</span></div>`;+ } else {+ const failed = inst.state === 'failed' && inst.error;+ const stopped = inst.state === 'stopped';+ html = `<p class="mi-lead">Turn a script into speech with nine preset voices, your character's voice or a clip you add. Download the engine and voice models once (${size}). Interrupted downloads resume. After installation, Speech works offline.</p>+ ${failed ? `<p class="mi-error">${_sesc(inst.error)}</p>` : ''}+ ${stopped ? '<p class="mi-sub">Install stopped. Click again to resume where it left off.</p>' : ''}+ <div class="mi-actions"><button type="button" class="primary" onclick="speechInstallStart()">${failed || stopped ? 'Resume install' : 'Install Speech'} (${size})</button></div>+ <p class="mi-note">Needs at least ${_sesc(st.min_ram_gb || 16)} GB of unified memory and about ${Math.ceil((st.install_gb || 6) + 2)} GB of free disk.</p>`;+ }+ el.innerHTML = html;+}++async function speechInstallStart() {+ try {+ const r = await fetch('/speech/install', { method: 'POST', body: new URLSearchParams({}) });+ const res = await r.json().catch(() => ({}));+ if (!r.ok && !res.install) throw new Error(res.error || 'Could not start the install');+ if (res.started || res.install) speechInstall = { ...speechInstall, active: true, state: 'running', percent: 1, step_index: 0 };+ } catch (e) {+ speechInstall = { state: 'failed', active: false, error: e.message || String(e) };+ }+ speechRenderInstall();+ speechFormChanged();+ if (typeof poll === 'function') poll();+}++async function speechInstallStop() {+ try { await fetch('/speech/install/stop', { method: 'POST' }); } catch (_) {}+ if (typeof poll === 'function') poll();+}++// /status, every poll: install progress, availability, and the line this+// pane queued (shown under Generate once it is written).+function speechStatusUpdate(s) {+ if (!s) return;+ if (s.speech) speechStatusCache = s.speech;+ if (s.speech_install) {+ const was = speechInstallSeenActive;+ speechInstall = s.speech_install;+ if (speechInstall.active) speechInstallSeenActive = true;+ else if (was) {+ speechInstallSeenActive = false;+ if (speechInstall.state === 'done' && typeof phosToast === 'function') {+ phosToast('Speech is ready. Write a script and click Generate.', { kind: 'success' });+ }+ }+ }+ const pane = _sel('speechPane');+ if (!pane || pane.hidden) return;+ speechRenderInstall();+ speechFormChanged();+ if (SPEECH.lastJobId && Array.isArray(s.history)) {+ const j = s.history.find(x => x.id === SPEECH.lastJobId);+ if (j && j.status === 'done' && j.output_path && j.output_path !== SPEECH.lastShown) speechShowLast(j.output_path);+ if (j && ['failed', 'stopped', 'cancelled'].includes(j.status)) {+ _sel('speechStatus').textContent = j.status === 'failed' ? (j.error || 'Speech failed.') : 'Stopped. Nothing was saved.';+ SPEECH.lastJobId = null;+ }+ }+}++function speechShowLast(path) {+ SPEECH.lastShown = path;+ const box = _sel('speechLast');+ if (!box) return;+ const o = (typeof findOutputByPath === 'function') ? findOutputByPath(path) : null;+ const url = (o && o.url) || ('/file?path=' + encodeURIComponent(path));+ const attr = _sesc(JSON.stringify(path));+ box.innerHTML = `<audio controls preload="metadata" src="${_sesc(url)}"></audio>+ <div class="actions">+ <button type="button" class="primary" onclick="speechLipSync(${attr})">Lip-sync it</button>+ <button type="button" class="ghost-btn" aria-haspopup="menu" onclick="openAudioUseMenu(event, ${attr})">Use this audio for…</button>+ </div>`;+ box.hidden = false;+ _sel('speechStatus').textContent = 'Done. Also saved in Outputs.';+}++function speechLipSync(path) {+ if (typeof audioUseApply === 'function') audioUseApply(path, 'lipsync');+ const scene = _sel('audioStudioSceneSound');+ if (scene) scene.checked = true;+ // This is already clean speech; don't run source separation on it.+ const stem = _sel('audioStudioStemAuto');+ if (stem) stem.checked = false;+ if (typeof audioStudioRenderSeparator === 'function') audioStudioRenderSeparator();+ if (typeof audioStudioDurationChanged === 'function') audioStudioDurationChanged();+}++async function speechGenerate() {+ const st = speechStatusCache || {};+ if (!st.available) { speechInstallStart(); return; }+ const status = _sel('speechStatus');+ const kind = SPEECH.kind;+ const fd = new FormData();+ fd.set('mode', 'speech');+ fd.set('speech_text', _sel('speechText').value || '');+ fd.set('speech_voice_kind', kind);+ fd.set('speech_voice', kind === 'preset' ? _sel('speechVoice').value : '');+ fd.set('speech_character', kind === 'character' ? _sel('speechCharacter').value : '');+ fd.set('speech_ref_audio', kind === 'clip' ? (SPEECH.clipPath || '') : '');+ fd.set('speech_ref_text', kind !== 'preset' ? (_sel('speechClipText').value || '') : '');+ fd.set('speech_style', _sel('speechStyle').value || 'natural');+ fd.set('speech_instruct', kind === 'preset' ? (_sel('speechInstruct').value || '') : '');+ fd.set('speech_speed', _sel('speechSpeed').value || '1');+ fd.set('speech_language', (_sel('speechLanguage') || {}).value || 'english');+ fd.set('speech_seed', (_sel('speechSeed') || {}).value || '-1');+ if (kind !== 'preset' && _sel('speechConsent').checked) fd.set('speech_voice_consent', '1');+ SPEECH.busy = true;+ speechFormChanged();+ status.textContent = 'Queueing…';+ try {+ const r = await fetch('/queue/add', { method: 'POST', body: new URLSearchParams(fd) });+ const res = await r.json();+ if (!r.ok || res.error) throw new Error(res.error || 'Could not queue the line');+ SPEECH.lastJobId = res.id;+ status.textContent = "Queued. Your speech plays here when it's ready.";+ if (typeof setMainOutputsFilter === 'function') setMainOutputsFilter('audio');+ if (typeof poll === 'function') await poll();+ } catch (e) {+ status.textContent = e.message || String(e);+ } finally {+ SPEECH.busy = false;+ speechFormChanged();+ }+}++Object.assign(globalThis, {+ speechInit, speechShow, speechKindPick, speechCharacterChanged, speechClipTextChanged, speechStylePick, speechClipUpload, speechFormChanged,+ speechInstallStart, speechInstallStop, speechStatusUpdate, speechGenerate, speechLipSync,+});diff --git a/webapp/js/stage.js b/webapp/js/stage.jsindex d043140..630d647 100644--- a/webapp/js/stage.js+++ b/webapp/js/stage.js@@ -61,7 +61,7 @@ function imgStudioUpdateValidity() {// someone who came here to make a FIRST picture from words (no photo// to drop yet), that's a dead end with no next step. Names the// engine that actually does this.- invalidReason = 'This engine composes against a photo — drop one into a slot above, or switch Engine (below) to "Ideogram 4" to make a picture from words alone.';+ invalidReason = 'This engine composes against a photo — drop one into a slot above, or pick FLUX.2, FLUX 3 or Ideogram 4 in Model (top of the column) to make a picture from words alone.';}if (!invalidReason && flux3 && _IMG_HOST_RAM_GB < 32) {const aspect = (document.getElementById('imgStudioAspect') || {}).value || '';@@ -350,6 +350,12 @@ async function imgStudioRefreshEngineStatus() {// it as soon as engine status comes back so the Generate button can// refuse upfront on a missing add-on (issue #12).if (typeof imgStudioUpdateValidity === 'function') imgStudioUpdateValidity();+ // The top Model picker reads the same status (a model no version of which+ // fits this Mac is dimmed there), and the memory fit above may have moved+ // the pick to Auto: redraw it.+ if (document.body.dataset.workflow === 'studio' && typeof renderEngineSwitch === 'function') {+ try { renderEngineSwitch(); } catch (_) {}+ }}// Open an external link reliably. A plain target="_blank" anchor does nothingdiff --git a/webapp/style/panel.css b/webapp/style/panel.cssindex 9fc485d..3facb3a 100644--- a/webapp/style/panel.css+++ b/webapp/style/panel.css@@ -28,17 +28,8 @@which is why rows in the rail and the drafts panel came out a pixeloff each other. Anything new picks a rung; nothing declares its own. */--ctl-h: 32px; --ctl-h-sm: 28px; --ctl-h-lg: 36px;- /* SYS-24: --fs-2xs was 10px — one rung below the 11px floor an- accessibility pass set as the minimum for any text carrying- information (report_system.txt: 36 of 120 visible text nodes were- under 11px, 18 under 10px, and panel.css itself had 105 literal- sub-11px font-size declarations, since floored to 11px directly —- see the sweep below). Raising the token to match --fs-xs, rather- than hunting the 48 call sites that reference it, keeps the- five-rung type scale's names intact (nothing renamed --fs-2xs to- --fs-xs) while guaranteeing every current AND future user of the- token clears the floor. */- --fs-2xs: 11px; --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px;+ /* Working UI: metadata 13px, labels 14px, body/inputs 15px. */+ --fs-2xs: 13px; --fs-xs: 13px; --fs-sm: 14px; --fs-md: 15px;--fs-lg: 15px;--t-fast: 120ms cubic-bezier(.2,.8,.2,1);--t-base: 180ms cubic-bezier(.2,.8,.2,1);@@ -160,7 +151,7 @@background: rgba(240,185,64,0.18);color: var(--warning, #f0b940);border: 1px solid rgba(240,185,64,0.55);- font-size: 11px; font-weight: 700;+ font-size: 13px; font-weight: 700;letter-spacing: 0.12em;cursor: help;}@@ -185,12 +176,12 @@background: rgba(140,120,255,0.16);color: #b6a4ff;border: 1px solid rgba(140,120,255,0.45);- font-size: 11px; font-weight: 700;+ font-size: 13px; font-weight: 700;letter-spacing: 0.06em;}- .tag { color: var(--muted); font-size: 11px; }+ .tag { color: var(--muted); font-size: 13px; }.pill {- padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500;+ padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);white-space: nowrap;}@@ -229,7 +220,7 @@backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px);color: #ffd9d6;- font: 12.5px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;+ font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;letter-spacing: 0.1px;animation: panel-offline-in 0.28s cubic-bezier(.2,.8,.2,1);}@@ -259,7 +250,7 @@}.panel-offline-banner .hint {color: var(--muted);- font-size: 11px;+ font-size: 13px;margin-left: 4px;}/* Reconnected — same banner, swapped to a calm success colorway,@@ -303,7 +294,7 @@box-shadow: 0 28px 70px rgba(0,0,0,.6);}#phModalKicker {- font-size: 11px; font-weight: 650; letter-spacing: .08em;+ font-size: 13px; font-weight: 650; letter-spacing: .08em;text-transform: uppercase; color: #f0b940; margin-bottom: 8px;}#phModalKicker.is-broadcast { color: #5eeaff; }@@ -361,7 +352,7 @@.ub-dismiss, .ub-already {background: transparent; color: var(--ink-500, #98a0b3);border: 1px solid var(--line, #212122); border-radius: 8px;- padding: 5px 10px; font-size: 12px; cursor: pointer; flex: 0 0 auto;+ padding: 5px 10px; font-size: 13px; cursor: pointer; flex: 0 0 auto;width: auto; white-space: nowrap;}.ub-dismiss:hover, .ub-already:hover { color: var(--ink, #e8eaf0); }@@ -384,7 +375,7 @@padding: 4px 9px 4px 8px; cursor: pointer; white-space: nowrap;background: rgba(255,255,255,.04);border: 1px solid var(--line, #212122); border-radius: 99px;- color: var(--ink, #e8eaf0); font-size: 11.5px; font-weight: 500;+ color: var(--ink, #e8eaf0); font-size: 13px; font-weight: 500;font-variant-numeric: tabular-nums;}#healthChip:hover { background: rgba(255,255,255,.07); }@@ -421,7 +412,7 @@The ::after gets tabular-nums back for itself. */@media (max-width: 1400px) {#healthChip .hc-face { font-size: 0; max-width: none; font-variant-numeric: normal; }- #healthChip .hc-face::after { content: attr(data-short); font-size: 11.5px; font-variant-numeric: tabular-nums; }+ #healthChip .hc-face::after { content: attr(data-short); font-size: 13px; font-variant-numeric: tabular-nums; }}/* SYS-38: the branch + short SHA + commit date ("HEAD · 70665d3(2026-09-28)") is developer build detail — useful for self-@@ -449,7 +440,7 @@#healthPop[hidden] { display: none; }.hc-row {display: flex; align-items: center; gap: 12px;- padding: 6px 9px; border-radius: 8px; font-size: 12px;+ padding: 6px 9px; border-radius: 8px; font-size: 13px;}.hc-row:hover { background: rgba(255,255,255,.04); }.hc-label { color: var(--ink-500, #98a0b3); flex: 0 0 auto; }@@ -458,7 +449,7 @@stay, which is the whole point of reusing the element. */.hc-row .pill {margin: 0 0 0 auto; padding: 0; border: 0; background: none;- font-size: 12px; font-variant-numeric: tabular-nums;+ font-size: 13px; font-variant-numeric: tabular-nums;}/* "Helper · helper idle" reads badly, so a self-naming pill takes the row. */.hc-row.is-selfnamed .hc-label { display: none; }@@ -551,7 +542,7 @@display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;background: var(--panel-2);border: 1px solid var(--border); color: var(--text);- padding: 5px 10px; border-radius: var(--r-xs); font-size: 11px; cursor: pointer;+ padding: 5px 10px; border-radius: var(--r-xs); font-size: 13px; cursor: pointer;transition: background var(--t-base), border-color var(--t-base), color var(--t-base);}/* SYS-21: same "ghost-btn is display:block, icon lands on its own@@ -581,7 +572,7 @@.toggle-pill {display: inline-flex; align-items: center; gap: 6px;background: transparent; border: 1px solid var(--border); color: var(--muted);- padding: 5px 10px; border-radius: 6px; font-size: 11px; cursor: pointer;+ padding: 5px 10px; border-radius: 6px; font-size: 13px; cursor: pointer;user-select: none; transition: border-color 120ms ease, color 120ms ease, background 120ms ease;white-space: nowrap;}@@ -621,7 +612,7 @@hand-drawn portrait so deserves to read at a glance. */.creator-link {display: inline-flex; align-items: center; gap: 9px;- color: var(--fg, #d8e0ee); font-size: 12px; font-weight: 500;+ color: var(--fg, #d8e0ee); font-size: 13px; font-weight: 500;text-decoration: none;padding: 4px 12px 4px 4px; border-radius: 999px;border: 1.5px solid var(--accent, #5a7cff);@@ -641,7 +632,7 @@box-shadow: 0 0 0 2px var(--accent, #5a7cff), 0 0 0 3px var(--bg, #101011);}.creator-link .x-icon {- font-size: 11px; opacity: 0.6; margin-left: -2px;+ font-size: 13px; opacity: 0.6; margin-left: -2px;letter-spacing: 0.05em;}@@ -696,7 +687,7 @@.models-inline-icon { font-size: 22px; line-height: 1; text-align: center; }.models-inline-text { min-width: 0; }.models-inline-text .ttl { font-weight: 600; font-size: 13px; color: var(--fg, #d8e0ee); }- .models-inline-text .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }+ .models-inline-text .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }.models-inline-progress { margin-top: 8px; }.models-inline-progress .bar {height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);@@ -708,13 +699,13 @@}.models-inline-progress .last {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; color: var(--muted); margin-top: 4px;+ font-size: 13px; color: var(--muted); margin-top: 4px;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}.models-inline-actions button {padding: 7px 14px; border-radius: var(--r-sm);background: var(--accent, #5a7cff); color: white; border: none;- font-size: 12px; font-weight: 600; cursor: pointer;+ font-size: 13px; font-weight: 600; cursor: pointer;white-space: nowrap;}.models-inline-actions button:hover { background: var(--accent-bright, #7e98ff); }@@ -732,7 +723,7 @@background: rgba(255, 255, 255, 0.040);}.first-run-card .ttl { font-weight: 600; font-size: 13px; color: var(--fg, #d8e0ee); margin-bottom: 4px; }- .first-run-card .sub { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }+ .first-run-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }.first-run-dismiss {position: absolute; top: 6px; right: 8px;width: 22px; height: 22px; border-radius: 4px;@@ -752,18 +743,19 @@width: auto; flex: 0 1 auto;padding: 7px 12px; border-radius: 999px;background: var(--panel-2, #1f1f23); border: 1px solid var(--border);- color: var(--text); font-size: 12px; cursor: pointer;+ color: var(--text); font-size: 13px; cursor: pointer;transition: border-color 120ms ease, background 120ms ease;}.first-run-prompt-btn:hover { border-color: var(--accent); background: var(--accent-dim); }.first-run-sample-link {- display: inline-block; font-size: 11.5px;+ display: inline-block; font-size: 13px;color: var(--accent-bright, #58a6ff); text-decoration: underline;}.first-run-sample-link:visited { color: var(--accent-bright, #58a6ff); }.models-inline-link {+ background: none; border: 0; padding: 0; border-radius: 0; font-weight: inherit;display: block; margin-top: 10px;- font-size: 11px; color: var(--muted); text-align: right;+ font-size: 13px; color: var(--muted); text-align: right;cursor: pointer; text-decoration: none;}.models-inline-link:hover { color: var(--accent-bright, #93a8ff); }@@ -907,7 +899,7 @@width: 100%; padding: 8px 10px;background: var(--panel-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text);- font-size: 12.5px; font-family: inherit; line-height: 1.5;+ font-size: 13px; font-family: inherit; line-height: 1.5;}.sb-textarea { resize: vertical; min-height: 68px; }.sb-input:focus, .sb-textarea:focus {@@ -916,12 +908,12 @@}#sbSectionTab .cz-control { margin-bottom: 14px; }.sb-ramline {- font-size: 11.5px; line-height: 1.45; color: var(--muted);+ font-size: 13px; line-height: 1.45; color: var(--muted);margin-bottom: 9px; display: flex; align-items: center; gap: 6px;}.sb-boards { margin: 12px 0 14px; }.sb-boards-head {- font-size: 11px; font-weight: 600; color: var(--muted);+ font-size: 13px; font-weight: 600; color: var(--muted);text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;}.sb-boards[hidden] { display: none !important; }@@ -951,14 +943,14 @@50% { opacity: 1; transform: translateX(4px); }}.sb-planning-title { font-size: 15px; font-weight: 600; color: var(--text); }- .sb-planning-sub { font-size: 12px; color: var(--muted); }+ .sb-planning-sub { font-size: 13px; color: var(--muted); }.sb-planning-steps {display: flex; flex-direction: column; gap: 7px;margin-top: 8px; text-align: left;}.sb-step {display: flex; align-items: center; gap: 9px;- font-size: 12px; color: var(--muted); opacity: 0.55;+ font-size: 13px; color: var(--muted); opacity: 0.55;transition: opacity var(--t-base), color var(--t-base);}.sb-step[hidden] { display: none !important; }@@ -987,11 +979,11 @@.sb-empty[hidden] { display: none !important; }.sb-empty-icon { color: var(--text); opacity: 0.35; }.sb-empty-title { font-size: 16px; font-weight: 600; color: var(--text); }- .sb-empty-sub { font-size: 12.5px; line-height: 1.6; color: var(--muted); }+ .sb-empty-sub { font-size: 13px; line-height: 1.6; color: var(--muted); }.sb-empty-steps {list-style: none; padding: 0; margin: 10px 0 0;display: flex; flex-direction: column; gap: 7px;- text-align: left; font-size: 12px; color: var(--muted); line-height: 1.5;+ text-align: left; font-size: 13px; color: var(--muted); line-height: 1.5;}.sb-empty-steps b { color: var(--text); font-weight: 600; }@@ -1024,7 +1016,7 @@box-shadow: 0 0 0 3px var(--accent-dim); background: var(--panel-2);}.sb-plan-status {- font-size: 11px; color: var(--muted); white-space: nowrap;+ font-size: 13px; color: var(--muted); white-space: nowrap;font-family: var(--ph-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);}#sbStageToggle {@@ -1035,7 +1027,7 @@#sbStageToggle[hidden] { display: none !important; }#sbStageToggle .smt-btn {appearance: none; border: 0; background: transparent;- color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;+ color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;padding: 4px 12px; border-radius: 7px; cursor: pointer;transition: background var(--t-fast), color var(--t-fast);white-space: nowrap; width: auto;@@ -1054,7 +1046,7 @@.sb-shotview-toggle[hidden] { display: none !important; }.sb-shotview-toggle .smt-btn {appearance: none; border: 0; background: transparent;- color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;+ color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;padding: 4px 12px; border-radius: 7px; cursor: pointer;transition: background var(--t-fast), color var(--t-fast);white-space: nowrap; width: auto;@@ -1080,7 +1072,7 @@.sb-grid-thumb-empty { display: flex; }.sb-grid-meta {display: flex; align-items: center; gap: 6px; padding: 5px 7px;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace);}.sb-grid-n { color: var(--text); font-weight: 700; }@@ -1095,7 +1087,7 @@.sb-grid-grade {flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;display: inline-flex; align-items: center; justify-content: center;- font-size: 11px; font-weight: 800; color: #fff;+ font-size: 13px; font-weight: 800; color: #fff;}.sb-grid-grade-keep { background: var(--accent-bright, var(--accent)); }.sb-grid-grade-reroll { background: #c9862a; }@@ -1119,7 +1111,7 @@font-size: 13px; font-weight: 600; color: var(--text);white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}- .sb-sum-cell span { font-size: 11px; color: var(--muted); line-height: 1.4; }+ .sb-sum-cell span { font-size: 13px; color: var(--muted); line-height: 1.4; }.sb-sum-cell.is-warn { border-color: rgba(210,153,34,0.45); }.sb-sum-cell.is-warn b { color: var(--warning); }.sb-runstrip { flex: 1 1 100%; display: flex; gap: 4px; }@@ -1129,12 +1121,12 @@padding: 5px 9px; min-width: 0;background: var(--panel-2); border: 1px solid var(--border);border-radius: var(--r-sm);- font-size: 11px; color: var(--muted); cursor: default;+ font-size: 13px; color: var(--muted); cursor: default;}.sb-runseg:hover { border-color: var(--border-strong); }.sb-runseg-load {text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700;- font-size: 11px; color: var(--accent-bright);+ font-size: 13px; color: var(--accent-bright);padding: 1px 5px; border-radius: var(--r-pill);background: var(--accent-dim); flex: 0 0 auto;}@@ -1150,7 +1142,7 @@margin: 0 0 10px; padding: 9px 11px;border: 1px solid rgba(248,81,73,0.35); border-radius: var(--r-md);background: rgba(248,81,73,0.06);- font-size: 11.5px; line-height: 1.55; color: var(--text);+ font-size: 13px; line-height: 1.55; color: var(--text);display: flex; flex-direction: column; gap: 5px;}.sb-errors[hidden] { display: none !important; }@@ -1183,7 +1175,7 @@}.sb-shot-n {font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace);- font-size: 12px; font-weight: 700; color: var(--accent-bright);+ font-size: 13px; font-weight: 700; color: var(--accent-bright);flex: 0 0 auto;}.sb-seg {@@ -1193,20 +1185,20 @@}.sb-seg-btn {width: auto; appearance: none; border: 0; background: transparent;- color: var(--muted); font: inherit; font-size: 11px; font-weight: 600;+ color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;padding: 3px 9px; border-radius: 5px; cursor: pointer;transition: background var(--t-fast), color var(--t-fast);}.sb-seg-btn:hover { color: var(--text); }.sb-seg-btn.active { background: var(--accent-dim); color: var(--accent-bright); }.sb-select {- width: auto; padding: 3px 6px; font-size: 11px;+ width: auto; padding: 3px 6px; font-size: 13px;background: var(--panel-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text); font-family: inherit;max-width: 150px;}.sb-chip {- font-size: 11px; font-weight: 700; letter-spacing: 0.07em;+ font-size: 13px; font-weight: 700; letter-spacing: 0.07em;text-transform: uppercase; padding: 2px 7px;border-radius: var(--r-pill);border: 1px solid var(--border); color: var(--muted);@@ -1228,7 +1220,7 @@help-dot idiom (#h3WinHelpBtn + .h3-winhelp), Python-owned copy. */.sb-enginenote {display: flex; align-items: center; gap: 6px; flex: 1 1 100%;- font-size: 11.5px; line-height: 1.45; color: var(--muted);+ font-size: 13px; line-height: 1.45; color: var(--muted);padding: 0 2px;}.sb-enginenote[hidden] { display: none !important; }@@ -1256,7 +1248,7 @@#sbEngineGroup .pill-btn:disabled,#sbReplanEngineGroup .pill-btn:disabled { opacity: 0.4; cursor: not-allowed; }.sb-enginepick-note {- font-size: 11px; line-height: 1.5; color: var(--muted);+ font-size: 13px; line-height: 1.5; color: var(--muted);padding: 4px 2px 0;}.sb-enginepick-note:empty { display: none; }@@ -1276,7 +1268,7 @@text-transform: none; letter-spacing: 0.02em; font-weight: 600;}.sb-shot-est {- font-size: 11px; color: var(--muted); flex: 0 0 auto;+ font-size: 13px; color: var(--muted); flex: 0 0 auto;font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace);}.sb-shot-spacer { flex: 1 1 auto; }@@ -1285,7 +1277,7 @@display: inline-flex; align-items: center; justify-content: center;background: transparent; border: 1px solid transparent;border-radius: var(--r-sm); color: var(--muted);- font-size: 11px; cursor: pointer; transition: var(--t-fast);+ font-size: 13px; cursor: pointer; transition: var(--t-fast);}.sb-icon:hover:not(:disabled) {color: var(--text); border-color: var(--border); background: var(--panel-2);@@ -1299,12 +1291,12 @@color: var(--danger); border-color: rgba(248,81,73,0.4);background: rgba(248,81,73,0.08);}- .sb-grip { color: var(--muted); opacity: 0.5; cursor: grab; font-size: 12px; }+ .sb-grip { color: var(--muted); opacity: 0.5; cursor: grab; font-size: 13px; }.sb-shot-prompt {width: 100%; min-height: 62px; resize: vertical;background: var(--bg-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text);- font-family: inherit; font-size: 12.5px; line-height: 1.55;+ font-family: inherit; font-size: 13px; line-height: 1.55;padding: 7px 9px;}.sb-shot-prompt:focus {@@ -1313,7 +1305,7 @@}.sb-shot-prompt[readonly] { opacity: 0.7; cursor: default; }.sb-shot-err {- margin-top: 7px; font-size: 11.5px; line-height: 1.5; color: var(--text);+ margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--text);display: flex; flex-direction: column; gap: 5px;}.sb-shot-err[hidden] { display: none !important; }@@ -1324,7 +1316,7 @@}.sb-err-fix {width: auto; flex: 0 0 auto; margin-left: 4px;- padding: 2px 8px; font-size: 11px;+ padding: 2px 8px; font-size: 13px;background: var(--panel-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text); cursor: pointer;}@@ -1332,7 +1324,7 @@.sb-seedwrap { display: inline-flex; align-items: center; gap: 4px; }.sb-seedwrap[hidden] { display: none !important; }.sb-seed {- width: 78px; padding: 3px 6px; font-size: 11px;+ width: 78px; padding: 3px 6px; font-size: 13px;background: var(--panel-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text);font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace);@@ -1341,7 +1333,7 @@.sb-shot-out[hidden] { display: none !important; }.sb-shot-out .info {display: flex; align-items: baseline; gap: 8px;- padding: 6px 8px; font-size: 11px;+ padding: 6px 8px; font-size: 13px;}.sb-shot-out .info .name {color: var(--text); overflow: hidden;@@ -1350,13 +1342,13 @@.sb-shot-out .info .sub { color: var(--muted); margin-left: auto; flex: 0 0 auto; }.sb-shot-out.is-stale { opacity: 0.5; }.sb-stale-tag {- font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;+ font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em;color: var(--warning); font-weight: 700;}.sb-grade { display: flex; gap: 4px; padding: 0 8px 7px; }.sb-grade-btn {flex: 1 1 0; width: auto; padding: 5px 4px;- font-size: 11px; font-weight: 600; letter-spacing: 0.07em;+ font-size: 13px; font-weight: 600; letter-spacing: 0.07em;text-transform: uppercase;background: transparent; border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--muted); cursor: pointer;@@ -1379,7 +1371,7 @@width: calc(100% - 16px); margin: 0 8px 8px; resize: vertical;background: var(--bg-2); border: 1px solid var(--border);border-radius: var(--r-sm); color: var(--text);- font-family: inherit; font-size: 11.5px; padding: 6px 8px;+ font-family: inherit; font-size: 13px; padding: 6px 8px;}.sb-note[hidden] { display: none !important; }.sb-addrow { padding: 2px 0 10px; }@@ -1396,20 +1388,20 @@.sb-actionbar[hidden] { display: none !important; }.sb-actionbar-spacer { flex: 1 1 auto; }.sb-actionbar-note {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace);}.sb-actionbar .primary, .sb-actionbar .ghost-btn { width: auto; flex: 0 0 auto; }.sb-actionbar .primary { padding: 8px 16px; font-size: 13px; }#sbTallyText b { color: var(--success); }.sb-export-note {- font-size: 11px; line-height: 1.5; color: var(--muted);+ font-size: 13px; line-height: 1.5; color: var(--muted);padding: 0 0 10px;}.sb-export-note[hidden] { display: none !important; }/* FILM-47: mixed-resolution warning before Finish/Export. */.sb-mixed-res-warn {- font-size: 11.5px; line-height: 1.5; color: var(--warning);+ font-size: 13px; line-height: 1.5; color: var(--warning);background: color-mix(in srgb, var(--warning) 12%, transparent);border: 1px solid var(--warning);border-radius: var(--r-sm, 8px); padding: 7px 10px; margin: 4px 0 8px;@@ -1433,7 +1425,7 @@.sb-runbar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }.sb-runbar-text b { font-size: 13px; color: var(--text); font-weight: 600; }.sb-runbar-text span {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.sb-runbar-dots {@@ -1486,7 +1478,7 @@border-radius: var(--r-xs); padding: 1px 5px;}.sb-board-search {- min-width: 160px; font-size: 12px; padding: 5px 10px;+ min-width: 160px; font-size: 13px; padding: 5px 10px;border-radius: var(--r-pill); border: 1px solid var(--border);background: var(--bg-2); color: var(--text);}@@ -1515,7 +1507,7 @@.sb-boardlist li .sb-board-menu .kebab-pop { z-index: 30; }.sb-boardlist li .sb-board-menu .kebab-pop button {width: 100%; height: auto; padding: 7px 10px; border: none;- color: #ff8b80; font-size: 12.5px;+ color: #ff8b80; font-size: 13px;}#sbBoardListMini li .badge {grid-area: 2 / 1 / 3 / 3; justify-self: start;@@ -1532,7 +1524,7 @@.sb-boardlist li .sb-row-go {display: inline-flex; align-items: center; gap: 5px;width: auto; height: auto;- padding: 3px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer;+ padding: 3px 9px; font-size: 13px; font-weight: 600; cursor: pointer;color: var(--accent-bright); background: var(--accent-dim);border: 1px solid var(--accent);border-radius: var(--r-pill); white-space: nowrap;@@ -1561,10 +1553,10 @@grid-template-columns: auto 1fr auto auto auto;}.sb-rowtags { display: inline-flex; align-items: center; gap: 5px; }- .sb-rowtags .sb-chip-engine { font-size: 11px; padding: 1px 6px; }+ .sb-rowtags .sb-chip-engine { font-size: 13px; padding: 1px 6px; }.sb-rowtags .sb-chip-engine .ph { width: 9px; height: 9px; }.car-card .sb-badge {- font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;+ font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase;font-weight: 700; padding: 1px 6px; border-radius: var(--r-pill);cursor: pointer;}@@ -1610,7 +1602,7 @@.sb-rail-back {display: inline-flex; align-items: center; gap: 5px; width: auto;flex: 0 0 auto;- padding: 4px 9px; margin-right: 4px; font-size: 11.5px;+ padding: 4px 9px; margin-right: 4px; font-size: 13px;color: var(--muted); background: transparent;border: 1px solid transparent; border-radius: var(--r-pill);cursor: pointer; white-space: nowrap;@@ -1620,17 +1612,17 @@.sb-rail-step {display: inline-flex; align-items: baseline; gap: 6px; width: auto;flex: 0 0 auto;- padding: 3px 10px; font-size: 12px; font-weight: 600;+ padding: 3px 10px; font-size: 13px; font-weight: 600;color: var(--muted); background: transparent;border: 1px solid transparent; border-radius: var(--r-pill);cursor: pointer; white-space: nowrap; font-family: inherit;}.sb-rail-step .sb-rail-n {- font-size: 11px; font-weight: 700; letter-spacing: 0.04em;+ font-size: 13px; font-weight: 700; letter-spacing: 0.04em;color: var(--muted); opacity: 0.75;}.sb-rail-step .sb-rail-sub {- font-size: 11px; font-weight: 500; color: var(--muted); opacity: 0.85;+ font-size: 13px; font-weight: 500; color: var(--muted); opacity: 0.85;}.sb-rail-step:hover { color: var(--text); background: var(--panel-2); }.sb-rail-step.is-done { color: var(--text); }@@ -1672,22 +1664,22 @@}.sb-film-name {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;- margin-top: 10px; font-size: 12.5px; color: var(--text);+ margin-top: 10px; font-size: 13px; color: var(--text);}.sb-film-name code {- font-size: 11.5px; color: var(--muted); background: var(--panel-2);+ font-size: 13px; color: var(--muted); background: var(--panel-2);border: 1px solid var(--border); border-radius: var(--r-xs);padding: 2px 7px;}.sb-film-kind {- font-size: 11px; font-weight: 700; letter-spacing: 0.07em;+ font-size: 13px; font-weight: 700; letter-spacing: 0.07em;text-transform: uppercase; padding: 2px 7px;border-radius: var(--r-pill);color: var(--accent-bright); background: var(--accent-dim);border: 1px solid var(--accent);}.sb-film-where {- font-size: 11.5px; color: var(--muted); margin-top: 2px;+ font-size: 13px; color: var(--muted); margin-top: 2px;overflow-wrap: anywhere;}.sb-film-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }@@ -1830,7 +1822,7 @@}.ed-pool-tabs .ed-pool-src {flex: 1 1 auto; min-width: 0; width: auto;- font-size: 12px; padding: 6px 8px;+ font-size: 13px; padding: 6px 8px;background: var(--bg-2); color: var(--text);border: 1px solid var(--border); border-radius: var(--r-sm);overflow: hidden; text-overflow: ellipsis; white-space: nowrap;@@ -2074,7 +2066,7 @@.sbe-trk-mute {flex: 0 0 auto; width: 18px; height: 16px; padding: 0; line-height: 1;border: 1px solid var(--border); border-radius: var(--r-xs);- background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 700;+ background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 700;cursor: pointer;}.sbe-trk-mute.is-on { background: var(--warning); border-color: var(--warning); color: #121213; }@@ -2086,13 +2078,13 @@width: auto; height: 18px; padding: 0 6px; font-size: var(--fs-2xs);white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;}- .sbe-gh-add .sbe-gh-more { margin-left: auto; font-size: 11px; }+ .sbe-gh-add .sbe-gh-more { margin-left: auto; font-size: 13px; }.sbe-gh-tag {display: flex; align-items: center; gap: 5px; min-width: 0;font-size: var(--fs-2xs); color: var(--text); font-weight: 600;}.sbe-gh-tag i {- font-style: normal; font-size: 11px; letter-spacing: 0.04em;+ font-style: normal; font-size: 13px; letter-spacing: 0.04em;color: var(--muted); border: 1px solid var(--border);border-radius: 3px; padding: 1px 3px; flex: 0 0 auto;}@@ -2106,7 +2098,7 @@margin-left: auto; flex: 0 0 auto; width: 18px; height: 16px;border: 1px solid var(--border); border-radius: var(--r-xs);background: var(--panel); color: var(--muted); cursor: pointer;- font-size: 11px; line-height: 1; padding: 0;+ font-size: 13px; line-height: 1; padding: 0;}.sbe-gh-more:hover { border-color: var(--accent); color: var(--text); }.sbe-gh-mode {@@ -2150,7 +2142,7 @@ticked while doing nothing would be the silent guard this editor keepspaying for. */.sbe-mix-note {- font-size: 11px; line-height: 1.25; color: var(--warn, #d29922);+ font-size: 13px; line-height: 1.25; color: var(--warn, #d29922);overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.sbe-gh-mus.is-duck-off .sbe-mix-duck { opacity: 0.55; }@@ -2502,9 +2494,10 @@padding: 10px;}}- /* ---- the stage: ONE <video> per monitor. Double-buffering measured no- benefit once proxies are all-intra, and two elements on one stream is- two decoders for nothing. ---- */+ /* ---- the stage: the program monitor has TWO <video> elements, one on+ screen (.is-on) and one loading the next clip off screen: handing the+ visible element a new src made WebKit paint black at every cut+ (editor.js, sbeStageVideo). The source monitor keeps one. ---- */.sbe-stage {/* `width: 100%` + `aspect-ratio` + `max-height` DO NOT COMPOSE. A blockbox's auto width is stretch-fit, which outranks the ratio, so the cap@@ -2655,7 +2648,7 @@`.quality-strip` and the One Shot panel already paid for. */.sbe-cbar-btn[hidden], .sbe-cbar-sep[hidden] { display: none !important; }.sbe-cbar-more { margin-left: 2px; }- .sbe-cbar-more .sbe-car { font-size: 11px; opacity: 0.75; }+ .sbe-cbar-more .sbe-car { font-size: 13px; opacity: 0.75; }/* THE OVERFLOW PANEL holds the very same buttons, so they have to stopbeing a row and become a list once they are in it. */.sbe-cbar-pop { min-width: 170px; }@@ -2704,7 +2697,7 @@.sbe-tbtn > b { display: none; }.sbe-tbtn:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent-bright); }.sbe-tbtn:focus-visible { outline: none; box-shadow: var(--ring); }- .sbe-snap { margin: 0; font-size: 11px; flex: 0 0 auto; white-space: nowrap; }+ .sbe-snap { margin: 0; font-size: 13px; flex: 0 0 auto; white-space: nowrap; }/* The row must never clip its last button: the slider is the one thing on it that can give. */.sbe-toolrow .sbe-zoom input[type="range"] { width: 88px; }.sbe-toolrow > .sbe-cbar { padding-right: 2px; }@@ -2863,7 +2856,7 @@.sbe-ruler u {position: absolute; top: 1px; height: 12px; text-decoration: none;border-radius: 3px; overflow: hidden; white-space: nowrap;- font-size: 11px; line-height: 12px; letter-spacing: 0.08em; text-transform: uppercase;+ font-size: 13px; line-height: 12px; letter-spacing: 0.08em; text-transform: uppercase;font-weight: 700; color: rgba(255,255,255,0.85); padding: 0 5px; pointer-events: auto;background: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);}@@ -2975,6 +2968,25 @@object-fit: contain; pointer-events: none; display: none; z-index: 4;}.sbe-ov-layer.is-on { display: block; }+ /* The overlay lane's VIDEO layer. Opacity, never display:none — WebKit+ does not load a media element it is not laying out. The painter+ writes the opacity (0 off, the fade's value on). */+ /* `.sbe-stage video` (above) paints every stage video's background+ black — right for the picture, fatal for a transparent sting, which+ then blacked out the whole film under it. Two classes deep so this+ one wins. */+ .sbe-stage video.sbe-ov-video {+ position: absolute; inset: 0; width: 100%; height: 100%;+ object-fit: contain; pointer-events: none; z-index: 4; opacity: 0;+ background: transparent;+ }+ /* Said quietly in a corner, never over the middle of the picture. */+ .sbe-ov-note {+ position: absolute; right: 8px; top: 8px; z-index: 6;+ pointer-events: none; font-size: 13px; line-height: 1.3;+ color: rgba(255, 255, 255, 0.72); background: rgba(0, 0, 0, 0.45);+ padding: 3px 7px; border-radius: 4px; max-width: 46%;+ }/* THE TITLE ON THE STAGE. Positioned by the same anchor the rasteriseruses — `--tx-x/--tx-y` are fractions of the frame, `--tx-shift` isthe align's share of the text's own width — and sized by `--tx-size`,@@ -2997,7 +3009,7 @@.sbe-ov-t {display: inline-block; width: 16px; height: 16px; line-height: 16px;margin-right: 5px; border-radius: 3px; text-align: center;- background: #a970ff; color: #121213; font-weight: 800; font-size: 11px;+ background: #a970ff; color: #121213; font-weight: 800; font-size: 13px;vertical-align: -3px;}.sbe-title-b { align-items: center; }@@ -3879,7 +3891,7 @@/* Every other row idiom in this panel answers the pointer. */.sbe-chip:hover { border-color: var(--accent); }.sbe-params {- font: 10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;+ font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;color: var(--muted); background: var(--bg-2); border: 1px solid var(--border);border-radius: var(--r-sm); padding: 6px 8px; margin-top: 8px;max-height: 132px; overflow: auto; white-space: pre-wrap;@@ -3910,7 +3922,7 @@.sbe-actions .primary, .sbe-actions .ghost-btn { width: auto; }.sbe-note { font-size: var(--fs-xs); color: var(--muted); }.sbe-kbd {- font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;+ font: 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;border: 1px solid var(--border); border-radius: 4px;padding: 2px 4px; color: var(--muted); background: var(--panel-2);}@@ -4016,13 +4028,13 @@/* ===== FORM ===== */h2 {- font-size: 11px; margin: 14px 0 8px; color: var(--muted);+ font-size: 13px; margin: 14px 0 8px; color: var(--muted);text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;}h2:first-child { margin-top: 0; }label.lbl {display: block; margin: 10px 0 4px; color: var(--muted);- font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;+ font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;}input, textarea, select, button {width: 100%; padding: 8px 11px; font: inherit; color: inherit;@@ -4062,7 +4074,7 @@width: 100%; padding: 9px 8px; border-radius: 8px;background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);cursor: pointer; transition: var(--t-fast); text-align: center;- font-size: 12px; font-weight: 500;+ font-size: 13px; font-weight: 500;display: flex; flex-direction: column; align-items: center; gap: 2px;}.pill-btn:hover { border-color: var(--accent); color: var(--text); }@@ -4071,7 +4083,7 @@color: var(--accent-bright); font-weight: 600;}.pill-btn .ico { font-size: 16px; line-height: 1; }- .pill-btn .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }+ .pill-btn .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }/* Tiny amber chip flagging a feature as not-yet-fully-validated.Inline alongside the label, doesn't push the layout — same idiomas a "NEW" or "BETA" tag. Used on the Style train-type pill in@@ -4080,7 +4092,7 @@display: inline-block;padding: 1px 6px;margin-left: 6px;- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.06em;text-transform: uppercase;@@ -4106,7 +4118,7 @@cursor: pointer;overflow: hidden;color: var(--muted);- font-size: 11px;+ font-size: 13px;text-align: center;transition: border-color 120ms;}@@ -4118,7 +4130,7 @@width: 20px; height: 20px;background: rgba(0,0,0,0.7); color: white;border: 0; border-radius: 50%;- font-size: 12px; line-height: 18px; cursor: pointer;+ font-size: 13px; line-height: 18px; cursor: pointer;display: none;}.img-ref-slot.has-image .clear-x { display: block; }@@ -4137,7 +4149,7 @@position: absolute; left: 0; right: 0; bottom: 0;background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));color: white; padding: 16px 6px 4px;- font-size: 11px; line-height: 1.2;+ font-size: 13px; line-height: 1.2;pointer-events: none;}@@ -4159,7 +4171,7 @@app from the video form even though the comment claimed theymirrored it. */.studio-pane h2 .h2-hint {- font-size: 11px;+ font-size: 13px;letter-spacing: 0;color: var(--muted);text-transform: none;@@ -4196,7 +4208,7 @@gap: 5px;padding: 0 11px;border-radius: 8px;- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);letter-spacing: 0;border: 1px solid var(--ph-border-soft);@@ -4252,7 +4264,7 @@.studio-ref-warn {margin-top: 8px;padding: 8px 10px;- font-size: 11.5px;+ font-size: 13px;line-height: 1.4;color: #e0c060;background: rgba(224, 160, 60, 0.08);@@ -4278,7 +4290,7 @@cursor: pointer;overflow: hidden;color: var(--muted);- font-size: 11px;+ font-size: 13px;text-align: center;transition: border-color var(--t-fast), background var(--t-fast);}@@ -4311,7 +4323,7 @@top: 6px; left: 6px;padding: 2px 6px;border-radius: 4px;- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);letter-spacing: 0.06em;text-transform: uppercase;@@ -4339,7 +4351,7 @@opacity: 0.7;}.studio-ref-slot .ref-empty .ref-cta {- font-size: 11px;+ font-size: 13px;color: var(--muted);line-height: 1.3;}@@ -4366,7 +4378,7 @@/* Recent uploads strip — mirrors video's .picker-recent. */.studio-ref-recent { margin-top: 10px; }.studio-ref-recent-label {- font-size: 11px;+ font-size: 13px;color: var(--muted);margin-bottom: 5px;}@@ -4408,7 +4420,7 @@min-height: 16px;}.studio-status-row .hint {- font-size: 11.5px;+ font-size: 13px;color: var(--muted);}.studio-results {@@ -4434,14 +4446,14 @@margin: 0 0 12px; padding: 10px 12px;background: color-mix(in srgb, var(--accent) 8%, var(--panel));border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));- border-radius: var(--r-md); font-size: 12.5px; line-height: 1.45;+ border-radius: var(--r-md); font-size: 13px; line-height: 1.45;}.ideo-setup-note[hidden] { display: none; }.ideo-setup-note svg.ph { color: var(--accent); }.ideo-setup-body strong { display: block; margin-bottom: 4px; }.ideo-setup-steps { margin: 4px 0 6px; padding-left: 18px; }.ideo-setup-steps li { margin: 2px 0; }- .ideo-setup-hint { color: var(--muted); font-size: 11.5px; }+ .ideo-setup-hint { color: var(--muted); font-size: 13px; }.ideo-link {background: none; border: none; padding: 0; cursor: pointer;color: var(--accent-bright, var(--accent)); font: inherit;@@ -4454,15 +4466,15 @@}.ideo-head-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }.ideo-head-title { font-size: 13px; font-weight: 600; color: var(--text); }- .ideo-head-sub { font-size: 11px; color: var(--muted); }+ .ideo-head-sub { font-size: 13px; color: var(--muted); }.ideo-mode-toggle { margin: 0; min-width: 220px; flex: 0 0 auto; }.ideo-prompt-label {- display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em;+ display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em;color: var(--muted); text-transform: uppercase; margin: 0 0 6px 2px;}.ideo-prompt-label[hidden] { display: none; }.ideo-simple-hint {- font-size: 11.5px; color: var(--muted); line-height: 1.5;+ font-size: 13px; color: var(--muted); line-height: 1.5;background: var(--bg-2); border: 1px solid var(--border);border-radius: var(--r-sm); padding: 8px 10px;}@@ -4477,12 +4489,12 @@.ideo-toolbar .qchip { display: inline-flex; align-items: center; }.ideo-toolbar-toggle {display: inline-flex; align-items: center; gap: 5px;- font-size: 11.5px; color: var(--muted); cursor: pointer; user-select: none;+ font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;padding: 0 4px;}.ideo-toolbar-toggle input { accent-color: var(--accent); cursor: pointer; }.ideo-example-picker {- font-size: 11.5px; padding: 5px 8px; border-radius: var(--r-sm);+ font-size: 13px; padding: 5px 8px; border-radius: var(--r-sm);background: var(--panel-2); border: 1px solid var(--border); color: var(--text);}@@ -4509,7 +4521,7 @@.ideo-stage-hint {position: absolute; inset: 0; display: flex; align-items: center;justify-content: center; text-align: center; padding: 0 24px;- font-size: 12px; color: var(--muted); pointer-events: none; opacity: .8;+ font-size: 13px; color: var(--muted); pointer-events: none; opacity: .8;}.ideo-stage-hint strong { color: var(--accent-bright); }.ideo-stage.has-boxes .ideo-stage-hint { display: none; }@@ -4555,14 +4567,14 @@.ideo-box-text.st-serif { font-weight: 600; font-family: Georgia,"Times New Roman",serif; }.ideo-box-obj-label {position: absolute; left: 0; top: 0; padding: 1px 5px;- font-size: 11px; font-family: var(--ph-font-mono); letter-spacing: .04em;+ font-size: 13px; font-family: var(--ph-font-mono); letter-spacing: .04em;color: var(--muted); background: rgba(12, 12, 13,0.7); border-bottom-right-radius: 3px;pointer-events: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}/* object label in describe mode: fills the box as a centered caret target */.ideo-box-obj-label.editing {inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;- font-size: 12px; padding: 6px 10px; pointer-events: auto; cursor: text;+ font-size: 13px; padding: 6px 10px; pointer-events: auto; cursor: text;user-select: text; -webkit-user-select: text; outline: none;background: rgba(10, 10, 11,0.30); box-shadow: inset 0 0 0 1.5px var(--accent-bright);white-space: normal; max-width: none; border-bottom-right-radius: 0;@@ -4638,7 +4650,7 @@.ideo-fab-btn.ideo-fab-del:hover { background: rgba(229,72,77,0.16); color: #ff6b6f; }.ideo-fab-sep { width: 1px; height: 16px; background: var(--border, #282829); margin: 0 1px; }.ideo-fab-style {- height: 22px; font-size: 11.5px; background: var(--bg-2, #0f0f10); color: var(--text, #e8eef6);+ height: 22px; font-size: 13px; background: var(--bg-2, #0f0f10); color: var(--text, #e8eef6);border: 1px solid var(--border, #282829); border-radius: 6px; padding: 0 4px; max-width: 92px;}.ideo-fab-btn:focus-visible, .ideo-fab-sw:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 1px; }@@ -4655,7 +4667,7 @@body[data-workflow="studio"].ideo-canvas-on .ideo-insp-grid { grid-template-columns: 1fr; }.ideo-stage-note {- font-size: 11px; color: var(--muted); margin: 6px 2px 0; line-height: 1.45;+ font-size: 13px; color: var(--muted); margin: 6px 2px 0; line-height: 1.45;}/* Inspector */@@ -4668,7 +4680,7 @@.ideo-insp-row:last-child { margin-bottom: 0; }.ideo-insp-row .mf-label,.ideo-insp-cell .mf-label {- display: block; font-size: 11px; color: var(--muted);+ display: block; font-size: 13px; color: var(--muted);text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;}.ideo-inspector input[type="text"] {@@ -4695,7 +4707,7 @@.ideo-swatch.selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-bright); }.ideo-swatch.removable::after {content: "×"; position: absolute; top: -7px; right: -7px;- width: 14px; height: 14px; font-size: 11px; line-height: 13px; text-align: center;+ width: 14px; height: 14px; font-size: 13px; line-height: 13px; text-align: center;background: var(--danger); color: #fff; border-radius: 50%; opacity: 0;transition: opacity var(--t-fast);}@@ -4705,12 +4717,12 @@border-radius: var(--r-sm); background: transparent; cursor: pointer;}.ideo-insp-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }- .ideo-insp-bbox { font-size: 11px; font-family: var(--ph-font-mono); color: var(--muted); }+ .ideo-insp-bbox { font-size: 13px; font-family: var(--ph-font-mono); color: var(--muted); }.ideo-danger:hover { border-color: var(--danger) !important; color: var(--danger) !important; }/* Render / Quality / palette / raw controls */.ideo-controls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 11px; margin-top: 11px; }- .ideo-ctrl-cell .mf-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }+ .ideo-ctrl-cell .mf-label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }.ideo-ctrl-cell .pill-group { margin-bottom: 0; }.ideo-ctrl-cell select {width: 100%; padding: 8px 9px; font-size: 13px;@@ -4722,33 +4734,33 @@border-radius: var(--r-md); background: var(--panel-2); overflow: hidden;}.ideo-details > summary {- cursor: pointer; padding: 9px 11px; font-size: 12px; font-weight: 600;+ cursor: pointer; padding: 9px 11px; font-size: 13px; font-weight: 600;color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px;}.ideo-details > summary::-webkit-details-marker { display: none; }.ideo-details > summary::before {- content: "▸"; color: var(--muted); font-size: 11px; transition: transform var(--t-fast);+ content: "▸"; color: var(--muted); font-size: 13px; transition: transform var(--t-fast);}.ideo-details[open] > summary::before { transform: rotate(90deg); }- .ideo-summary-meta { font-size: 11px; color: var(--muted); font-weight: 400; }+ .ideo-summary-meta { font-size: 13px; color: var(--muted); font-weight: 400; }.ideo-palette-body, .ideo-raw-body { padding: 0 11px 11px; }- .ideo-help { font-size: 11px; color: var(--muted); margin: 2px 0 8px; line-height: 1.45; }+ .ideo-help { font-size: 13px; color: var(--muted); margin: 2px 0 8px; line-height: 1.45; }.ideo-palette-add { display: flex; align-items: center; gap: 8px; margin-top: 9px; }.ideo-validity-chip {- font-size: 11px; font-family: var(--ph-font-mono); padding: 1px 7px;+ font-size: 13px; font-family: var(--ph-font-mono); padding: 1px 7px;border-radius: var(--r-pill); border: 1px solid var(--border);color: var(--muted); background: var(--bg-2);}.ideo-validity-chip[data-ok="yes"] { color: var(--success); border-color: rgba(63,185,80,0.35); background: rgba(63,185,80,0.10); }.ideo-validity-chip[data-ok="no"] { color: var(--danger); border-color: rgba(248,81,73,0.4); background: rgba(248,81,73,0.10); }.ideo-raw-textarea {- width: 100%; font-family: var(--ph-font-mono); font-size: 11.5px; line-height: 1.5;+ width: 100%; font-family: var(--ph-font-mono); font-size: 13px; line-height: 1.5;background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);color: var(--text); padding: 8px 10px; resize: vertical; min-height: 140px;}.ideo-raw-textarea:focus { border-color: var(--accent); outline: none; }.ideo-raw-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }- .ideo-raw-msg { font-size: 11px; color: var(--muted); }+ .ideo-raw-msg { font-size: 13px; color: var(--muted); }.ideo-raw-msg.err { color: var(--danger); }.ideo-raw-msg.ok { color: var(--success); }@@ -4828,7 +4840,7 @@background: rgba(140, 160, 220, 0.06);padding: 1px 5px;border-radius: 4px;- font-size: 11.5px;+ font-size: 13px;}/* ---- Character card ---- */@@ -4915,7 +4927,7 @@}.characters-trigger-chip {font-family: var(--ph-font-mono, "SF Mono", monospace);- font-size: 11px;+ font-size: 13px;letter-spacing: 0.02em;padding: 2px 7px;border-radius: 4px;@@ -4924,7 +4936,7 @@border: 1px solid rgba(140, 160, 220, 0.08);}.characters-pronoun-chip {- font-size: 11px;+ font-size: 13px;letter-spacing: 0.01em;padding: 2px 8px;border-radius: 4px;@@ -4939,7 +4951,7 @@display: inline-flex;align-items: center;gap: 4px;- font-size: 11px;+ font-size: 13px;letter-spacing: 0.02em;padding: 2px 7px;border-radius: 4px;@@ -4981,7 +4993,7 @@border: 1px solid transparent;border-radius: 6px;color: var(--ph-text-faint, var(--muted));- font-size: 12.5px;+ font-size: 13px;cursor: pointer;transition: color 180ms ease, border-color 180ms ease, background 180ms ease;}@@ -5035,12 +5047,12 @@/* Reference audio row inside the Characters compose card. */.characters-adv-row { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; }- .characters-adv-label { font-size: 12px; color: var(--text); font-weight: 600; }+ .characters-adv-label { font-size: 13px; color: var(--text); font-weight: 600; }.characters-adv-hint { color: var(--muted); font-weight: 400; }.characters-adv-control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }- .characters-adv-pick-btn { background: var(--panel-2); border: 1px solid var(--border-strong, var(--border)); color: var(--text); padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }+ .characters-adv-pick-btn { background: var(--panel-2); border: 1px solid var(--border-strong, var(--border)); color: var(--text); padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; }.characters-adv-pick-btn:hover { border-color: var(--accent, #2f81f7); }- .characters-adv-fname { font-family: "SF Mono", monospace; font-size: 11px; color: var(--muted); }+ .characters-adv-fname { font-family: "SF Mono", monospace; font-size: 13px; color: var(--muted); }.characters-adv-clear { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }.characters-adv-clear:hover { color: #ff7773; }/* Slot the Manual tab's #lorasDetails picker lives in when the@@ -5050,11 +5062,11 @@/* Character LoRA strength row — single slider + value badge. */.characters-strength-row { margin: 14px 0 4px; }- .characters-strength-label { font-size: 12px; color: var(--text); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }- .characters-strength-hint { color: var(--muted); font-weight: 400; font-size: 11px; }+ .characters-strength-label { font-size: 13px; color: var(--text); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }+ .characters-strength-hint { color: var(--muted); font-weight: 400; font-size: 13px; }.characters-strength-control { margin-top: 6px; display: flex; align-items: center; gap: 12px; }.characters-strength-control input[type=range] { flex: 1 1 auto; accent-color: var(--accent, #2f81f7); }- .characters-strength-value { font-family: "SF Mono", monospace; font-size: 12px; color: var(--accent-2, #5eeaff); min-width: 42px; text-align: right; }+ .characters-strength-value { font-family: "SF Mono", monospace; font-size: 13px; color: var(--accent-2, #5eeaff); min-width: 42px; text-align: right; }.characters-compose-card {background: var(--ph-elev-1, var(--panel));@@ -5066,7 +5078,7 @@gap: 18px;}.characters-field-label {- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.08em;text-transform: uppercase;@@ -5113,7 +5125,7 @@gap: 5px;}.characters-group-label {- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.08em;text-transform: uppercase;@@ -5131,7 +5143,7 @@background: rgba(140, 160, 220, 0.05);border: 1px solid var(--ph-border-soft, var(--border));color: var(--ph-text-faint, var(--muted));- font-size: 11.5px;+ font-size: 13px;font-weight: 500;letter-spacing: 0;cursor: pointer;@@ -5170,7 +5182,7 @@display: inline-flex;align-items: center;gap: 6px;- font-size: 11.5px;+ font-size: 13px;color: var(--ph-text-faint, var(--muted));cursor: pointer;user-select: none;@@ -5207,7 +5219,7 @@padding: 12px 14px;}.characters-preview-label {- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.1em;text-transform: uppercase;@@ -5216,7 +5228,7 @@}.characters-preview-text {font-family: var(--ph-font-mono, "SF Mono", monospace);- font-size: 11.5px;+ font-size: 13px;line-height: 1.55;color: rgba(220, 224, 240, 0.78);margin: 0;@@ -5269,7 +5281,7 @@margin-top: 4px;padding: 10px 14px;border-radius: 8px;- font-size: 12.5px;+ font-size: 13px;background: rgba(255, 255, 255, 0.040);border: 1px solid rgba(94, 234, 255, 0.20);color: var(--text);@@ -5313,7 +5325,7 @@============================================================ */.train-pane.show { display: block; }.train-pane h2 .h2-hint {- font-size: 11px;+ font-size: 13px;letter-spacing: 0;color: var(--muted);text-transform: none;@@ -5352,13 +5364,13 @@}.train-preflight-size {color: #ffb84a;- font-size: 12px;+ font-size: 13px;margin-left: 6px;font-weight: 400;}.train-preflight-blurb {color: #aab;- font-size: 12px;+ font-size: 13px;line-height: 1.45;}.train-preflight-row .btn {@@ -5390,12 +5402,12 @@}.train-gate-card .ph { width: 20px; height: 20px; flex-shrink: 0; color: #ffb84a; margin-top: 2px; }.train-gate-title { font-weight: 600; font-size: 14px; color: #e6e6ea; margin-bottom: 6px; }- .train-gate-body { color: #aab; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }+ .train-gate-body { color: #aab; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }.train-gate-actions { display: flex; gap: 8px; flex-wrap: wrap; }.train-preflight-foot {margin-top: 12px;color: #888;- font-size: 11px;+ font-size: 13px;font-style: italic;}@@ -5439,7 +5451,7 @@}.train-guidance[open] summary::after { transform: rotate(-135deg); }.train-guidance-eyebrow {- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.08em;text-transform: uppercase;@@ -5457,7 +5469,7 @@gap: 14px 22px;}.train-guidance-section h3 {- font-size: 11px;+ font-size: 13px;font-weight: 600;letter-spacing: 0.06em;text-transform: uppercase;@@ -5499,7 +5511,7 @@border: 1px solid var(--ph-border-soft, var(--border));color: var(--ph-text-faint, var(--muted));border-radius: 999px;- font-size: 11.5px;+ font-size: 13px;padding: 5px 12px;cursor: pointer;transition: color 160ms ease, border-color 160ms ease;@@ -5535,7 +5547,7 @@text-align: center;color: var(--muted);padding: 18px 8px;- font-size: 12px;+ font-size: 13px;pointer-events: none; /* clicks pass through to the drop zone */}.train-drop-empty .picker-icon { font-size: 28px; margin-bottom: 6px; }@@ -5570,7 +5582,7 @@.train-thumb .train-thumb-num {position: absolute;left: 4px; bottom: 4px;- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);background: rgba(0, 0, 0, 0.55);color: var(--text);@@ -5586,7 +5598,7 @@border-radius: 50%;background: rgba(0, 0, 0, 0.6);color: var(--text);- font-size: 12px;+ font-size: 13px;cursor: pointer;display: none;align-items: center;@@ -5609,7 +5621,7 @@align-items: center;gap: 10px;margin-top: 10px;- font-size: 12px;+ font-size: 13px;}.train-counter {font-family: var(--ph-font-mono);@@ -5618,14 +5630,14 @@}.train-counter.ok { color: var(--success); }.train-counter.short { color: var(--warning); }- .train-counter-hint { color: var(--muted); font-size: 11px; }+ .train-counter-hint { color: var(--muted); font-size: 13px; }/* Caption-pair counter — sibling chip in the same row as the imagecount. Hidden until the user has ≥1 captioned image so it doesn'tread as a missing-data signal. */.train-caption-counter {font-family: var(--ph-font-mono);color: var(--muted);- font-size: 11px;+ font-size: 13px;padding: 1px 7px;border: 1px solid var(--ph-border-soft);border-radius: 999px;@@ -5644,7 +5656,7 @@.train-thumb .train-thumb-cap {position: absolute;right: 4px; bottom: 4px;- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);padding: 1px 5px;border-radius: 4px;@@ -5670,7 +5682,7 @@border-radius: 8px;background: rgba(255,255,255,0.01);cursor: pointer;- font-size: 12px;+ font-size: 13px;transition: border-color var(--t-fast), background var(--t-fast);}.train-bundle-drop:hover {@@ -5688,7 +5700,7 @@}.train-bundle-icon { width: 18px; height: 18px; opacity: 0.8; flex: 0 0 auto; }.train-bundle-cta { color: var(--text); flex: 1 1 auto; }- .train-bundle-meta { color: var(--muted); font-size: 11px; }+ .train-bundle-meta { color: var(--muted); font-size: 13px; }/* Caption format hint card — collapsed by default; opens to a smallLTX-format example + the "describe what varies" rules. */details.train-caption-hint {@@ -5700,7 +5712,7 @@details.train-caption-hint > summary {padding: 8px 12px;cursor: pointer;- font-size: 12px;+ font-size: 13px;color: var(--text);display: flex;align-items: center;@@ -5710,13 +5722,13 @@details.train-caption-hint > summary::-webkit-details-marker { display: none; }details.train-caption-hint .train-caption-hint-eyebrow {color: var(--muted);- font-size: 11px;+ font-size: 13px;margin-left: auto;letter-spacing: 0.4px;}.train-caption-hint-body {padding: 0 12px 12px;- font-size: 12px;+ font-size: 13px;color: var(--muted);}.train-caption-hint-example {@@ -5725,7 +5737,7 @@border-radius: 6px;padding: 8px 10px;font-family: var(--ph-font-mono);- font-size: 11.5px;+ font-size: 13px;color: var(--text);white-space: pre-wrap;line-height: 1.4;@@ -5770,7 +5782,7 @@}.train-autocaption-hint {flex: 1 1 220px;- font-size: 11.5px;+ font-size: 13px;color: var(--muted);line-height: 1.45;}@@ -5795,7 +5807,7 @@}.train-autocaption-status {margin-top: 6px;- font-size: 11px;+ font-size: 13px;color: var(--muted);font-family: var(--ph-font-mono);letter-spacing: 0.2px;@@ -5817,7 +5829,7 @@grid-template-columns: repeat(3, 1fr);}.train-pane .pill-btn .sub {- font-size: 11px;+ font-size: 13px;letter-spacing: 0;font-family: var(--ph-font-mono);}@@ -5829,7 +5841,7 @@}.train-advanced > summary {cursor: pointer;- font-size: 11px;+ font-size: 13px;text-transform: uppercase;letter-spacing: 0.06em;color: var(--muted);@@ -5851,7 +5863,7 @@display: inline-flex; align-items: center;margin-left: 6px;padding: 1px 6px;- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;font-family: var(--ph-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);letter-spacing: 0.04em;text-transform: none;@@ -5874,7 +5886,7 @@border: 1px solid var(--ph-border-soft);border-radius: 10px;background: rgba(16, 16, 17, 0.35);- font-size: 12px;+ font-size: 13px;}.train-est-line {display: inline-flex;@@ -5885,7 +5897,7 @@color: var(--muted);text-transform: uppercase;letter-spacing: 0.06em;- font-size: 11px;+ font-size: 13px;}.train-est-value {font-family: var(--ph-font-mono);@@ -5921,7 +5933,7 @@text-align: center;color: var(--muted);padding: 8px 8px;- font-size: 12px;+ font-size: 13px;pointer-events: none;}.train-voice-empty .picker-icon {@@ -5950,7 +5962,7 @@display: flex;align-items: center;gap: 8px;- font-size: 12.5px;+ font-size: 13px;}.train-voice-icon { width: 16px; height: 16px; color: var(--accent-bright); flex-shrink: 0; }.train-voice-filename {@@ -5961,7 +5973,7 @@}.train-voice-meta {color: var(--muted);- font-size: 11px;+ font-size: 13px;margin-left: auto;flex-shrink: 0;}@@ -6027,7 +6039,7 @@.train-voice-toggle-label { color: var(--text); white-space: nowrap; }.train-voice-inline-error {color: #d29922;- font-size: 11.5px;+ font-size: 13px;line-height: 1.4;margin-top: 6px;padding: 6px 10px;@@ -6037,7 +6049,7 @@}.train-voice-toggle-hint {color: var(--muted);- font-size: 11px;+ font-size: 13px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;@@ -6050,7 +6062,7 @@}.train-voice-help {color: var(--muted);- font-size: 11.5px;+ font-size: 13px;line-height: 1.45;margin: 10px 0 0;}@@ -6066,7 +6078,7 @@border: 1px solid var(--ph-border-soft);border-radius: 8px;background: rgba(16, 16, 17, 0.35);- font-size: 12px;+ font-size: 13px;}.train-lora-row .tl-name {font-family: var(--ph-font-mono);@@ -6077,12 +6089,12 @@white-space: nowrap;}.train-lora-row .tl-trigger {- font-size: 11px;+ font-size: 13px;color: var(--accent);font-family: var(--ph-font-mono);}.train-lora-row .tl-size {- font-size: 11px;+ font-size: 13px;color: var(--muted);font-family: var(--ph-font-mono);}@@ -6096,7 +6108,7 @@display: inline-flex;align-items: center;padding: 4px 10px;- font-size: 12px;+ font-size: 13px;color: var(--accent-bright);background: rgba(255, 255, 255, 0.040);border: 1px solid rgba(47, 129, 247, 0.22);@@ -6124,7 +6136,7 @@.train-lora-verdict {margin-left: 6px;padding: 0 5px;- font-size: 11px; font-weight: 700; letter-spacing: 0.06em;+ font-size: 13px; font-weight: 700; letter-spacing: 0.06em;font-family: var(--ph-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);color: var(--warning);border: 1px solid rgba(210, 153, 34, 0.48);@@ -6138,14 +6150,14 @@border-radius: 8px;border: 1px solid rgba(210, 153, 34, 0.36);background: rgba(210, 153, 34, 0.08);- font-size: 12px;+ font-size: 13px;line-height: 1.55;}.train-verdict-head { color: var(--warning); margin-bottom: 4px; }.train-verdict-body { color: var(--muted); }.train-verdict-how { margin-top: 6px; opacity: 0.85; }.train-verdict-how code {- font-size: 11px;+ font-size: 13px;/* `anywhere`, not `break-all`: the command breaks at its spaces beforeit will ever split `safetensors` down the middle. */overflow-wrap: anywhere;@@ -6178,14 +6190,14 @@color: inherit; /* picks up muted/active colour from .pill-btn */}.pill-quality .ql-spec {- font-size: 11px;+ font-size: 13px;color: var(--text);opacity: 0.85;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;letter-spacing: 0;}.pill-quality .ql-tier {- font-size: 11px;+ font-size: 13px;color: var(--muted);letter-spacing: 0.04em;text-transform: uppercase;@@ -6204,13 +6216,13 @@for this mode"). Sits where the surface just changed, not in theheader where the click happened. Blank + hidden when nothing snapped. */.engine-note {- font-size: 11.5px; line-height: 1.45; color: var(--muted);+ font-size: 13px; line-height: 1.45; color: var(--muted);margin: 0 0 10px 0; padding-left: 8px;border-left: 2px solid var(--warning, #d29922);}.engine-note[hidden], .engine-note:empty { display: none !important; }.engine-hint {- font-size: 11.5px; color: var(--muted);+ font-size: 13px; color: var(--muted);margin: -4px 0 10px 0; padding: 0 2px;border-left: 2px solid var(--eng-soft, var(--accent, #8b7bff));padding-left: 8px; line-height: 1.4;@@ -6258,14 +6270,14 @@.h3-speed .h3-speed-group .pill-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; }.h3-speed .h3-turbo-note { margin-top: 6px; }/* Upscale & Face Fix beside Generate. */- .form-action-footer .h3-facefix-footer { margin: 2px 0 8px; font-size: 12px; }+ .form-action-footer .h3-facefix-footer { margin: 2px 0 8px; font-size: 13px; }.form-action-footer .h3-facefix-footer .cz-label-hint { display: inline; margin-left: 6px; }/* The honest one-liner under the Speed control. Shown only while Turbo ison, so it describes the render being queued rather than advertising.Shares .cz-note's metrics with the export note so the two sentencesunder two Customize controls read as the same kind of thing. */.h3-turbo-note, .cz-note {- font-size: 11px; line-height: 1.45; color: var(--muted);+ font-size: 13px; line-height: 1.45; color: var(--muted);margin: 7px 0 0 0; max-width: 62ch;}.h3-turbo-note[hidden], .cz-note[hidden] { display: none !important; }@@ -6285,7 +6297,7 @@.cz-summary {display: flex; align-items: center; gap: 10px;padding: 8px 12px;- font-size: 12px;+ font-size: 13px;color: var(--muted);user-select: none;transition: background 100ms;@@ -6306,12 +6318,12 @@}.cz-summary .cz-title {font-weight: 600;- font-size: 12px;+ font-size: 13px;letter-spacing: 0;}.cz-summary .cz-meta {margin-left: auto;- font-size: 11px; font-weight: 400;+ font-size: 13px; font-weight: 400;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}@@ -6326,7 +6338,7 @@the fold for every .cz-control rather than one id at a time. */.cz-control[hidden] { display: none !important; }.cz-label {- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;color: var(--muted);text-transform: uppercase;letter-spacing: 0.06em;@@ -6337,7 +6349,7 @@font-weight: 400;letter-spacing: 0;text-transform: none;- font-size: 11px;+ font-size: 13px;color: var(--muted);opacity: 0.85;}@@ -6346,7 +6358,7 @@/* FILM-44: the signpost from Storyboard's raw Soundtrack box to theAudio tab's real Music Video planner. */.sb-track-signpost {- font-size: 11px; color: var(--muted); margin-top: 6px;+ font-size: 13px; color: var(--muted); margin-top: 6px;}.sb-track-signpost a { color: var(--accent-bright, var(--accent)); }@@ -6366,7 +6378,7 @@background: rgba(255,255,255,0.02);}.kf-toggle-label {- font-size: 11px;+ font-size: 13px;font-weight: 600;text-transform: uppercase;letter-spacing: 0.5px;@@ -6374,12 +6386,12 @@white-space: nowrap;}.kf-toggle-chip.pill-btn {- font-size: 12px;+ font-size: 13px;padding: 3px 10px;}.kf-sub {display: block;- font-size: 11px;+ font-size: 13px;font-weight: 400;opacity: 0.6;line-height: 1.1;@@ -6397,9 +6409,9 @@.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }- .check { display: flex; align-items: center; gap: 8px; margin: 10px 0; cursor: pointer; color: var(--text); font-size: 12px; }+ .check { display: flex; align-items: center; gap: 8px; margin: 10px 0; cursor: pointer; color: var(--text); font-size: 13px; }.check input { width: auto; margin: 0; }- .hint { color: var(--muted); font-size: 11px; margin-top: 4px; }+ .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }/* SYS-24: this is a same-page href="#" link, so after the first clickit's :visited — and unstyled :visited defaults to the browser's owndull purple/dark-blue, which read as "dark blue on navy, nearly@@ -6415,7 +6427,7 @@.warn-banner {background: rgba(210,153,34,0.08); border: 1px solid rgba(210,153,34,0.4);color: var(--warning); padding: 8px 11px; border-radius: 6px; margin: 8px 0;- font-size: 11px; display: none;+ font-size: 13px; display: none;}.warn-banner.show { display: block; }@@ -6446,12 +6458,12 @@button.danger:disabled { opacity: 0.4; cursor: not-allowed; }.actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 14px; }button.small {- width: auto; padding: 6px 10px; font-size: 11px;+ width: auto; padding: 6px 10px; font-size: 13px;background: var(--panel-2); font-weight: 500; cursor: pointer;}button.small:hover { border-color: var(--accent); }- details summary { cursor: pointer; color: var(--muted); font-size: 11px; padding: 4px 0; }+ details summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }details summary:hover { color: var(--text); }details[open] summary { margin-bottom: 6px; }@@ -6492,7 +6504,7 @@border: 1px solid transparent;border-radius: var(--r-sm);color: var(--muted);- font-size: 12px; font-weight: 600;+ font-size: 13px; font-weight: 600;cursor: pointer;transition: var(--t-fast);letter-spacing: 0;@@ -6513,7 +6525,7 @@box-shadow: var(--shadow-1);}.mode-bar .mode-chip .mc-sub {- font-size: 11px;+ font-size: 13px;font-weight: 500;color: var(--muted);letter-spacing: 0.02em;@@ -6618,7 +6630,7 @@(H3: no negative prompt, no Gemma rewrite). Sized to read as a caption,not as a disabled button. */.composer-tools .ct-hint {- font-size: 11px; line-height: 1.4;+ font-size: 13px; line-height: 1.4;color: var(--muted); opacity: 0.85;flex: 1 1 220px; min-width: 0;}@@ -6633,19 +6645,19 @@}.h3-prompt-helper .ct-spacer { flex: 1 1 auto; }.h3-prompt-helper select#h3DialogueLang {- font-size: 12px; padding: 4px 6px;+ font-size: 13px; padding: 4px 6px;background: var(--panel-2, var(--panel)); color: var(--text);border: 1px solid var(--border); border-radius: 6px;}.h3-prompt-helper-words {- font-size: 11px; color: var(--muted); white-space: nowrap;+ font-size: 13px; color: var(--muted); white-space: nowrap;}.h3-prompt-helper-words.over-budget {color: var(--warn, #e8b341); font-weight: 600;}.h3-prompt-helper-warn {display: inline-flex; align-items: center; gap: 5px;- font-size: 11px; color: var(--warn, #e8b341);+ font-size: 13px; color: var(--warn, #e8b341);white-space: nowrap;}.h3-prompt-helper-warn .ph { width: 13px; height: 13px; }@@ -6656,7 +6668,7 @@.lang-hint {display: flex; align-items: center; gap: 12px; flex-wrap: wrap;margin-top: 6px; padding: 6px 10px;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);background: var(--accent-dim); border: 1px solid var(--accent);border-radius: var(--r-sm);}@@ -6678,18 +6690,18 @@.enhance-panel-body { grid-template-columns: 1fr; }}.enhance-panel-label {- font-size: 11px; font-weight: 600; text-transform: uppercase;+ font-size: 13px; font-weight: 600; text-transform: uppercase;letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px;}.enhance-panel-text {- font-size: 12px; line-height: 1.45; color: var(--text);+ font-size: 13px; line-height: 1.45; color: var(--text);max-height: 160px; overflow-y: auto; white-space: pre-wrap;}.enhance-panel-actions {display: flex; align-items: center; gap: 8px; margin-top: 10px;}.enhance-panel-note {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);}/* Avoid disclosure — collapsed by default. When opened, thetextarea sits outside the composer-card (in its own panel below)@@ -6702,12 +6714,12 @@.avoid-row .avoid-label {display: flex; align-items: center; gap: 8px;margin: 0 0 5px 2px;- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;color: var(--muted);text-transform: uppercase; letter-spacing: 0.08em;}.avoid-row .avoid-label .avoid-hint {- font-weight: 400; font-size: 11px;+ font-weight: 400; font-size: 13px;letter-spacing: 0; text-transform: none;color: var(--muted); opacity: 0.7;}@@ -6716,7 +6728,7 @@itself dims (avoid-textarea.is-ignored below) so the whole controlreads as "off", not just the note. */.avoid-ignored-note {- font-size: 11px; color: var(--warning);+ font-size: 13px; color: var(--warning);margin: 0 0 6px 2px;}.avoid-ignored-note a {@@ -6739,7 +6751,7 @@once it's active (.ct-link.active below takes over). */border: 1px solid var(--border);color: var(--muted);- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;border-radius: var(--r-xs);cursor: pointer;transition: var(--t-fast);@@ -6756,7 +6768,7 @@.composer-card h2,.customize-section h2,.composer-refs h2 {- font-size: 11px;+ font-size: 13px;margin: 0 0 6px;color: var(--muted);text-transform: uppercase;@@ -6778,19 +6790,19 @@margin-bottom: 6px;}.quick-settings .qs-label .qs-name {- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;color: var(--muted);text-transform: uppercase; letter-spacing: 0.08em;}.quick-settings .qs-label .qs-meta {- font-size: 11px;+ font-size: 13px;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}/* VC-34: a second, visible door into the Tier dialog, right where aquality choice actually gets made. */.tier-quick-link {- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;color: var(--muted); text-decoration: none;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;border-bottom: 1px dotted var(--border-strong);@@ -6824,7 +6836,7 @@gap: 8px;margin-top: 8px;padding: 5px 10px;- font-size: 11.5px;+ font-size: 13px;color: var(--ph-text-faint, var(--muted));cursor: pointer;user-select: none;@@ -6847,7 +6859,7 @@.char-skipstep-label { font-weight: 500; }.char-skipstep-hint {opacity: 0.7;- font-size: 11px;+ font-size: 13px;}.quality-strip .q-chip {display: flex; flex-direction: column; align-items: center; gap: 2px;@@ -6856,7 +6868,7 @@border: 1px solid transparent;border-radius: var(--r-sm);color: var(--muted);- font-size: 12px; font-weight: 600;+ font-size: 13px; font-weight: 600;cursor: pointer;transition: var(--t-fast);width: 100%;@@ -6900,7 +6912,7 @@font-weight: 700;}.quality-strip .q-chip .q-spec {- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;color: inherit; opacity: 0.7;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;letter-spacing: 0;@@ -6924,7 +6936,7 @@display: flex; flex-direction: column; gap: 4px;}.mini-fields .mf-label {- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;color: var(--muted);text-transform: uppercase; letter-spacing: 0.08em;display: inline-flex; align-items: baseline; gap: 6px;@@ -6933,7 +6945,7 @@constraint inline (e.g. "8k+1", "-1 = random") instead ofhiding it in a title= tooltip the user might never hover. */.mini-fields .mf-label .mf-hint {- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;color: var(--muted);opacity: 0.7;text-transform: none; letter-spacing: 0.02em;@@ -7017,18 +7029,18 @@background: rgba(240, 185, 64, 0.08);border: 1px solid rgba(240, 185, 64, 0.35);border-radius: var(--r-pill);- font-size: 11px;+ font-size: 13px;color: var(--text);width: fit-content;}.seed-lock-chip::before {content: '🔒';- font-size: 11px;+ font-size: 13px;}.seed-lock-clear {width: auto; padding: 0 4px;background: transparent; border: 0; color: var(--muted);- cursor: pointer; font-size: 12px; line-height: 1;+ cursor: pointer; font-size: 13px; line-height: 1;}.seed-lock-clear:hover { color: var(--danger, #f85149); }.form-action-footer .actions .primary {@@ -7052,7 +7064,7 @@.form-action-footer .queue-strip .qchip {width: auto;padding: 4px 10px;- font-size: 11px;+ font-size: 13px;background: transparent;border: 1px solid var(--border);color: var(--muted);@@ -7074,7 +7086,7 @@just a hover/focus cue to signal it's clickable. */.form-action-footer .queue-strip .qchip-derived {width: auto;- font-size: 11px;+ font-size: 13px;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;padding: 4px 0;@@ -7149,7 +7161,7 @@width: auto; /* the panel-wide reset makes every button width:100% */height: 30px; padding: 0 14px; box-sizing: border-box;background: transparent; border: 1px solid var(--border, #282829);- color: var(--text-dim, #9aa6bd); font: inherit; font-size: 12.5px;+ color: var(--text-dim, #9aa6bd); font: inherit; font-size: 13px;border-radius: 9px; cursor: pointer;transition: color .12s, border-color .12s, background .12s; white-space: nowrap;}@@ -7159,14 +7171,14 @@.ideo-stage-bar .isb-toggle {display: inline-flex; align-items: center; gap: 6px; height: 30px;padding: 0 4px; box-sizing: border-box;- font-size: 12px; color: var(--muted, #9aa6bd); cursor: pointer;+ font-size: 13px; color: var(--muted, #9aa6bd); cursor: pointer;}.ideo-stage-bar .isb-toggle input { accent-color: var(--accent, #2f81f7); cursor: pointer; }.ideo-stage-bar .isb-select {appearance: none; height: 30px; box-sizing: border-box;width: 118px; /* size to the closed label, not the longest option */background: var(--bg-2, #0f0f10); border: 1px solid var(--border, #282829);- color: var(--text-dim, #9aa6bd); font: inherit; font-size: 12.5px;+ color: var(--text-dim, #9aa6bd); font: inherit; font-size: 13px;padding: 0 26px 0 12px; border-radius: 9px; cursor: pointer;transition: color .12s, border-color .12s;}@@ -7180,7 +7192,7 @@}body[data-workflow="studio"].ideo-canvas-on #stageModeToggle .smt-btn {appearance: none; border: 0; background: transparent;- color: var(--text-dim, #9aa6bd); font: inherit; font-size: 12.5px;+ color: var(--text-dim, #9aa6bd); font: inherit; font-size: 13px;font-weight: 600; padding: 4px 14px; height: 22px; box-sizing: border-box;display: inline-flex; align-items: center; border-radius: 7px;cursor: pointer; transition: background .12s, color .12s;@@ -7303,24 +7315,6 @@radial-gradient(circle at 50% 47%, rgba(88,166,255,.13), transparent 28%),linear-gradient(155deg, #09090a, #050506 72%);}- .live-stage-warming-mark {- width: 66px; height: 44px;- color: var(--accent-bright);- opacity: .62;- animation: liveStageBreathe 2.8s ease-in-out infinite;- filter: drop-shadow(0 0 18px rgba(88,166,255,.28));- }- .live-stage-warming strong {- font-size: 14px; font-weight: 600; letter-spacing: .01em;- color: rgba(238,244,255,.9);- }- .live-stage-warming span {- font-size: 12px; color: rgba(184,198,230,.56);- }- @keyframes liveStageBreathe {- 0%,100% { opacity:.38; transform:scale(.98) }- 50% { opacity:.76; transform:scale(1.025) }- }/* Completion handoff: keep the last forming frame underneath until thefinished video has decoded a real frame. No empty player between them. */.player-wrap .player-handoff-backdrop,@@ -7368,7 +7362,7 @@margin-top: 4px;}.ps-empty-sub {- font-size: 12px; color: var(--muted);+ font-size: 13px; color: var(--muted);line-height: 1.5;}@@ -7401,7 +7395,7 @@letter-spacing: -0.005em;}.po-meta {- font-size: 11px;+ font-size: 13px;color: rgba(255, 255, 255, 0.62);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;display: inline-flex; gap: 6px;@@ -7443,7 +7437,7 @@border: 1px solid transparent;border-radius: var(--r-sm);color: rgba(255,255,255,0.82);- font-size: 11.5px; font-weight: 500;+ font-size: 13px; font-weight: 500;cursor: pointer;transition: var(--t-fast);letter-spacing: 0;@@ -7516,7 +7510,7 @@display: flex; align-items: center; gap: 8px;width: 100%; padding: 7px 10px;background: none; border: none; border-radius: 6px;- color: inherit; font-size: 12.5px; text-align: left;+ color: inherit; font-size: 13px; text-align: left;cursor: pointer;}.kebab-pop button:hover { background: rgba(255,255,255,0.08); }@@ -7577,7 +7571,7 @@background-repeat: no-repeat;background-position: center;color: transparent;- font-size: 11.5px;+ font-size: 13px;cursor: pointer;transition: var(--t-fast);}@@ -7679,7 +7673,7 @@border-radius: var(--r-pill);border: 1px solid rgba(255,255,255,.24);background: rgba(11, 11, 12,.62);- font-size: 11px; font-weight: 750; letter-spacing: .1em;+ font-size: 13px; font-weight: 750; letter-spacing: .1em;box-shadow: 0 0 18px rgba(248,81,73,.14);}.live-stage-badge::before {@@ -7694,7 +7688,7 @@white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}.live-stage-eta {- margin-top: 3px; font-size: 11.5px;+ margin-top: 3px; font-size: 13px;color: rgba(226,235,255,.66);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}@@ -7707,7 +7701,7 @@border: 1px solid rgba(255,255,255,.2);background: rgba(11, 11, 12,.68);color: rgba(255,255,255,.9);- font: inherit; font-size: 11.5px; font-weight: 600;+ font: inherit; font-size: 13px; font-weight: 600;cursor: pointer;backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);transition: background var(--t-fast), border-color var(--t-fast);@@ -7730,7 +7724,7 @@border: 1px solid rgba(88,166,255,.42);background: rgba(8, 8, 9,.78);color: #dceaff;- font: inherit; font-size: 11.5px; font-weight: 650;+ font: inherit; font-size: 13px; font-weight: 650;white-space: nowrap;cursor: pointer;backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);@@ -7763,7 +7757,7 @@box-shadow: 0 8px 24px rgba(0,0,0,.4);}.one-shot-recovery-bar #oneShotRecoveryText {- flex: 1 1 auto; min-width: 0; color: #f4e3b0; font-size: 12px;+ flex: 1 1 auto; min-width: 0; color: #f4e3b0; font-size: 13px;}.one-shot-recovery-bar button { width: auto; flex: 0 0 auto; }.live-return-chip:hover {@@ -7804,7 +7798,7 @@flex-wrap: wrap;}.carousel-head h3 {- margin: 0; font-size: 11px; color: var(--muted);+ margin: 0; font-size: 13px; color: var(--muted);text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;flex: 0 0 auto;}@@ -7821,7 +7815,7 @@border-radius: var(--r-sm);}.carousel-head .seg button {- width: auto; padding: 4px 10px; font-size: 11px;+ width: auto; padding: 4px 10px; font-size: 13px;background: transparent;border: 1px solid transparent;border-radius: var(--r-xs);@@ -7850,7 +7844,7 @@.stage-outputs-filter button {width: auto;padding: 3px 10px;- font-size: 11px;+ font-size: 13px;font-weight: 500;color: var(--muted);background: transparent;@@ -7995,7 +7989,7 @@flex: 1;width: auto;padding: 4px 6px;- font-size: 11px;+ font-size: 13px;font-weight: 500;background: rgba(255,255,255,0.10);border: 1px solid rgba(255,255,255,0.18);@@ -8107,7 +8101,7 @@}.oi-section { /* no border, no background — separation is purely typographic */ }.oi-section-title {- font-size: 11px;+ font-size: 13px;font-weight: 600;color: var(--muted);text-transform: uppercase;@@ -8129,7 +8123,7 @@}.oi-grid dt {color: var(--muted);- font-size: 12px;+ font-size: 13px;font-weight: 400;}.oi-grid dd {@@ -8142,11 +8136,11 @@.oi-grid dd code {background: rgba(255,255,255,0.04);padding: 1px 6px; border-radius: 3px;- font-size: 11.5px;+ font-size: 13px;color: var(--text);}.oi-prompt {- font-size: 12.5px; line-height: 1.55; color: var(--text);+ font-size: 13px; line-height: 1.55; color: var(--text);background: rgba(255,255,255,0.025);border-radius: var(--r-xs);padding: 12px 14px;@@ -8154,7 +8148,7 @@white-space: pre-wrap; word-break: break-word;}.oi-copy {- font-size: 11px;+ font-size: 13px;padding: 3px 10px;border-radius: 4px;border: 1px solid var(--border);@@ -8185,7 +8179,7 @@}.oi-lora-row .oi-lora-strength {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- color: var(--muted); font-size: 12px; flex: none;+ color: var(--muted); font-size: 13px; flex: none;}.oi-actions {display: flex; gap: 8px; justify-content: flex-end;@@ -8198,7 +8192,7 @@border-radius: 6px;background: var(--accent); color: white;border: 1px solid var(--accent);- font-size: 12px; font-weight: 600;+ font-size: 13px; font-weight: 600;cursor: pointer;transition: background 100ms;}@@ -8207,25 +8201,25 @@the gallery without hovering each card), denser typography. */.car-card .info {padding: 7px 9px 8px;- font-size: 11px;+ font-size: 13px;display: flex; flex-direction: column; gap: 2px;}.car-card .name {color: var(--text); font-weight: 500;- font-size: 11.5px;+ font-size: 13px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;letter-spacing: -0.005em;}.car-card .sub {color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px;+ font-size: 13px;}/* VC-36: quality/mode + size chip — "Balanced · 1280×720", the thirdline VC-36 asked for beside the prompt snippet and render time. */.car-card .card-chip-row {color: var(--accent-bright, #58a6ff);- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;letter-spacing: 0.02em;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}@@ -8305,7 +8299,7 @@.tabs button {width: auto;padding: 6px 12px;- font-size: 12px;+ font-size: 13px;background: transparent;border: 1px solid transparent;border-radius: var(--r-sm);@@ -8340,7 +8334,7 @@color: #fff;padding: 1px 6px;border-radius: var(--r-pill);- font-size: 11px; font-weight: 700;+ font-size: 13px; font-weight: 700;min-width: 18px;text-align: center;letter-spacing: 0;@@ -8357,7 +8351,7 @@.tabs button .badge.bump { animation: phos-badge-pop 280ms cubic-bezier(.34,1.56,.64,1); }.tabs .spacer { flex: 1; }.tabs .model-credit {- font-size: 11px;+ font-size: 13px;color: var(--muted);padding: 0 10px;text-decoration: none;@@ -8440,7 +8434,7 @@a log line nobody is tailing. */.now-card .meta .now-clamp-note {color: var(--warning);- font-size: 11px;+ font-size: 13px;}/* ---- the live-preview slot -------------------------------------------A fixed 16:9 box, always the same size once a render starts, so the@@ -8493,7 +8487,7 @@/* The one-line "your decoder is missing" note. Informational, not alarming:the render is fine, only the preview of it is absent. */.now-preview-missing {- font-size: 11.5px; color: var(--muted);+ font-size: 13px; color: var(--muted);padding: 6px 2px 0; line-height: 1.45;/* Own line, full width — see the .now-card wrap note above. */flex: 0 0 100%; width: 100%; min-width: 0;@@ -8524,7 +8518,7 @@border: 1px solid var(--border);background: rgba(255,255,255,0.04);color: var(--muted);- font-size: 11.5px;+ font-size: 13px;font-weight: 500;cursor: pointer;transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);@@ -8556,7 +8550,7 @@letter-spacing: -0.005em;}.now-card .meta {- margin-top: 6px; font-size: 11.5px;+ margin-top: 6px; font-size: 13px;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;line-height: 1.55;@@ -8584,7 +8578,7 @@so it reads as actionable distinct from neutral chrome. */.retry-btn {padding: 2px 9px;- font-size: 11px;+ font-size: 13px;background: rgba(255, 168, 0, 0.08);border: 1px solid rgba(255, 168, 0, 0.45);color: #ffb84a;@@ -8611,7 +8605,7 @@border: 1px solid var(--border);background: var(--panel);margin-bottom: 5px;- font-size: 11.5px;+ font-size: 13px;transition: var(--t-fast);}.row-list li:hover {@@ -8622,7 +8616,7 @@color: var(--muted);font-weight: 600;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px;+ font-size: 13px;min-width: 26px;}.row-list li .ttl, .row-list li .params {@@ -8633,7 +8627,7 @@font-weight: 500;}.row-list li .params {- color: var(--muted); font-size: 11px;+ color: var(--muted); font-size: 13px;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}.row-list li .err-inline {@@ -8656,7 +8650,7 @@}/* Status badge — solid pill, color-coded. */.row-list li .badge {- font-size: 11px;+ font-size: 13px;text-transform: uppercase;letter-spacing: 0.08em;padding: 2px 7px;@@ -8734,7 +8728,7 @@display: flex; align-items: center; justify-content: space-between;gap: 10px; padding: 8px 12px; margin-bottom: 8px;background: var(--accent-dim); border: 1px solid var(--accent);- border-radius: var(--r-sm); font-size: 11.5px; color: var(--text);+ border-radius: var(--r-sm); font-size: 13px; color: var(--text);}.queue-edit-banner-actions { display: flex; gap: 6px; flex: none; }@@ -8749,7 +8743,7 @@.row-list-filter button {width: auto;padding: 3px 10px;- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;background: transparent;border: 1px solid var(--border);color: var(--muted);@@ -8775,7 +8769,7 @@border: 1px solid var(--border);border-radius: var(--r-sm);padding: 11px 13px;- font: 11px/1.55 ui-monospace, "SF Mono", Menlo, monospace;+ font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace;color: #aab4c4;margin: 0;max-height: 220px; overflow-y: auto;@@ -8804,12 +8798,12 @@}.modal h3 { margin: 0 0 12px; font-size: 14px; }.modal textarea.batch {- flex: 1 1 auto; min-height: 280px; font: 11px/1.5 ui-monospace, "SF Mono", Menlo, monospace;+ flex: 1 1 auto; min-height: 280px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;}.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }/* Empty state */- .empty-state { color: var(--muted); font-size: 12px; padding: 14px 0; text-align: center; }+ .empty-state { color: var(--muted); font-size: 13px; padding: 14px 0; text-align: center; }/* ----- Image picker (FFLF + I2V) -----Replaces the old `<input>` with a path placeholder that confused@@ -8842,7 +8836,7 @@.picker-icon { font-size: 28px; margin-bottom: 6px; line-height: 1; color: var(--accent-bright); }.picker-icon .ph { width: 32px; height: 32px; opacity: 0.85; }.picker-cta { font-size: 13px; color: var(--fg, #d8e0ee); margin-bottom: 4px; }- .picker-empty .hint { font-size: 11px; color: var(--muted); }+ .picker-empty .hint { font-size: 13px; color: var(--muted); }.picker-preview {max-width: 100%; max-height: 240px;display: block; margin: 0 auto;@@ -8860,7 +8854,7 @@.picker-uploading {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;background: rgba(0,0,0,0.55); border-radius: 8px;- color: var(--fg, #d8e0ee); font-size: 12px;+ color: var(--fg, #d8e0ee); font-size: 13px;}/* ---- Crop-preview overlay (VC-29 / H3-01 / VA-02) -------------------Positioned in PIXELS by JS against the <img>'s own rendered box@@ -8893,7 +8887,7 @@left: 50%; bottom: 6px; transform: translateX(-50%);background: rgba(0,0,0,0.72);color: var(--warning, #d29922);- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;padding: 3px 8px; border-radius: 999px;white-space: nowrap;pointer-events: none;@@ -8903,7 +8897,7 @@}.crop-quick-btn {flex: 1;- font-size: 11px;+ font-size: 13px;padding: 4px 6px;border-radius: 6px;border: 1px solid var(--border, #272728);@@ -8919,7 +8913,7 @@}.picker-recent { margin-top: 8px; }.picker-recent-label {- font-size: 11px; color: var(--muted); margin-bottom: 4px;+ font-size: 13px; color: var(--muted); margin-bottom: 4px;}.picker-recent-strip {display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;@@ -8977,7 +8971,7 @@position: absolute; bottom: 4px; left: 4px;min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;display: flex; align-items: center; justify-content: center;- font-size: 11px; font-weight: 600; line-height: 1;+ font-size: 13px; font-weight: 600; line-height: 1;background: rgba(0,0,0,0.62); color: #fff;}@@ -9042,7 +9036,7 @@color: var(--text);}.loras-summary .loras-meta {- margin-left: auto; font-size: 11px; font-weight: 500;+ margin-left: auto; font-size: 13px; font-weight: 500;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}@@ -9074,7 +9068,7 @@border: 1px solid var(--accent);background: var(--accent);color: white;- font-size: 11.5px; font-weight: 600;+ font-size: 13px; font-weight: 600;cursor: pointer;letter-spacing: 0.01em;white-space: nowrap;@@ -9109,7 +9103,7 @@.lora-filter {width: 100%; padding: 8px 11px; border-radius: 6px;border: 1px solid var(--border-strong); background: var(--bg-2);- color: var(--text); font-size: 12px;+ color: var(--text); font-size: 13px;box-sizing: border-box;}.lora-filter:focus {@@ -9155,12 +9149,12 @@box-shadow: inset 0 0 0 3px var(--bg, #0c0c0d);}.lora-row .lora-name {- font-size: 12px; font-weight: 500; color: var(--text);+ font-size: 13px; font-weight: 500; color: var(--text);overflow: hidden; text-overflow: ellipsis; white-space: nowrap;min-width: 0;}.lora-row .lora-name .badge {- display: inline-block; font-size: 11px; font-weight: 600;+ display: inline-block; font-size: 13px; font-weight: 600;letter-spacing: 0.04em; text-transform: uppercase;padding: 1px 5px; border-radius: 999px; margin-left: 6px;border: 1px solid var(--accent); color: var(--accent-bright);@@ -9175,7 +9169,7 @@background: rgba(89, 200, 130, 0.10);}.lora-row .lora-name-meta {- font-size: 11px; color: var(--muted); margin-top: 1px;+ font-size: 13px; color: var(--muted); margin-top: 1px;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}@@ -9192,7 +9186,7 @@width: 22px; height: 22px; padding: 0;border-radius: 4px; border: 1px solid transparent;background: transparent;- color: var(--muted); font-size: 12px; line-height: 1;+ color: var(--muted); font-size: 13px; line-height: 1;cursor: pointer; display: inline-flex; align-items: center;justify-content: center; text-decoration: none;}@@ -9233,7 +9227,7 @@padding-top: 7px;}.lora-row .lora-strength-row label {- font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;+ font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;color: var(--muted); width: 52px; flex: none;}/* Slider needs the same chrome reset as .range-strip — the generic@@ -9259,14 +9253,14 @@.lora-row .lora-strength-row input[type="number"],#genForm .lora-row .lora-strength-row input[type="number"] {flex: none; width: 68px;- padding: 2px 5px; font-size: 11px; text-align: right;+ padding: 2px 5px; font-size: 13px; text-align: right;}.lora-row .trigger-chips {display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px;}.lora-row .trigger-chip {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; padding: 2px 7px; border-radius: 999px;+ font-size: 13px; padding: 2px 7px; border-radius: 999px;background: rgba(255,255,255,0.04);border: 1px solid var(--border); color: var(--text);cursor: pointer; user-select: none;@@ -9392,7 +9386,7 @@background: linear-gradient(135deg, #5b6cd1 0%, #8a4fc8 100%);}.chars-avatar-chip .chars-avatar-name {- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;color: var(--muted);line-height: 1.1;max-width: 56px;@@ -9429,7 +9423,7 @@display: flex; align-items: center; gap: 10px;margin-top: 6px;padding: 4px 8px;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);background: rgba(255, 255, 255, 0.040);border: 1px solid rgba(47,129,247,0.18);border-radius: 4px;@@ -9438,12 +9432,12 @@.chars-strip-active code {background: rgba(140, 160, 220, 0.10);padding: 1px 5px; border-radius: 3px;- font-size: 11px; color: var(--accent-bright);+ font-size: 13px; color: var(--accent-bright);}.chars-strip-active .chars-inline-strength {margin-left: auto;display: inline-flex; align-items: center; gap: 6px;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);}.chars-strip-active .chars-inline-strength input[type="range"] {width: 96px;@@ -9451,7 +9445,7 @@}.chars-strip-active .chars-inline-strength output {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px;+ font-size: 13px;color: var(--text);min-width: 28px; text-align: right;}@@ -9464,7 +9458,7 @@border: 1px solid var(--ph-border-soft);border-radius: 4px;padding: 1px 6px;- font-size: 11px; font-family: var(--ph-font-mono);+ font-size: 13px; font-family: var(--ph-font-mono);color: var(--muted); cursor: pointer;white-space: nowrap;}@@ -9485,7 +9479,7 @@}.chars-strip-active .chars-split-line {display: flex; align-items: center; gap: 6px;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);}.chars-strip-active .chars-split-line > span:first-child {min-width: 34px;@@ -9495,7 +9489,7 @@}.chars-strip-active .chars-split-line output {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; color: var(--text);+ font-size: 13px; color: var(--text);min-width: 28px; text-align: right;}@@ -9506,7 +9500,7 @@.models-list li.kept .icon { color: var(--muted); }.chars-strip-empty {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);padding: 4px 2px;}.chars-strip-empty a { color: var(--accent-bright); }@@ -9526,7 +9520,7 @@.chars-q4-note { display: none; }body[data-q8-pack="missing"] .chars-q4-note {display: block;- font-size: 11px; line-height: 1.5;+ font-size: 13px; line-height: 1.5;color: var(--muted);padding: 4px 2px 2px;}@@ -9579,7 +9573,7 @@.chars-manage-row .cm-trigger {flex: 0 0 auto;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);padding: 3px 7px;background: rgba(140,160,220,0.06);border-radius: 3px;@@ -9590,7 +9584,7 @@}.chars-manage-row .cm-btn {padding: 4px 10px;- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;border-radius: 5px;border: 1px solid var(--border-strong);background: var(--panel-2);@@ -9657,7 +9651,7 @@color: var(--text);}.chars-summary .chars-meta {- margin-left: auto; font-size: 11px; font-weight: 500;+ margin-left: auto; font-size: 13px; font-weight: 500;color: var(--muted);font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}@@ -9685,7 +9679,7 @@gap: 10px; padding: 12px 14px 14px;}.chars-applied-note {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);padding: 6px 8px;border-radius: 4px;background: rgba(255, 255, 255, 0.040);@@ -9693,14 +9687,14 @@}.chars-applied-note strong { color: var(--accent-bright); font-weight: 600; }.chars-empty {- font-size: 11.5px; color: var(--muted);+ font-size: 13px; color: var(--muted);padding: 4px 0;}.chars-empty code {background: rgba(140, 160, 220, 0.06);padding: 1px 5px;border-radius: 3px;- font-size: 11px;+ font-size: 13px;}.chars-empty a {color: var(--accent-bright);@@ -9736,7 +9730,7 @@padding: 6px 12px;font-style: italic;color: var(--muted);- font-size: 11.5px;+ font-size: 13px;}.chars-chip.none-chip.active {color: var(--text); font-style: normal;@@ -9754,7 +9748,7 @@border-radius: 50%;flex: none;display: inline-flex; align-items: center; justify-content: center;- font-weight: 700; font-size: 12px;+ font-weight: 700; font-size: 13px;color: rgba(255,255,255,0.85);background: linear-gradient(135deg,rgba(255, 46, 159, 0.55),@@ -9767,12 +9761,12 @@min-width: 0;}.chars-chip .chars-name {- font-size: 12.5px; font-weight: 600;+ font-size: 13px; font-weight: 600;color: var(--text); line-height: 1.1;}.chars-chip .chars-trigger {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);line-height: 1.2;margin-top: 1px;}@@ -9781,7 +9775,7 @@margin-left: 4px;}.chars-chip .chars-badge {- font-size: 11px; font-weight: 600; letter-spacing: 0.04em;+ font-size: 13px; font-weight: 600; letter-spacing: 0.04em;text-transform: uppercase;padding: 1px 5px; border-radius: 999px;border: 1px solid currentColor;@@ -9804,14 +9798,14 @@}.chars-strength-row.show { display: flex; }.chars-strength-row label {- font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;+ font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;color: var(--muted); width: 70px; flex: none;}.chars-strength-row input[type="range"] {flex: 1; min-width: 0; accent-color: var(--accent);}.chars-strength-row input[type="number"] {- width: 54px; padding: 2px 5px; font-size: 11px; text-align: right;+ width: 54px; padding: 2px 5px; font-size: 13px; text-align: right;}/* CivitAI browser modal — grid of cards with thumbnail, name,@@ -9837,7 +9831,7 @@color: var(--dim, #7a8194); pointer-events: none; }.civitai-search-go {width: auto; flex: 0 0 auto; white-space: nowrap;- min-height: 36px; padding: 0 14px; font-size: 12px;+ min-height: 36px; padding: 0 14px; font-size: 13px;}.civitai-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));@@ -9855,7 +9849,7 @@.civitai-card .preview-empty {width: 100%; aspect-ratio: 16/10; background: var(--bg-2);display: flex; align-items: center; justify-content: center;- color: var(--muted); font-size: 11px;+ color: var(--muted); font-size: 13px;}.civitai-card .body { padding: 10px 12px; flex: 1;display: flex; flex-direction: column; gap: 4px; }@@ -9865,18 +9859,18 @@display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}.civitai-card .meta {- font-size: 11px; color: var(--muted);+ font-size: 13px; color: var(--muted);display: flex; gap: 10px; flex-wrap: wrap;}.civitai-card .nsfw-badge {- display: inline-block; font-size: 11px; font-weight: 700;+ display: inline-block; font-size: 13px; font-weight: 700;letter-spacing: 0.05em; padding: 1px 6px; border-radius: 999px;background: rgba(248,81,73,0.15); border: 1px solid var(--danger, #f85149);color: var(--danger, #f85149);}.civitai-card .civitai-source-link {color: var(--accent-bright, #7e98ff);- text-decoration: none; font-size: 11px;+ text-decoration: none; font-size: 13px;}.civitai-card .civitai-source-link:hover { text-decoration: underline; }.civitai-card .actions { padding: 0 12px 12px; }@@ -9884,7 +9878,7 @@/* 4.18.0: Cancel sits under the Install button while a CivitAI file downloads. */.civitai-card .actions .civitai-cancel-btn { margin-top: 6px; }.civitai-card .actions button[disabled] { font-variant-numeric: tabular-nums; }- .civitai-status-line { color: var(--muted); font-size: 11px; margin-top: 12px; }+ .civitai-status-line { color: var(--muted); font-size: 13px; margin-top: 12px; }.civitai-status-line.err { color: var(--danger, #f85149); }.civitai-status-line.ok { color: var(--success, #3fb950); }@@ -9895,7 +9889,7 @@margin: 4px 0 12px;padding: 10px 12px;border-radius: 8px;- font-size: 12px; line-height: 1.45;+ font-size: 13px; line-height: 1.45;display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}.civitai-auth.missing {@@ -9920,18 +9914,18 @@flex: 1; min-width: 180px;padding: 6px 8px; border-radius: var(--r-xs);border: 1px solid var(--border); background: var(--bg-2, #0c0c0d);- color: var(--text); font-size: 12px;+ color: var(--text); font-size: 13px;font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}.civitai-auth button {padding: 6px 12px; border-radius: var(--r-xs);background: var(--accent); color: white; border: none;- font-size: 12px; font-weight: 600; cursor: pointer;+ font-size: 13px; font-weight: 600; cursor: pointer;}.civitai-auth button:disabled { opacity: 0.6; cursor: default; }.civitai-auth a.changekey {color: var(--accent-bright, #7e98ff);- cursor: pointer; text-decoration: none; font-size: 11px;+ cursor: pointer; text-decoration: none; font-size: 13px;}.civitai-auth a.changekey:hover { text-decoration: underline; }@@ -9976,21 +9970,21 @@margin: 0 0 4px 0;}.preset-card .preset-blurb {- font-size: 11px; color: var(--muted); line-height: 1.4;+ font-size: 13px; color: var(--muted); line-height: 1.4;}.preset-card .preset-spec {font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 11px; color: var(--accent-bright);+ font-size: 13px; color: var(--accent-bright);margin-top: 4px; letter-spacing: 0.02em;}.settings-section { margin-top: 14px; }.settings-section h3 {- font-size: 11px; font-weight: 600; text-transform: uppercase;+ font-size: 13px; font-weight: 600; text-transform: uppercase;letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px 0;}.settings-row { display: flex; gap: 10px; align-items: center; }.settings-row label {- font-size: 11px; color: var(--muted); min-width: 70px;+ font-size: 13px; color: var(--muted); min-width: 70px;}/* Spicy mode toggle row — explicit state badge + button.OFF: muted neutral chip, button reads "Enable Spicy mode"@@ -10007,7 +10001,7 @@.spicy-state {display: inline-flex; align-items: center;padding: 3px 10px; border-radius: 999px;- font-size: 11px; font-weight: 700;+ font-size: 13px; font-weight: 700;letter-spacing: 0.08em;border: 1px solid var(--border);color: var(--muted);@@ -10038,11 +10032,11 @@.token-row { margin-bottom: 14px; }.token-row .token-label {display: flex; align-items: center; gap: 8px;- font-size: 12px; font-weight: 500; color: var(--text);+ font-size: 13px; font-weight: 500; color: var(--text);margin-bottom: 4px;}.token-row .token-status {- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;padding: 1px 7px; border-radius: 999px;border: 1px solid var(--border); color: var(--muted);letter-spacing: 0.05em; text-transform: uppercase;@@ -10060,7 +10054,7 @@}.token-row .token-row-input input {flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;- font-size: 12px; padding: 5px 9px;+ font-size: 13px; padding: 5px 9px;}.token-row .token-row-input button { flex-shrink: 0; }/* The primary action on each token row. Sized small to fit inline,@@ -10068,7 +10062,7 @@it instead of leaving the modal without saving. */.token-row .token-savetest {padding: 5px 11px;- font-size: 11.5px;+ font-size: 13px;font-weight: 600;}@@ -10077,7 +10071,7 @@margin-top: 18px; padding-top: 14px;border-top: 1px solid var(--border);}- .settings-status { color: var(--muted); font-size: 11px; flex: 1; align-self: center; }+ .settings-status { color: var(--muted); font-size: 13px; flex: 1; align-self: center; }.settings-status.ok { color: var(--success, #3fb950); }.settings-status.err { color: var(--danger, #f85149); }/* SYS-32: the circuit-breaker pause reason, shown above Generate.@@ -10097,7 +10091,7 @@background: rgba(210, 153, 34, 0.1);border: 1px solid rgba(210, 153, 34, 0.4);border-radius: 8px;- font-size: 12px; color: #f0d78c;+ font-size: 13px; color: #f0d78c;}.breaker-notice .ph { width: 15px; height: 15px; flex-shrink: 0; color: #d29922; }.breaker-notice span#breakerNoticeText { flex: 1; min-width: 0; line-height: 1.4; }@@ -10108,7 +10102,7 @@button.primary-btn {width: auto;background: var(--accent); color: white; border: 1px solid var(--accent);- padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;+ padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;cursor: pointer;}button.primary-btn:hover { background: var(--accent-bright); }@@ -10164,7 +10158,7 @@border-radius: 10px;box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);color: var(--text);- font-size: 12.5px;+ font-size: 13px;backdrop-filter: blur(12px);-webkit-backdrop-filter: blur(12px);animation: phos-toast-in 200ms cubic-bezier(.2,.8,.2,1);@@ -10203,7 +10197,7 @@.phos-toast.phos-toast-danger .ph { color: var(--danger); opacity: 1; }/* FILM-03: a repeated refusal bumps this instead of stacking a copy. */.phos-toast .phos-toast-count {- flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 11px;+ flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 13px;color: var(--muted); background: rgba(255, 255, 255, 0.08);border-radius: 999px; padding: 1px 7px;}@@ -10229,7 +10223,7 @@margin-bottom: 6px;}.models-head h2 { margin: 0; font-size: 18px; font-weight: 600; }- .models-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }+ .models-hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; }.models-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }.models-list li {display: grid; grid-template-columns: 24px 1fr auto; gap: 10px;@@ -10242,19 +10236,19 @@.models-list li .meta .ttl { font-weight: 500; font-size: 13px; }/* SYS-17: this truncated with an ellipsis, so a row's key fact (e.g."Needed to TRAIN a character...") was routinely the part cut off. */- .models-list li .meta .sub { font-size: 11px; color: var(--muted); white-space: normal; line-height: 1.4; }+ .models-list li .meta .sub { font-size: 13px; color: var(--muted); white-space: normal; line-height: 1.4; }/* SYS-42: the repo id + local path moved behind this disclosure so therow's one visible line is the outcome (what it unlocks / size /ready), not `dgrauet/ltx-2.3-mlx-q4 -> mlx_models/ltx-2.3-mlx-q4`. */.models-list li .model-row-details { margin-top: 2px; }.models-list li .model-row-details summary {- font-size: 11px; color: var(--accent-bright); cursor: pointer;+ font-size: 13px; color: var(--accent-bright); cursor: pointer;list-style: none; width: fit-content;}.models-list li .model-row-details summary::-webkit-details-marker { display: none; }.models-list li .model-row-details[open] summary { margin-bottom: 2px; }.models-list li .progress {- font-size: 11px; color: var(--muted); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;+ font-size: 13px; color: var(--muted); margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}.models-list li.ready { border-color: rgba(63,185,80,0.35); }@@ -10263,14 +10257,14 @@.models-list li.downloading { border-color: var(--accent, #5a7cff); animation: keyframes-modeldl 1.6s ease-in-out infinite; }@keyframes keyframes-modeldl { 50% { box-shadow: 0 0 0 3px rgba(90,124,255,0.18); } }.models-list li button {- padding: 6px 12px; font-size: 12px; border-radius: 6px;+ padding: 6px 12px; font-size: 13px; border-radius: 6px;background: var(--accent, #5a7cff); color: white; border: none; cursor: pointer;}.models-list li button[disabled] { opacity: 0.55; cursor: not-allowed; }.models-list li button.ghost {background: transparent; color: var(--muted); border: 1px solid var(--border, #272728);}- .models-foot { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.4; }+ .models-foot { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.4; }/* Expand lightbox — fullscreen modal for the active output. Sameoverlay pattern as .models-modal (fixed position, dark backdrop,@@ -10308,7 +10302,7 @@.expand-meta {flex: 0 0 auto;margin-top: 14px;- font-size: 12px;+ font-size: 13px;color: var(--muted, #9aa7c2);text-align: center;max-width: 90vw;@@ -10345,7 +10339,7 @@background: rgba(22, 22, 23,0.85);border: 1px solid var(--ph-border-strong, rgba(140,160,220,0.16));color: var(--text, #d8e0ee);- font-size: 12px;+ font-size: 13px;max-width: calc(100vw - 32px);flex-wrap: nowrap; justify-content: center; white-space: nowrap;}@@ -10532,7 +10526,7 @@background: var(--eng-dim, rgba(255,255,255,.06));border: 1px solid var(--eng-soft, var(--line, #212122));border-radius: 9px; color: var(--ink, #e8eaf0);- font-size: 12.5px; font-weight: 600; white-space: nowrap;+ font-size: 13px; font-weight: 600; white-space: nowrap;}.eng-trigger:hover { filter: brightness(1.12); }.eng-trigger .eng-mark { color: var(--eng-accent, currentColor); display: inline-flex; }@@ -10559,7 +10553,7 @@.eng-opt .eng-mark svg { width: 16px; height: 16px; }.eng-opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }.eng-opt-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }- .eng-opt-sub { font-size: 11.5px; color: var(--ink-500, #98a0b3); line-height: 1.35; }+ .eng-opt-sub { font-size: 13px; color: var(--ink-500, #98a0b3); line-height: 1.35; }.eng-tick { width: 13px; height: 13px; color: var(--eng-accent, currentColor); flex: 0 0 auto; margin-top: 3px; }/* LTX generation switch: a footer row inside the engine menu. */#engineMenu .eng-gen {@@ -10567,12 +10561,12 @@margin-top: 4px; padding: 8px 10px 6px;border-top: 1px solid var(--line, #212122);}- .eng-gen-label { font-size: 11.5px; font-weight: 600; color: var(--ink-500, #98a0b3); }+ .eng-gen-label { font-size: 13px; font-weight: 600; color: var(--ink-500, #98a0b3); }.eng-gen-btns { display: inline-flex; gap: 4px; }.eng-gen-btn {padding: 3px 10px; border-radius: 7px; cursor: pointer;border: 1px solid var(--line, #212122); background: transparent;- color: var(--ink, #e8eaf0); font-size: 12px; font-weight: 600;+ color: var(--ink, #e8eaf0); font-size: 13px; font-weight: 600;}.eng-gen-btn:hover { background: rgba(255,255,255,.05); }.eng-gen-btn.active {@@ -10584,7 +10578,7 @@#ltxGenSwitch.eng-gen-inline { margin-top: 9px; padding: 8px 0 0; border-top: 1px solid var(--line, #212122); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }#ltxGenSwitch[hidden] { display: none; }#ltxGenSwitch .eng-gen-note { flex: 1 1 auto; }- .eng-gen-note { flex: 1 0 100%; font-size: 11px; color: var(--ink-500, #98a0b3); line-height: 1.35; }+ .eng-gen-note { flex: 1 0 100%; font-size: 13px; color: var(--ink-500, #98a0b3); line-height: 1.35; }/* Inert = real but unreachable right now; still listed, visibly muted. */.eng-opt.inert { opacity: .58; }.eng-opt.needs-install .eng-badge.offer { color: var(--eng-accent, currentColor); }@@ -10594,9 +10588,15 @@text-transform: lowercase; letter-spacing: .02em; font-weight: 500;color: var(--eng-accent, var(--muted)); background: transparent;border: 1px dashed var(--eng-soft, var(--ph-border-soft)); margin-left: 6px;- font-size: 11px; line-height: 1.2; padding: 1px 5px; border-radius: 5px;+ font-size: var(--fs-2xs); line-height: 1.2; padding: 1px 5px; border-radius: 5px;}+ /* H3 Flex Turbo (5.0): the Pro tag, in the Pro chip's colours. */+ .eng-badge.eng-pro, body > header .eng-badge.eng-pro {+ font-weight: 600; letter-spacing: .02em; margin-left: 6px;+ font-size: var(--fs-2xs); line-height: 1.2; padding: 1px 5px; border-radius: 5px;+ color: #f4f4f5; background: linear-gradient(90deg, rgba(255,46,159,.35), rgba(94,234,255,.30));+ }body > header .engine-switch {flex-shrink: 0;}@@ -10640,118 +10640,42 @@drop-shadow(0 0 14px rgba(255, 95, 168, 0.55))drop-shadow(0 0 6px rgba(79, 214, 255, 0.35));}- /* THE MARK TURNS, SLOWLY (4.19.11) — phosphene.video's mark, in the app.- The banner PNG used to carry the rings; now the rings are six layered- <svg> boxes (index.html) and the img above is only the wordmark.- Each ring turns the opposite way from its neighbour (40-140 s a turn,- inner rings a little faster, so every rim moves at about the same- ~1.7 px/s), each breathes into a slight oval, the hue drifts, the- centre glows.-- WHAT IT COSTS, MEASURED (Chrome 1600x900 @2x, CDP trace + ps, only- the mark animating; docs/STATE.md 2026-10-22 has the table):- - Only transform, opacity and one hue filter animate, all on HTML- boxes, so no frame repaints or re-lays-out anything: the trace's- Paint count is the page's own idle number. Do not animate anything- INSIDE the <svg>s, and put no filter/shadow on a ring: either turns- every frame into a repaint. The glow is a static gradient- (.ph-mark-halo) for the same reason.- - Even compositor-only, a 60 fps animation keeps Chrome's GPU and- browser processes at ~+9% of a core. The motion is so slow (a rim- moves ~0.17 px per 0.1 s) that 10 updates a second look identical,- so every animation is STEPPED on one shared 0.1 s grid: durations- are whole multiples of 0.1 s per keyframe segment, delays are whole- seconds, and steps(N) per segment = segment seconds x 10. Off-grid- values would make the six rings tick at different moments and- bring the frame rate back up. Cost: ~+3% of a core, no paint.- - It turns ALL the time, renders included (owner, 2026-10-22: the- mark must never look stopped). Do not add a pause-while-rendering- rule back: the step grid is what keeps it cheap.- - A hidden tab / hidden app window stops the animation on its own.- test_logo_mark_motion.py pins all of this. */- body > header .ph-mark {- position: relative;- display: block;- flex: none;- width: 78px;- height: 78px;- animation: ph-mk-hue 48s steps(120) infinite alternate;- }- .ph-mark > span { position: absolute; inset: 0; display: block; }- .ph-mark .ph-mark-halo {- inset: -12px;- border-radius: 50%;- background: radial-gradient(circle closest-side,- rgba(255, 95, 168, 0.13) 0%, rgba(255, 255, 255, 0.040) 55%,- rgba(79, 214, 255, 0.035) 80%, rgba(79, 214, 255, 0) 100%);- }- .ph-mk-spin {- display: block;- width: 100%;- height: 100%;- overflow: visible;- fill: none;- stroke-width: 2.1;- stroke-linecap: round;- animation: ph-mk-turn var(--t) steps(var(--n)) infinite var(--dir);- }- /* --n = --t x 10 (one step per 0.1 s). */- .ph-mk-s0 { --t: 40s; --n: 400; --dir: normal; }- .ph-mk-s1 { --t: 52s; --n: 520; --dir: reverse; }- .ph-mk-s2 { --t: 66s; --n: 660; --dir: normal; }- .ph-mk-s3 { --t: 84s; --n: 840; --dir: reverse; }- .ph-mk-s4 { --t: 108s; --n: 1080; --dir: normal; }- .ph-mk-s5 { --t: 140s; --n: 1400; --dir: reverse; }- /* Breathe: 4 equal segments, so --b is a multiple of 0.4 s and- --n = --b / 4 x 10 (steps per segment); --bd whole seconds. */- .ph-mk-morph { animation: ph-mk-breathe var(--b) steps(var(--n)) var(--bd) infinite alternate; }- .ph-mk-m0 { --b: 8.8s; --n: 22; --bd: 0s; }- .ph-mk-m1 { --b: 10.8s; --n: 27; --bd: -3s; }- .ph-mk-m2 { --b: 12.8s; --n: 32; --bd: -7s; }- .ph-mk-m3 { --b: 10s; --n: 25; --bd: -2s; }- .ph-mk-m4 { --b: 14s; --n: 35; --bd: -9s; }- .ph-mk-m5 { --b: 12s; --n: 30; --bd: -5s; }- .ph-mark .ph-mark-core {- inset: auto;- left: calc(50% - 4px);- top: calc(50% - 4px);- width: 8px;- height: 8px;- border-radius: 50%;- background: radial-gradient(circle closest-side,- #f8e24e 0%, #f8e24e 42%, rgba(248, 226, 78, 0.35) 62%, rgba(248, 226, 78, 0) 100%);- animation: ph-mk-glow 6s steps(15) infinite alternate;- }- @keyframes ph-mk-turn { to { transform: rotate(360deg); } }- /* The site's breathe (wide, then tall, then round), as 4 equal- segments; the glow and hue follow an eased (cosine) curve the same- way, since a stepped segment is linear. */- @keyframes ph-mk-breathe {- 0% { transform: scale(1, 1); }- 25% { transform: scale(1.03, 0.978) rotate(3.5deg); }- 50% { transform: scale(1.002, 1.004) rotate(0.5deg); }- 75% { transform: scale(0.976, 1.03) rotate(-3deg); }- 100% { transform: scale(1.015, 1.015); }- }- @keyframes ph-mk-glow {- 0% { transform: scale(0.85); opacity: 0.85; }- 25% { transform: scale(0.894); opacity: 0.872; }- 50% { transform: scale(1); opacity: 0.925; }- 75% { transform: scale(1.106); opacity: 0.978; }- 100% { transform: scale(1.15); opacity: 1; }- }- @keyframes ph-mk-hue {- 0% { filter: hue-rotate(-14deg) saturate(1); }- 25% { filter: hue-rotate(-9.3deg) saturate(1.022); }- 50% { filter: hue-rotate(2deg) saturate(1.075); }- 75% { filter: hue-rotate(13.3deg) saturate(1.128); }- 100% { filter: hue-rotate(18deg) saturate(1.15); }- }+ /* Exact footer SVG motion from phosphene-site/src/styles/global.css. */+ body > header .ph-mark { position: relative; display: block; flex: none; width: 78px; height: 78px; }+ .ph-mark .foot-mark { display: block; width: 100%; height: 100%; overflow: visible; animation: fm-hue 48s ease-in-out infinite alternate; }+.foot-mark g { transform-box: fill-box; transform-origin: center; }+.fm-spin { animation: fm-turn var(--t) linear infinite var(--dir); }+.fm-morph { animation: fm-breathe var(--b) ease-in-out infinite alternate; animation-delay: var(--bd); }+.fm-s0 { --t: 70s; --dir: normal; }+.fm-s1 { --t: 95s; --dir: reverse; }+.fm-s2 { --t: 120s; --dir: normal; }+.fm-s3 { --t: 150s; --dir: reverse; }+.fm-s4 { --t: 185s; --dir: normal; }+.fm-s5 { --t: 230s; --dir: reverse; }+.fm-m0 { --b: 9s; --bd: 0s; }+.fm-m1 { --b: 11s; --bd: -3s; }+.fm-m2 { --b: 13s; --bd: -7s; }+.fm-m3 { --b: 10s; --bd: -2s; }+.fm-m4 { --b: 14s; --bd: -9s; }+.fm-m5 { --b: 12s; --bd: -5s; }+.fm-core { animation: fm-glow 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }+@keyframes fm-turn { to { transform: rotate(360deg); } }+@keyframes fm-breathe {+ 0% { transform: scale(1, 1); }+ 35% { transform: scale(1.035, 0.975) rotate(4deg); }+ 70% { transform: scale(0.975, 1.03) rotate(-3deg); }+ 100% { transform: scale(1.015, 1.015); }+}+@keyframes fm-glow { from { transform: scale(0.85); opacity: 0.85; } to { transform: scale(1.15); opacity: 1; } }+@keyframes fm-hue { from { filter: hue-rotate(-14deg); } to { filter: hue-rotate(18deg) saturate(1.15); } }++ /* Header uses the same motion at half speed. */+ body > header .fm-spin { animation-duration: calc(var(--t) * 2); }+ body > header .fm-morph { animation-duration: calc(var(--b) * 2); animation-delay: calc(var(--bd) * 2); }+ body > header .fm-core { animation-duration: 12s; }+ body > header .foot-mark { animation-duration: 96s; }@media (prefers-reduced-motion: reduce) {- body > header .ph-mark,- .ph-mark .ph-mk-morph,- .ph-mark .ph-mk-spin,- .ph-mark .ph-mark-core { animation: none !important; }+ .ph-mark .foot-mark, .ph-mark g, .ph-mark .fm-core { animation: none !important; }}/* (previous `.brand::after { content: 'Phosphene' }` removed2026-05-19 — wordmark text is now baked into the banner PNG so@@ -10776,7 +10700,7 @@body > header .profile-badge {margin: 0 0 0 4px;padding: 5px 10px;- font-size: 12px;+ font-size: 13px;font-family: var(--ph-font-mono);letter-spacing: 0.08em;font-weight: 600;@@ -10852,7 +10776,7 @@height: 28px; padding: 0 11px 0 5px;border-radius: 7px; border: 1px solid transparent; background: transparent;color: var(--muted);- font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .005em;+ font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .005em;cursor: pointer; white-space: nowrap;transition: color var(--t-base), background var(--t-base), border-color var(--t-base);}@@ -10891,7 +10815,7 @@body > header .eng-seg.inert:hover { background: transparent; color: var(--muted); }body > header .eng-badge {font-family: var(--ph-font-mono);- font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;+ font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;padding: 2px 6px; border-radius: 5px; margin-left: -2px;color: var(--muted);background: rgba(140, 160, 220, 0.08);@@ -10902,7 +10826,7 @@is derived from the ACTIVE model version, so it reads 2.5 here and 2.3for a user pinned back with LTX_MODEL_VERSION=ltx23. */body > header .eng-seg-gen {- font-size: 11px; font-weight: 600; letter-spacing: .3px;+ font-size: 13px; font-weight: 600; letter-spacing: .3px;color: var(--muted); margin-left: 5px; font-family: var(--ph-font-mono);}/* An offer (download / repair) is worth the engine's own colour; a plain@@ -10934,14 +10858,14 @@default — the paths are for the 1% of installs that half-land. */.h3-diag { margin: 0; }.h3-diag > summary {- cursor: pointer; font-size: 12px; color: var(--muted);+ cursor: pointer; font-size: 13px; color: var(--muted);list-style: none; user-select: none;}.h3-diag > summary::-webkit-details-marker { display: none; }.h3-diag > summary::before { content: '▸ '; }.h3-diag[open] > summary::before { content: '▾ '; }.h3-diag > p {- margin: 6px 0 0; font-size: 11.5px; color: var(--muted);+ margin: 6px 0 0; font-size: 13px; color: var(--muted);font-family: var(--ph-font-mono); word-break: break-all;}@@ -10981,37 +10905,45 @@body > header .icon-btn svg {width: 20px; height: 20px;}- /* Bug button — neon-pulsing accent so it reads as "interactive" and+ /* Bug button — a neon accent so it reads as "interactive" anddiscoverable. Uses an HSL accent (cyan-leaning) that's distinct from- the danger / warning / success colors already in use elsewhere. The- pulse is subtle enough to live in the header without being loud. */+ the danger / warning / success colors already in use elsewhere.+ STILL AT REST, PULSES ON HOVER (4.19.12). It used to pulse forever: an+ animated `filter: drop-shadow()` repaints the button on the main+ thread every frame, so this glow and the X link's below kept Chrome+ ~20% of a core busy all day, renders included (measured, PM hub+ review-2026-10-22-glow). The resting glow is the pulse's own 0%/100%+ frame, so a hover starts the pulse without a jump. Gate:+ test_header_glow_static.py. */body > header #bugBtn.bug-btn {color: #5fc8ff;- animation: bug-neon 2.4s ease-in-out infinite;- filter: drop-shadow(0 0 4px rgba(95, 200, 255, 0.45));+ opacity: 0.9;+ filter: drop-shadow(0 0 6px rgba(95, 200, 255, 0.60));}body > header #bugBtn.bug-btn:hover {color: #88dcff;background: rgba(95, 200, 255, 0.10);- filter: drop-shadow(0 0 8px rgba(95, 200, 255, 0.85));- animation-duration: 1.2s;+ animation: bug-neon 1.2s ease-in-out infinite;}@keyframes bug-neon {0%, 100% {- filter: drop-shadow(0 0 3px rgba(95, 200, 255, 0.30));- opacity: 0.75;+ filter: drop-shadow(0 0 6px rgba(95, 200, 255, 0.60));+ opacity: 0.9;}50% {- filter: drop-shadow(0 0 9px rgba(95, 200, 255, 0.85));+ filter: drop-shadow(0 0 9px rgba(95, 200, 255, 0.90));opacity: 1;}}@media (prefers-reduced-motion: reduce) {- body > header #bugBtn.bug-btn { animation: none; }+ body > header #bugBtn.bug-btn:hover {+ animation: none;+ filter: drop-shadow(0 0 8px rgba(95, 200, 255, 0.85));+ }}body > header #stopComfyBtn {height: 24px; padding: 0 10px;- font-size: 11px; font-weight: 500;+ font-size: 13px; font-weight: 500;border-radius: 6px;width: auto; flex: 0 0 auto;}@@ -11040,7 +10972,7 @@flex-shrink: 0;}body > header .creator-link .x-icon {- font-size: 11px;+ font-size: 13px;color: var(--ph-text-faint);letter-spacing: 0.04em;}@@ -11051,9 +10983,12 @@/* === Phosphene-X brand link (2026-05-18) ===================Compact icon-only link to the official @PhospheneAI account.Sits next to the by-Bizarro creator chip in the header's- right-corner cluster. A slow pulsing glow uses the Phosphene- brand gradient (blue → violet) so it draws the eye without- being aggressive. */+ right-corner cluster. A glow in the Phosphene brand gradient+ (blue → violet) draws the eye without being aggressive.+ STILL AT REST, PULSES ON HOVER (4.19.12): an animated box-shadow+ repaints every frame on the main thread, and with the bug button's+ glow above it cost ~20% of a core forever (see #bugBtn). The resting+ shadow is the pulse's own 0%/100% frame. */body > header .phosphene-x-link {display: inline-flex;align-items: center;@@ -11065,13 +11000,17 @@color: var(--text);text-decoration: none;transition: border-color var(--t-base), color var(--t-base), background var(--t-base), transform var(--t-base);- animation: phosphene-x-glow 3.2s ease-in-out infinite;+ box-shadow:+ 0 0 0 1px rgba(165, 130, 240, 0.15),+ 0 0 10px 1px rgba(138, 79, 200, 0.42),+ 0 0 16px 2px rgba(91, 108, 209, 0.15);}body > header .phosphene-x-link:hover {color: #fff;border-color: rgba(165, 130, 240, 0.55);background: rgba(140, 160, 220, 0.08);transform: scale(1.04);+ animation: phosphene-x-glow 1.6s ease-in-out infinite;}body > header .phosphene-x-link svg {width: 16px; height: 16px;@@ -11079,21 +11018,21 @@@keyframes phosphene-x-glow {0%, 100% {box-shadow:- 0 0 0 0 rgba(91, 108, 209, 0.00),- 0 0 6px 0 rgba(138, 79, 200, 0.28);+ 0 0 0 1px rgba(165, 130, 240, 0.15),+ 0 0 10px 1px rgba(138, 79, 200, 0.42),+ 0 0 16px 2px rgba(91, 108, 209, 0.15);}50% {box-shadow:- 0 0 0 1px rgba(165, 130, 240, 0.35),- 0 0 14px 2px rgba(138, 79, 200, 0.55),- 0 0 22px 4px rgba(91, 108, 209, 0.30);+ 0 0 0 1px rgba(165, 130, 240, 0.40),+ 0 0 14px 2px rgba(138, 79, 200, 0.60),+ 0 0 22px 4px rgba(91, 108, 209, 0.32);}}/* Respect users who don't want motion. */@media (prefers-reduced-motion: reduce) {- body > header .phosphene-x-link {+ body > header .phosphene-x-link:hover {animation: none;- box-shadow: 0 0 6px 1px rgba(138, 79, 200, 0.40);}}@@ -11190,7 +11129,7 @@width: auto;flex: 0 0 auto;padding: 5px 12px;- font-size: 12px; font-weight: 500;+ font-size: 13px; font-weight: 500;letter-spacing: 0;background: transparent;color: var(--muted);@@ -11224,7 +11163,7 @@.workflow-tabs .new-badge {margin-left: 6px;padding: 1px 5px;- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;font-family: var(--ph-font-mono);letter-spacing: 0.06em;background: rgba(47, 129, 247, 0.12);@@ -11251,7 +11190,7 @@#genForm > #firstRunCard { margin: 0 18px 14px; }/* h2 section labels — mono uppercase, Linear's signature. */#genForm h2 {- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);letter-spacing: 0.08em;color: var(--ph-text-faint);@@ -11302,7 +11241,7 @@border: none;}.pill-btn .sub {- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);color: var(--ph-text-faint);letter-spacing: 0;@@ -11322,23 +11261,23 @@align-items: flex-start !important;text-align: left !important;min-height: 76px;- background: rgba(22, 22, 23, 0.4) !important;+ background: var(--panel) !important;border: 1px solid var(--ph-border-soft) !important;border-radius: 8px !important;box-shadow: none !important;position: relative;}- .pill-quality:hover { background: rgba(22, 22, 23, 0.6) !important; border-color: var(--ph-border-strong) !important; }+ .pill-quality:hover { background: var(--panel-2) !important; border-color: var(--ph-border-strong) !important; }.pill-quality.active {- background: rgba(255, 255, 255, 0.040) !important;- border-color: rgba(47, 129, 247, 0.45) !important;- box-shadow: inset 0 0 0 1px rgba(47, 129, 247, 0.18) !important;+ background: var(--selection-bg, var(--accent-dim)) !important;+ border-color: var(--border-strong) !important;+ box-shadow: inset 0 0 0 1px var(--border-strong) !important;}.pill-quality.active::after {content: 'RECOMMENDED';position: absolute;top: 9px; right: 10px;- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);font-weight: 600;padding: 2px 6px;@@ -11359,12 +11298,12 @@.pill-quality .ql-name { font-size: 13px; font-weight: 600; color: var(--text); }.pill-quality.active .ql-name { color: var(--text); }.pill-quality .ql-spec {- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);color: var(--muted);}.pill-quality .ql-tier {- font-size: 11px;+ font-size: 13px;font-family: var(--ph-font-mono);color: var(--ph-text-faint);margin-top: 6px;@@ -11401,7 +11340,7 @@border: 1px solid var(--ph-border-soft);background: transparent;color: var(--muted);- font-size: 12px;+ font-size: 13px;width: auto;cursor: pointer;transition: border-color var(--t-base), color var(--t-base), background var(--t-base);@@ -11603,7 +11542,8 @@#h3StepsGroup .pill-btn.flex-locked {opacity: 0.42; cursor: not-allowed;}- #modeGroup .mode-chip.flex-locked { opacity: 0.42; cursor: not-allowed; }+ .form-pane > #modeGroup .mode-chip.flex-locked:hover { color: var(--v2-dim); }+ .form-pane > #modeGroup .mode-chip.flex-locked:hover::before { opacity: .45; }#h3SpeedGroup .pill-btn.flex-locked:hover,#h3StepsGroup .pill-btn.flex-locked:hover { background: transparent; border-color: var(--border); }@@ -11619,13 +11559,13 @@.h3-winlist .h3-win-label {display: flex; align-items: baseline; gap: 6px;margin: 0 0 4px 2px;- font-size: 11px; font-weight: 600;+ font-size: 13px; font-weight: 600;letter-spacing: 0.08em; text-transform: uppercase;color: var(--muted);}.h3-winlist .h3-win-span {font-weight: 400; letter-spacing: 0; text-transform: none;- font-size: 11px; opacity: 0.7;+ font-size: 13px; opacity: 0.7;}/* Two lines is the right size for a beat: enough to see the whole line,small enough that three of them don't push Speed off the screen. */@@ -11638,7 +11578,7 @@width: 15px; height: 15px; flex: 0 0 auto;padding: 0; line-height: 1;display: inline-flex; align-items: center; justify-content: center;- font-size: 11px; font-weight: 700;+ font-size: 13px; font-weight: 700;border-radius: 50%;border: 1px solid var(--border);background: transparent; color: var(--muted);@@ -11658,7 +11598,7 @@margin: 0 0 9px 0;padding: 2px 0 2px 9px;border-left: 2px solid var(--eng-soft, var(--border));- font-size: 11.5px; line-height: 1.55;+ font-size: 13px; line-height: 1.55;font-weight: 400; letter-spacing: 0; text-transform: none;color: var(--muted);}@@ -11669,7 +11609,7 @@.sb-still { position: relative; margin: 6px 0 4px; border-radius: 8px; overflow: hidden;background: var(--bg-2, #111); border: 1px solid var(--border); }.sb-still img { display: block; width: 100%; max-height: 120px; object-fit: cover; cursor: zoom-in; }-.sb-still-tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; letter-spacing: .04em;+.sb-still-tag { position: absolute; left: 6px; bottom: 6px; font-size: 13px; letter-spacing: .04em;text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }.sb-still-failed { padding: 8px; }.sb-still-failed .sb-still-tag { position: static; background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }@@ -11705,7 +11645,7 @@display: flex; align-items: center; justify-content: space-between; gap: 10px;margin: 8px 0; padding: 8px 12px; border-radius: var(--r-sm, 8px);background: color-mix(in srgb, var(--accent) 12%, transparent);- border: 1px solid var(--accent); font-size: 12.5px;+ border: 1px solid var(--accent); font-size: 13px;}.sb-stills-banner[hidden] { display: none !important; }.sb-flag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm, 12px); padding: 2px 8px; border-radius: 999px;@@ -11785,11 +11725,11 @@ body.oneshot-mode #h3LengthGroup { display: none !important; }/* ---- LoRA browser: one toolbar, compact controls ------------------------------- */.civitai-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }.civitai-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--panel); }-.civitai-seg .pill-btn { border: 0; border-radius: 0; padding: 5px 12px; width: auto; flex: 0 0 auto; font-size: 12px; margin: 0; }+.civitai-seg .pill-btn { border: 0; border-radius: 0; padding: 5px 12px; width: auto; flex: 0 0 auto; font-size: 13px; margin: 0; }.civitai-seg .pill-btn + .pill-btn { border-left: 1px solid var(--border); }.civitai-seg .pill-btn.active { background: var(--accent); color: #fff; }.civitai-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }-.civitai-chips .pill-btn { width: auto; flex: 0 0 auto; padding: 3px 9px; font-size: 11px; border-radius: 999px; margin: 0; }+.civitai-chips .pill-btn { width: auto; flex: 0 0 auto; padding: 3px 9px; font-size: 13px; border-radius: 999px; margin: 0; }.civitai-chips .toggle-pill { margin-left: auto; }.civitai-toolbar .toggle-pill { margin-left: auto; }.civitai-search-bar { display: flex; gap: 8px; align-items: center; min-width: 0; }@@ -11811,8 +11751,8 @@ body[data-workflow="oneshot"] #trainSection,body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }/* The label row, as the quick-settings cards draw it: name left, meta right. */.os-card .qs-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; min-width: 0; }-.os-card .qs-label .qs-name { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }-.os-card .qs-label .qs-meta { min-width: 0; font-size: 11px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; white-space: normal; }+.os-card .qs-label .qs-name { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }+.os-card .qs-label .qs-meta { min-width: 0; font-size: 13px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; white-space: normal; }#oneshotSectionTab { display: grid; gap: 10px; min-width: 0; max-width: 100%; }/* The same side padding the video form gets, so the cards and the stickyfooter's edge-to-edge break-out land where they do on the Video tab. */@@ -11840,10 +11780,10 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.os-beats-tools { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: -2px; }.os-beat-rows { display: grid; gap: 4px; }.os-beat-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 6px; }-.os-beat-row .os-stamp { font-family: var(--ph-font-mono); font-size: 11px; color: var(--faint, var(--muted)); text-align: right; }+.os-beat-row .os-stamp { font-family: var(--ph-font-mono); font-size: 13px; color: var(--faint, var(--muted)); text-align: right; }.os-beat-row.over .os-stamp { color: var(--danger, #f85149); }.os-beat-row.over .os-beat { opacity: 0.6; }-.os-beat-row .os-beat { width: 100%; min-width: 0; box-sizing: border-box; font-size: 12px; }+.os-beat-row .os-beat { width: 100%; min-width: 0; box-sizing: border-box; font-size: 13px; }.os-beats-note { margin-top: -2px; }.os-beats-note a { color: var(--accent-bright); }.os-toggles { display: grid; grid-template-columns: 1fr; gap: 10px; }@@ -11862,7 +11802,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.os-character-note[hidden] { display: none !important; }.os-footer { margin-top: 2px; }.os-status .os-parts { display: flex; flex-wrap: wrap; gap: 6px; }-.os-part { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border, #252526); color: var(--muted); }+.os-part { font-size: 13px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border, #252526); color: var(--muted); }.os-part.now { color: var(--accent-bright); border-color: var(--accent-bright); }.os-part.ok { color: #3fb950; border-color: rgba(63, 185, 80, 0.5); }.os-part.mid { color: #d29922; border-color: rgba(210, 153, 34, 0.5); }@@ -11890,7 +11830,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }border-radius: 999px;background: rgba(3, 3, 4, 0.72);color: rgba(255,255,255,0.9);- font-size: 11px; font-weight: 500; line-height: 16px;+ font-size: 13px; font-weight: 500; line-height: 16px;white-space: nowrap; cursor: pointer;transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);}@@ -11920,7 +11860,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }background: rgba(47,129,247,0.16);color: #fff;}-.os-log { margin: 0; white-space: pre-wrap; font-family: var(--ph-font-mono); font-size: 11px; line-height: 1.4; color: var(--muted); max-height: 9em; overflow: auto; }+.os-log { margin: 0; white-space: pre-wrap; font-family: var(--ph-font-mono); font-size: 13px; line-height: 1.4; color: var(--muted); max-height: 9em; overflow: auto; }/* ======================================================================THE DOCS (webapp/js/docs.js, pages in webapp/docs/*.md) and the keycap@@ -11931,7 +11871,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }kbd.kbd {display: inline-flex; align-items: center; justify-content: center;min-width: 20px; height: 20px; padding: 0 5px; margin: 0 1px;- font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;+ font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;color: var(--text); background: var(--panel-2);border: 1px solid var(--border-strong); border-bottom-width: 2px;border-radius: 5px; white-space: nowrap; vertical-align: 1px;@@ -12059,7 +11999,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.docs-article a:hover { text-decoration: underline; }.docs-article strong { font-weight: 650; color: var(--text); }.docs-article code {- font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;+ font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;}.docs-pre {@@ -12138,7 +12078,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.music-install-body, .music-install-panel { line-height: 1.5; }.music-install-body .mi-lead, .music-install-panel .mi-lead { margin: 0 0 10px; }.mi-sub, .mi-note { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-sm, 12px); }-.mi-line { margin: 4px 0 0; color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;+.mi-line { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.mi-error { margin: 0 0 10px; color: var(--danger, #ff6b6b); overflow-wrap: anywhere; }.mi-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }@@ -12151,6 +12091,11 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.h3-facefix-after { align-items: flex-start; margin: 10px 0 2px; line-height: 1.45; }.h3-facefix-after input { margin-top: 2px; }.h3-facefix-after .cz-label-hint { display: block; margin-left: 0; }+ /* Clean up sound (4.20): the same quiet checkbox line, under the Speed switch. */+ .h3-clean-sound { align-items: flex-start; margin: 8px 0 2px; line-height: 1.45; }+ .h3-clean-sound input { margin-top: 2px; }+ .h3-clean-sound input:disabled + span { opacity: 0.55; }+ .h3-clean-sound .cz-label-hint { display: block; margin-left: 0; }#h3UpscaleGroup.is-overridden .pill-btn { opacity: 0.45; }#h3UpscaleGroup.is-overridden .pill-btn[data-h3-upscale="off"] { opacity: 1; }@@ -12164,7 +12109,7 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }background: rgba(12, 12, 13, 0.97); color: #eef2fb;border: 1px solid rgba(160, 175, 230, 0.20); border-radius: 8px;box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255,255,255,0.04) inset;- font-size: 12px; line-height: 1.4; letter-spacing: 0;+ font-size: 13px; line-height: 1.4; letter-spacing: 0;opacity: 0; transform: translateY(2px);transition: opacity 90ms ease-out, transform 90ms ease-out;}@@ -12175,12 +12120,12 @@ body[data-workflow="oneshot"] #audioSectionTab { display: none !important; }.phos-tip-name { font-weight: 600; color: #fff; }.phos-tip-keys { margin-left: auto; display: inline-flex; gap: 3px; flex: 0 0 auto; padding-left: 10px; }.phos-tip-keys kbd {- font: 600 10.5px/1 var(--ph-font-mono, ui-monospace, Menlo, monospace);+ font: 600 13px/1 var(--ph-font-mono, ui-monospace, Menlo, monospace);padding: 3px 5px; min-width: 18px; text-align: center;color: #dfe6f7; background: rgba(255,255,255,0.08);border: 1px solid rgba(255,255,255,0.14); border-bottom-width: 2px; border-radius: 4px;}-.phos-tip-keys .phos-tip-or { color: #8b95b2; font-size: 11px; align-self: center; }+.phos-tip-keys .phos-tip-or { color: #8b95b2; font-size: 13px; align-self: center; }.phos-tip-body { color: #b9c3dc; margin-top: 2px; white-space: pre-line; }.phos-tip-head + .phos-tip-body:empty { display: none; }@media (prefers-reduced-motion: reduce) {@@ -12321,7 +12266,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: nowidth: 100%;min-height: 132px;resize: vertical;- font-size: 12.5px;+ font-size: 13px;line-height: 1.5;}#batchDetails .batch-actions {@@ -12331,7 +12276,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: no}#batchDetails .batch-total {font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);- font-size: 12px; color: var(--accent-bright);+ font-size: 13px; color: var(--accent-bright);}#batchDetails .batch-queue-btn {width: auto; flex: 0 0 auto;@@ -12340,7 +12285,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: noborder: 1px solid var(--accent);background: var(--accent);color: #fff;- font-size: 12.5px; font-weight: 600;+ font-size: 13px; font-weight: 600;cursor: pointer;transition: background 100ms, opacity 100ms;}@@ -12350,7 +12295,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: no#batchDetails #batchSeedsHint {margin-top: 6px;font-family: var(--ph-font-mono);- font-size: 11px;+ font-size: 13px;color: var(--ph-text-faint);}@@ -12368,7 +12313,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: nobackground: rgba(140, 160, 220, 0.04);border: 1px solid var(--ph-border-soft);border-radius: 8px;- font-size: 12px;+ font-size: 13px;}#genForm .cz-body .check:hover { border-color: var(--eng-soft, var(--accent)); }#genForm .cz-body .check input { margin-top: 1px; }@@ -12376,7 +12321,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: nodisplay: block;margin-top: 2px;font-family: var(--ph-font-mono);- font-size: 11px;+ font-size: 13px;color: var(--ph-text-faint);text-transform: none;letter-spacing: 0;@@ -12419,7 +12364,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: noheight: 30px; min-height: 30px;padding: 0 10px;border-radius: 6px;- font-size: 12px; font-weight: 600; line-height: 1;+ font-size: 14px; font-weight: 600; line-height: 1;letter-spacing: 0;display: inline-flex; align-items: center; justify-content: center; gap: 6px;width: auto; flex: 0 0 auto;@@ -12476,7 +12421,7 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: no.icon-btn, .open-folder-btn {height: 30px; min-height: 30px;border-radius: 6px;- font-size: 12px;+ font-size: 13px;display: inline-flex; align-items: center; justify-content: center;}/* The header is its own family and should be: bigger, borderless, 34 px — a@@ -12486,8 +12431,8 @@ body:not([data-engine="ltx"]) .cz-body > #aspectRow.mode-only.show { display: nobody > header .icon-btn, .eng-trigger { border-radius: 8px; }.eng-trigger { height: 34px; min-height: 34px; }.icon-btn { width: 30px; padding: 0; }-.ghost-btn { height: 30px; border-radius: 6px; font-size: 12px; }-.lora-row .lora-icon-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }+.ghost-btn { height: 30px; border-radius: 6px; font-size: 13px; }+.lora-row .lora-icon-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }.po-act { height: 28px; border-radius: 6px; }/* The segmented pair keeps its shared edge — a group, not two buttons. */.po-act:first-child { border-radius: 6px 0 0 6px; }@@ -12495,9 +12440,9 @@ body > header .icon-btn, .eng-trigger { border-radius: 8px; }.workflow-tabs button, .tabs button {height: 28px; min-height: 28px;border-radius: 6px;- font-size: 12px;+ font-size: 13px;}-.stage-outputs-filter button { border-radius: 999px; font-size: 11.5px; height: 26px; }+.stage-outputs-filter button { border-radius: 999px; font-size: 13px; height: 26px; }/* Generate and Stop are one pair and must not carry two radii (6 vs 10). */.form-action-footer .actions .primary,.form-action-footer .actions .danger { border-radius: 6px; }@@ -12508,7 +12453,7 @@ body > header .icon-btn, .eng-trigger { border-radius: 8px; }one filter row). */body > header #settingsBtn { border-radius: 8px; }.carousel-head .open-folder-btn { border-radius: 6px; }-.eng-trigger { font-size: 12px; }+.eng-trigger { font-size: 13px; }/* 99px was a typo-grade stray next to 999px pills — same shape, different number. */#healthChip { border-radius: 999px; }/* ---- one icon, one gap ----------------------------------------------------@@ -12920,23 +12865,23 @@ body[data-engine="h3"][data-vmode="v2a"] #h3LengthLabel { display: none !importa.a2v-engine { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }.a2v-engine[hidden] { display: none !important; }.a2v-engine .pill-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }-.a2v-engine .pill-btn .sub { font-size: 11px; opacity: .72; }+.a2v-engine .pill-btn .sub { font-size: 13px; opacity: .72; }.a2v-engine [data-a2v-engine="h3"].active { border-color: rgba(255,46,159,0.55); box-shadow: inset 0 0 0 1px rgba(255,46,159,0.35); }#a2vH3QualityGroup .pill-btn { align-items: center; text-align: center; }#mvOneShotDetails:not([data-a2v-engine="h3"]) .a2v-h3-only { display: none !important; }#mvOneShotDetails[data-a2v-engine="h3"] .a2v-ltx-only { display: none !important; }/* ---- Bug report: the required "What happened?" box (4.19.3, #106) ------- */-#bugModal .bug-what { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }-#bugModal .bug-what > span:first-child { color: var(--text); font-weight: 600; font-size: 12.5px; }-#bugModal .bug-what-req { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 6px; }+#bugModal .bug-what { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }+#bugModal .bug-what > span:first-child { color: var(--text); font-weight: 600; font-size: 13px; }+#bugModal .bug-what-req { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }#bugModal .bug-what textarea {padding: 8px 10px; font-size: 13px; line-height: 1.45; resize: vertical; min-height: 56px;background: rgba(140,160,220,0.04); border: 1px solid var(--ph-border-soft); border-radius: 6px;color: var(--text); font-family: inherit;}#bugModal .bug-what textarea:focus { outline: none; border-color: var(--accent-bright, #7e98ff); }-#bugModal .bug-what-hint { font-size: 11.5px; line-height: 1.4; color: var(--muted); }+#bugModal .bug-what-hint { font-size: 13px; line-height: 1.4; color: var(--muted); }#bugModal .bug-what.is-invalid textarea { border-color: var(--danger, #f85149); }#bugModal .bug-what.is-invalid .bug-what-hint { color: var(--danger, #f85149); }@@ -12948,7 +12893,7 @@ body[data-engine="h3"][data-vmode="v2a"] #h3LengthLabel { display: none !importa.licence-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; flex-wrap: wrap; }.licence-model { font-weight: 600; }.licence-badge {- font-size: 11px; padding: 2px 8px; border-radius: 999px;+ font-size: 13px; padding: 2px 8px; border-radius: 999px;border: 1px solid var(--border, #272728); color: var(--muted);}.licence-badge.nc { border-color: rgba(210,153,34,0.55); color: #e3b341; }@@ -12959,9 +12904,9 @@ body[data-engine="h3"][data-vmode="v2a"] #h3LengthLabel { display: none !importa}.licence-terms { margin: 0 0 10px; padding-left: 18px; }.licence-terms li { margin: 2px 0; }-.licence-meta { font-size: 12px; color: var(--muted); margin: 0 0 6px; }+.licence-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }.licence-meta a, .engine-credit a { color: var(--accent-bright); }-.licence-accepted { font-size: 12px; color: rgba(63,185,80,0.9); margin: 6px 0; }+.licence-accepted { font-size: 13px; color: rgba(63,185,80,0.9); margin: 6px 0; }.licence-check {display: flex; gap: 8px; align-items: flex-start; justify-content: flex-start;text-align: left; margin: 12px 0 10px; cursor: pointer;@@ -12969,20 +12914,518 @@ body[data-engine="h3"][data-vmode="v2a"] #h3LengthLabel { display: none !importa.licence-check input[type="checkbox"] { flex: 0 0 auto; width: auto; margin: 3px 0 0; }.licence-check span { flex: 1 1 auto; }.licence-actions { display: flex; justify-content: flex-end; gap: 8px; }-.licence-error { color: #f0817a; font-size: 12px; margin: 8px 0 0; }-.engine-credit { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }+.licence-error { color: #f0817a; font-size: 13px; margin: 8px 0 0; }+.engine-credit { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }[data-licence-status] { color: var(--muted); }[data-licence-status].ok { color: rgba(63,185,80,0.9); }/* lightx2v v1.3 note under the H3 Speed switch (engines.js _h3RenderV13Note). */.h3-speed .h3-v13-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }-.h3-speed .h3-v13-note .h3-v13-get { padding: 2px 10px; font-size: 12px; }+.h3-speed .h3-v13-note .h3-v13-get { padding: 2px 10px; font-size: 13px; }.h3-speed .h3-v13-note .h3-v13-get[hidden] { display: none !important; }+/* ====== Phosphene Bench (webapp/js/bench.js) ======+ One window: the suite's steps with their state, the run controls, the+ result card and past runs. Built on the .models-modal frame so spacing and+ elevation match the Models and Settings windows. */+/* Safari can leave the entrance opacity at zero when Settings hands off+ to Bench. Keep this results window visible without an entrance effect. */+.bench-modal, .bench-card { animation: none; }+.bench-card { width: min(760px, 94vw); }+.bench-title-row { display: flex; align-items: center; gap: 10px; }+.bench-suite {+ font-family: var(--ph-font-mono, ui-monospace, Menlo, monospace); font-size: 13px; font-weight: 600;+ letter-spacing: .04em; color: var(--ph-grad-cyan, #5EEAFF); padding: 2px 9px; border-radius: 999px;+ border: 1px solid var(--border-strong, #3a3a40); background: rgba(255, 255, 255, 0.040);+}+html[data-theme="light"] .bench-suite { color: #0e7490; background: rgba(14, 116, 144, 0.06); }+.bench-intro { margin-bottom: 12px; }+.bench-notices { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }+.bench-notices:empty { display: none; }+.bench-notice { font-size: 13px; line-height: 1.45; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); }+.bench-notice.is-warn { border-color: rgba(210, 153, 34, 0.5); background: rgba(210, 153, 34, 0.08); }+.bench-notice.is-info { background: rgba(255, 255, 255, 0.03); color: var(--muted); }+.bench-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }+.bench-step {+ display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center;+ padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);+ background: rgba(255, 255, 255, 0.02); transition: border-color .2s, background .2s;+}+.bench-step.is-untimed { opacity: .82; }+.bench-step.is-extra .bench-step-title { color: var(--muted); }+.bench-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); justify-self: center; }+.bench-step.is-ready .bench-dot, .bench-step.is-queued .bench-dot { background: var(--muted); }+.bench-step.is-done .bench-dot { background: var(--success); }+.bench-step.is-failed .bench-dot, .bench-step.is-missing .bench-dot { background: var(--warning); }+.bench-step.is-running { border-color: var(--accent); background: var(--accent-dim); }+.bench-step.is-running .bench-dot {+ background: linear-gradient(135deg, var(--ph-grad-pink, #FF2E9F), var(--ph-grad-cyan, #5EEAFF));+ animation: bench-pulse 1.4s ease-in-out infinite;+}+@keyframes bench-pulse { 50% { transform: scale(1.5); opacity: .6; } }+@media (prefers-reduced-motion: reduce) { .bench-step.is-running .bench-dot { animation: none; } }+.bench-step-main { min-width: 0; }+.bench-step-title { font-size: 13px; font-weight: 600; }+.bench-tag {+ font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-left: 6px;+ color: var(--accent-bright); vertical-align: 1px;+}+.bench-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }+.bench-why { margin-top: 2px; }+.bench-step-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }+.bench-badge { font-size: 13px; color: var(--muted); }+.bench-step.is-done .bench-badge { color: var(--success); }+.bench-step.is-failed .bench-badge, .bench-step.is-missing .bench-badge { color: var(--warning); }+.bench-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }+.bench-time.is-live { color: var(--accent-bright); }+.bench-step-side .ghost-btn { padding: 4px 10px; font-size: 13px; }+.bench-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }+.bench-line { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }+.bench-rules { font-size: 13px; color: var(--muted); margin-bottom: 16px; }+.bench-rules summary { cursor: pointer; color: var(--accent-bright); width: fit-content; }+.bench-rules ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }+.bench-result, .bench-history { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }+.bench-result h3, .bench-history h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }+.bench-warn { font-size: 13px; color: var(--warning); margin: 0 0 8px; }+.bench-card-img {+ display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px;+ border: 1px solid var(--border); background: #0a0a0b; margin-bottom: 12px;+}+.bench-result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }+.bench-result-actions a.ghost-btn { text-decoration: none; display: inline-flex; align-items: center; }+.bench-submit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 8px; }+.bench-consent { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 10px 12px; border-radius: 8px;+ border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }+.bench-consent p { margin: 0 0 10px; }+.bench-submit-note { font-size: 13px; color: var(--muted); margin: 0; }+.bench-submit-note:empty { display: none; }+.bench-history ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }+.bench-empty { font-size: 13px; color: var(--muted); }+.bench-run {+ width: 100%; display: flex; align-items: baseline; gap: 12px; text-align: left; cursor: pointer;+ background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; color: var(--text);+}+.bench-run:hover, .bench-run.is-on { border-color: var(--border); background: rgba(255, 255, 255, 0.03); }+.bench-run-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; }+/* ---- Audio → Speech (speech.js) ------------------------------------------+ Same install-panel contract as Compose: before the models exist the form is+ readable but inert, and Generate becomes the install button. */+#speechInstallPanel[hidden] { display: none !important; }+.speech-install-panel { padding: 14px 16px; border-color: rgba(94,234,255,0.40); line-height: 1.5; }+.speech-install-panel .mi-lead { margin: 0 0 10px; }+#speechPane.speech-locked .composer-card:not(.speech-install-panel),+#speechPane.speech-locked .quick-settings { opacity: .45; pointer-events: none; user-select: none; }+#speechPane select, #speechPane input[type="text"] { width: 100%; margin-top: 6px; }+#speechKindSeg { margin: 6px 0 8px; }+.speech-styles { margin: 6px 0 4px; }+.speech-consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; line-height: 1.45;+ font-size: var(--fs-sm, 12px); }+.speech-consent input { width: auto; margin-top: 2px; flex: none; }+.speech-consent a { color: inherit; text-decoration: underline; }+#speechFit.warn { color: var(--warn, #c98a2b); }+.speech-last { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }+.speech-last audio { width: 100%; }+.speech-last .actions { display: flex; gap: 8px; flex-wrap: wrap; }+#speechClipSlot { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;+ cursor: pointer; text-align: center; padding: 10px; }++/* ========================================================================+ SITE / STUDIO DESIGN SYSTEM+ Source: phosphene.video global.css. Keep this compatibility layer together:+ existing component tokens are aliases so every workflow shares one palette.+ Layout, media geometry, type inside rendered artwork, and handlers stay owned+ by their existing components. Fonts are bundled: no network at studio boot.+ ======================================================================== */+@font-face {+ font-family: 'Archivo'; font-style: normal; font-display: swap;+ font-weight: 100 900; font-stretch: 62% 125%;+ src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');+}+@font-face {+ font-family: 'Newsreader'; font-style: normal; font-display: swap;+ font-weight: 200 800;+ src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2');+}+@font-face {+ font-family: 'Fragment Mono'; font-style: normal; font-display: swap;+ font-weight: 400;+ src: url('../fonts/fragment-mono-latin-400-normal.woff2') format('woff2');+}+:root {+ --site-void: #0a0a0b; --site-inset: #0e0e10;+ --site-panel: #121214; --site-raised: #17171a;+ --site-line: #2a2a2f; --site-line-soft: rgba(44, 44, 45,.55);+ --site-ink: #f4f4f5; --site-mute: #b4b4bb; --site-dim: #8e8e96;+ --site-pink: #ff2e9f; --site-violet: #b14aff; --site-cyan: #5eeaff;+ --site-sun: #ffd23f;+ --site-brand: linear-gradient(90deg, var(--site-pink), var(--site-violet) 52%, var(--site-cyan));+ --sans: 'Archivo', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;+ --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;+ --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;+ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;+ --space-5: 20px; --space-6: 24px; --space-8: 32px;+ --type-caption: 14px; --type-control: 15px; --type-body: 15px;+ --ease: cubic-bezier(.4,0,.2,1);+ --bg: var(--site-void); --bg-2: var(--site-inset);+ --panel: var(--site-panel); --panel-2: var(--site-raised);+ --text: var(--site-ink); --muted: var(--site-mute); --faint: var(--site-dim);+ --border: var(--site-line); --border-strong: #4a4a52;+ /* Deepened footer-ring colours keep pale action text above AA throughout. */+ --accent: #474748; --accent-bright: #f4f4f5; --accent-dim: rgba(182,191,209,.12);+ --action-bg: #3d3d3e; --action-ink: #f4f4f5;+ --action-gradient: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,0) 58%), linear-gradient(112deg, #86396f, #5a3f98 52%, #454546);+ --selection-bg: var(--site-raised); --selection-ink: var(--site-ink);+ --focus: var(--site-sun); --live: var(--site-sun);+ --success: #7bdc96; --warning: #ffd23f; --danger: #ff928c;+ --radius: 6px; --r-xs: 3px; --r-sm: 4px; --r-md: 6px; --r-lg: 8px;+ --shadow-1: none; --shadow-2: 0 12px 32px -12px rgba(0,0,0,.6);+ --ring: 0 0 0 2px var(--focus);+ --t-fast: 120ms var(--ease); --t-base: 200ms var(--ease); --t-slow: 250ms var(--ease);+ --ph-bg: var(--bg); --ph-elev-1: var(--panel); --ph-elev-2: var(--panel-2);+ --ph-border-soft: var(--site-line-soft); --ph-border-strong: var(--border);+ --ph-text-faint: var(--site-dim); --ph-font-mono: var(--mono);+ color-scheme: dark;+}+html[data-theme="light"] {+ --site-void: #f5f6fa; --site-inset: #fff;+ --site-panel: #fff; --site-raised: #edf0f7;+ --site-line: #c4cadb; --site-line-soft: #dce0eb;+ --site-ink: #141a3a; --site-mute: #4b5577; --site-dim: #5a6581;+ --bg: var(--site-void); --bg-2: var(--site-inset);+ --panel: var(--site-panel); --panel-2: var(--site-raised);+ --text: var(--site-ink); --muted: var(--site-mute);+ --border: var(--site-line); --border-strong: #7d88a6;+ --accent: #4b5577; --accent-bright: #141a3a; --accent-dim: rgba(44,53,99,.08);+ --action-bg: #594477; --action-ink: #f0f4fb;+ --focus: #855500; --live: #855500;+ --success: #176d37; --warning: #855500; --danger: #b4232b;+ --shadow-1: none; --shadow-2: 0 12px 32px -12px rgba(20,26,58,.2);+ color-scheme: light;+}+body {+ background: var(--bg); background-image: none;+ font-family: var(--sans); font-size: var(--type-control);+ -webkit-font-smoothing: antialiased;+}+button, input, select, textarea { font-family: var(--sans); }+::selection { background: var(--selection-bg); color: var(--selection-ink); }+:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }+input:focus, textarea:focus, select:focus { border-color: var(--border-strong); box-shadow: var(--ring); }+input::placeholder, textarea::placeholder { color: var(--site-dim); opacity: 1; }+input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, select {+ background-color: var(--bg-2); border-color: var(--border-strong); border-radius: var(--r-sm);+}+input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }++/* One calm title bar. Keep every existing action, identity and status. */+body > header {+ height: 88px; padding: 0 var(--space-6); gap: var(--space-3);+ background: var(--bg-2); border-bottom: 1px solid var(--border);+}+body > header .brand { gap: var(--space-2); }+body > header .brand img { height: 42px; filter: none; }+body > header .ph-mark { width: 72px; height: 72px; }+body > header .profile-badge { font-size: 13px; letter-spacing: 0; white-space: nowrap; border-radius: var(--r-sm); }+body > header .icon-btn, body > header #settingsBtn,+body > header .creator-link, body > header .phosphene-x-link,+body > header > .pill, body > header #healthCluster, .eng-trigger {+ border-radius: var(--r-sm); box-shadow: none;+}+body > header > .pill { background: transparent; font-size: var(--type-caption); }+body > header #healthCluster { border-color: transparent; }+body > header .bug-btn, body > header .bug-btn:hover,+body > header .phosphene-x-link, body > header .phosphene-x-link:hover {+ color: var(--muted); background: transparent; filter: none; box-shadow: none; animation: none;+}+body > header .icon-btn:hover, body > header .phosphene-x-link:hover { color: var(--text); background: var(--panel-2); }+body > header .eng-trigger { background: var(--panel); border-color: var(--border); color: var(--text); box-shadow: none; }+#healthChip, html[data-theme="light"] #healthChip { background: var(--panel); border-radius: var(--r-sm); }+#hcDot { box-shadow: none; }+#healthChip:not(.is-warn):not(.is-bad) #hcDot { background: var(--live); }++/* Navigation and selections: neutral surfaces, clear edges, no neon rings. */+.workflow-tabs { background: transparent; border-color: transparent; padding: 0; gap: var(--space-1); }+.workflow-tabs button, .tabs button { border-radius: var(--r-sm); font-size: var(--type-caption); }+.workflow-tabs button.active, .tabs button.active {+ background: var(--selection-bg); color: var(--selection-ink); box-shadow: inset 0 -2px var(--live);+}+.workflow-tabs .new-badge { color: var(--muted); background: var(--panel-2); border-color: var(--border); letter-spacing: 0; }+.pill-group.cols-2, .pill-group.cols-3, .pill-group.cols-4, .pill-group.cols-5,+.mode-bar, .studio-seg { background: var(--bg-2); border-color: var(--border); border-radius: var(--r-md); }+.pill-btn, .mode-bar .mode-chip, .studio-seg .seg-btn { border-radius: var(--r-sm); }+.pill-btn.active, .mode-bar .mode-chip.active, .studio-seg .seg-btn.active,+.stage-outputs-filter button.active, .carousel-head .seg button.active {+ background: var(--selection-bg); color: var(--selection-ink);+ border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--border-strong);+}+.pill-btn.active .sub, .mode-bar .mode-chip.active .mc-sub { color: var(--muted); opacity: 1; }+.pill-btn .sub, .mode-bar .mode-chip .mc-sub { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }+.stage-outputs-filter button, .outputs-search { border-radius: var(--r-sm); }+.toggle-pill.is-on { border-color: var(--border-strong); color: var(--text); background: var(--selection-bg); }++/* Primary actions use the deepened logo spectrum; secondary controls stay quiet. */+button.primary, button[type="submit"].primary, #genBtn,+#genForm .batch-queue-btn, #genForm .loras-summary .loras-browse-btn:not(.is-ghost) {+ background-color: var(--action-bg); background-image: var(--action-gradient); color: var(--action-ink); border-color: transparent;+ position: relative; isolation: isolate; overflow: hidden;+ border-radius: var(--r-sm); font-weight: 600; letter-spacing: .01em;+ box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 -1px 0 rgba(0,0,0,.22);+ transition: transform var(--t-slow), opacity var(--t-slow);+}+button.primary:hover, button[type="submit"].primary:hover, #genBtn:hover:not(:disabled),+#genForm .batch-queue-btn:hover:not(:disabled), #genForm .loras-summary .loras-browse-btn:not(.is-ghost):hover {+ background-color: var(--action-bg); background-image: var(--action-gradient); border-color: transparent; color: var(--action-ink);+ box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.22);+}+.ghost-btn, .qchip, .icon-btn, .open-folder-btn, .sbe-btn {+ background-color: var(--panel); border-color: var(--border); color: var(--text); border-radius: var(--r-sm); box-shadow: none;+}+.form-action-footer, .os-footer, .music-footer { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: var(--border); }+.form-action-footer .actions .primary, .form-action-footer .actions .danger { border-radius: var(--r-xs); }++/* Surfaces share the same depth scale. Media remains the strongest colour. */+.composer-card, .models-inline, .loras-section, .customize-section,+.now-card, .queue-card, .song-card, .characters-empty, .characters-card,+.modal, .eng-menu, #healthPop {+ background: var(--panel); border-color: var(--border); border-radius: var(--r-md); box-shadow: none;+}+.composer-card:focus-within, .composer-card:has(textarea.composer-prompt:not(:placeholder-shown)) {+ border-color: var(--border-strong); box-shadow: none;+}+.composer-card .composer-prompt { font-size: var(--type-control); line-height: 1.55; background: var(--bg-2); }+.carousel-wrap { background: var(--bg-2); border-color: var(--border); box-shadow: none; }+.car-card { background: var(--panel); }+.car-card:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }+.car-card.active { background: var(--panel); border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }+.sbe-clip, html[data-theme="light"] .sbe-clip { background: var(--panel-2); }+.phos-toast, .characters-toast {+ background: var(--panel); color: var(--text); border-color: var(--border-strong);+ border-radius: var(--r-md); box-shadow: var(--shadow-2); backdrop-filter: none; -webkit-backdrop-filter: none;+}+.modal { box-shadow: var(--shadow-2); }++/* Site type hierarchy scaled to a working studio, never marketing-size forms. */+#genForm h2, .carousel-head h3, .cz-label, .settings-section h3 {+ font-family: var(--sans); font-size: var(--type-caption); font-weight: 600;+ letter-spacing: 0; text-transform: none; color: var(--muted);+}+.studio-head .studio-title, .modal > h3, .ps-empty-title, .characters-empty-title {+ font-family: var(--sans); font-size: 24px; font-weight: 760;+ font-stretch: 86%; line-height: 1.1; letter-spacing: -.015em;+}+.ps-empty-sub, .empty-msg, .characters-empty > p {+ font-family: var(--serif); font-size: 20px; font-weight: 380; line-height: 1.32; color: var(--muted);+}+.sbe-time, .progress-meta, .now-meta, .qchip-derived {+ font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 400;+}+.progress-bar { background: var(--panel-2); border-radius: var(--r-xs); }+.progress-bar .fill { background: var(--site-brand); box-shadow: none; }+@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }+}+@media (max-width: 760px) {+ body > header { padding-inline: var(--space-3); gap: var(--space-2); }+ body > header .brand img { height: 32px; }+ body > header .ph-mark { width: 60px; height: 60px; }+}+/* Auxiliary fills keep a separate, contrast-safe ink pair. */+body > header #bugBtn.bug-btn, body > header #bugBtn.bug-btn:hover {+ color: var(--muted); filter: none; box-shadow: none; animation: none;+}+.profile-badge.test-badge { background: #b4232b; border-color: #b4232b; color: #fff; }+.models-modal .models-card { background: var(--panel); border-color: var(--border); border-radius: var(--r-lg); }+.models-modal h2 { font-family: var(--sans); font-weight: 760; font-stretch: 86%; letter-spacing: -.015em; }+/* Older modules used these names before the shared palette existed. Resolving+ them here also makes their fallback-only dark colours work on paper. */+:root {+ --fg: var(--text); --ink: var(--text); --ink-500: var(--muted);+ --text-dim: var(--site-dim); --line: var(--border);+ --bg-card: var(--panel); --bg-elevated: var(--panel);+}+#genForm textarea, #genForm input[type="text"], #genForm input[type="number"], #genForm select {+ background: var(--bg-2); border-color: var(--border-strong); border-radius: var(--r-sm);+ font-size: var(--type-control); padding: var(--space-3);+}+#genForm textarea:focus, #genForm input:focus, #genForm select:focus {+ background: var(--bg-2); border-color: var(--border-strong); box-shadow: var(--ring);+}+.bottom-body { background: var(--bg); }+#healthChip { color: var(--muted); }+#healthChip.is-warn { color: var(--warning); }+#healthChip.is-danger { color: var(--danger); }+.models-head h2 { text-transform: none; font-size: 24px; color: var(--text); }+.models-modal, .modal-bg { backdrop-filter: none; -webkit-backdrop-filter: none; }+/* Availability is communicated by the install card and disabled behaviour;+ keep the explanatory labels readable while an optional engine is absent. */+#musicComposePane.music-locked .composer-card:not(.music-install-panel),+#musicComposePane.music-locked .quick-settings,+#musicComposePane.music-locked .customize-section,+#musicComposePane.music-locked .studio-tasks,+#musicComposePane.music-locked .queue-strip,+#speechPane.speech-locked .composer-card:not(.speech-install-panel),+#speechPane.speech-locked .quick-settings { opacity: 1; }+.music-credit { color: var(--muted); opacity: 1; }+.studio-ref-slot .ref-tag, .studio-ref-slot.has-image .ref-tag {+ background: var(--panel); color: var(--muted); border-color: var(--border);+}+.pill-quality .ql-spec, .pill-quality .ql-tier, .pill-quality.active .ql-tier {+ color: var(--muted); opacity: 1; letter-spacing: 0;+}+.train-preflight-card { background: var(--panel); border-color: var(--border); border-radius: var(--r-md); }+.train-preflight-title, .train-preflight-size, .experimental-tag { color: var(--warning); }+.train-preflight-label { color: var(--text); }+.train-preflight-blurb, .train-preflight-foot { color: var(--muted); }+#sbEngineGroup .pill-btn.active, #sbReplanEngineGroup .pill-btn.active {+ color: var(--selection-ink); background: var(--selection-bg); border-color: var(--border-strong);+}+/* These engine options carry an explanatory tooltip and remain focusable. */+.os-engine-meta { margin: -2px 0 12px; }+.pill-quality:not(.active) { background: var(--panel); }+.quality-strip .q-chip .q-spec { color: var(--muted); opacity: 1; }+#musicHint { color: var(--muted); opacity: 1; }++/* Motion companion to the website tokens. Feedback uses transform/opacity;+ the small logo containers alone carry hue drift. JS honours reduced motion. */+.composer-card { position:relative; }+.composer-card::after { content:''; position:absolute; inset:-1px; border:1px solid var(--focus); border-radius:inherit; pointer-events:none; opacity:0; transition:opacity var(--t-base); }+.composer-card:focus-within::after { opacity:1; }+input[type='range']::-webkit-slider-thumb { transition:transform var(--t-fast); }+input[type='range']:active::-webkit-slider-thumb { transform:scale(1.16); }+/* Motion: only transform and opacity interpolate. Colour changes are immediate. */+button, a, input, textarea, select, .composer-card, .car-card, .row-list li, .pill-btn, .toggle-pill { transition-property:transform,opacity !important; transition-duration:220ms; transition-timing-function:var(--ease); }+/* Lift is a promise that a thing is a big, deliberate action. Every icon,+ tab and chip lifting on hover made the whole studio twitch under the+ pointer (redesign v2): only primary actions and cards move now. Every+ button still answers a press. */+@media (hover:hover) {+ button.primary:not(:disabled):hover, #genBtn:not(:disabled):hover { transform:translateY(-1px); }+}+button:not(:disabled):active { transform:scale(.985); transition-duration:100ms; }+input[type='checkbox']:active, input[type='radio']:active { transform:scale(.9); }+.tab-content.show, .studio-panel-enter { animation:studio-enter 240ms var(--ease) both; }+@keyframes studio-enter { from { opacity:.5; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }+.phos-toast { animation:studio-toast-in 240ms var(--ease) both; }+.phos-toast.is-leaving { animation:studio-toast-out 180ms var(--ease) forwards; }+@keyframes studio-toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }+@keyframes studio-toast-out { to { opacity:0; transform:translateY(4px); } }+/* Real progress, composited instead of animating layout width. */+#progressFill { width:100% !important; transform:scaleX(0); transform-origin:left; background:var(--site-brand); transition:transform 650ms var(--ease); border-radius:inherit; overflow:hidden; }+.progress-bar { height:4px; background:var(--border); border-radius:2px; overflow:hidden; }+#progressFill::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent); transform:translateX(-100%); }+.now-card.is-rendering #progressFill::after { animation:studio-shimmer 2.4s var(--ease) infinite; }+@keyframes studio-shimmer { to { transform:translateX(100%); } }+.studio-progress-value { float:right; position:relative; width:4ch; height:1.5em; text-align:right; overflow:hidden; color:var(--text); font:13px/1.5 var(--mono); }+.studio-progress-value span { display:block; }+.now-card.is-complete::after { content:''; position:absolute; inset:-1px; border:1px solid var(--success); border-radius:inherit; pointer-events:none; animation:studio-complete 1100ms var(--ease) both; }+@keyframes studio-complete { 0% { opacity:0; } 25% { opacity:1; } 100% { opacity:0; } }+.now-card.is-complete .progress-bar { display:block; }+.now-thumb.is-warming::after { animation:studio-breathe 2.4s var(--ease) infinite alternate; }+@keyframes studio-breathe { from { opacity:.35; transform:scale(.98); } to { opacity:.7; transform:scale(1); } }+@media (prefers-reduced-motion:reduce) {+ *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }+ button:hover,button:active { transform:none !important; }+ .studio-panel-enter { opacity:1; transform:none; }+ #progressFill::after { display:none; }+}++/* Round 2 readability: metadata has a 13px floor; working labels and helpers+ get 14px even in older modules that still emit an inline font size. */+[style*="font-size:9px"], [style*="font-size: 9px"],+[style*="font-size:10px"], [style*="font-size: 10px"],+[style*="font-size:11px"], [style*="font-size: 11px"],+[style*="font-size:11.5px"], [style*="font-size: 11.5px"],+[style*="font-size:12px"], [style*="font-size: 12px"],+[style*="font-size:12.5px"], [style*="font-size: 12.5px"] { font-size: 13px !important; }+button, input, select, textarea, label,+.pill-btn, .pill-btn .sub, .mode-bar .mode-chip .mc-sub,+.hint, .help, .field-hint, .field-label, .cz-label,+.models-inline-text .sub, .models-inline-text .ttl {+ font-size: 14px !important;+}+#genForm textarea, .composer-card .composer-prompt { font-size: 15px !important; }+button, label, .hint, .help { line-height: 1.4; }+/* A translucent sheen travels over the dark gradient. Its peak is only 7%+ white so the complete fill, including hover, retains AA text contrast. */+button.primary::before, #genBtn::before, #genForm .batch-queue-btn::before,+#genForm .loras-summary .loras-browse-btn:not(.is-ghost)::before {+ content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;+ background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.07) 50%, transparent 85%);+ transform: translateX(-105%); transition: transform 950ms var(--ease);+}+button.primary:hover::before, #genBtn:hover::before, #genForm .batch-queue-btn:hover::before,+#genForm .loras-summary .loras-browse-btn:not(.is-ghost):hover::before { transform: translateX(105%); }+/* The stage scales the exact footer mark, with a soft static glow. */+.live-stage-warming {+ gap: 8px; padding: 20px; container-type: size;+ opacity: 1; visibility: visible;+ transition: opacity 850ms ease, visibility 0s;+}+.studio-stage-mark {+ position: relative; display: block; flex: none;+ width: min(300px, 56cqw, 60cqh); aspect-ratio: 224 / 228;+ margin-bottom: 18px;+ filter: drop-shadow(0 0 12px #ad5aff2e);+ animation: stage-mark-in 1100ms var(--ease) both;+}+/* A soft halo behind the mark: opacity only, breathing on the footer's glow clock. */+.studio-stage-mark::before {+ content: ''; position: absolute; inset: -22%; z-index: -1; pointer-events: none; border-radius: 50%;+ background: radial-gradient(closest-side, rgba(173,90,255,.16), rgba(80,150,255,.07) 55%, transparent 74%);+ animation: fm-glow-soft 6s ease-in-out infinite alternate;+}+@keyframes stage-mark-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }+@keyframes fm-glow-soft { from { opacity: .55; } to { opacity: 1; } }+.live-stage-warming .live-stage-progress {+ position: relative; padding-bottom: 16px; min-width: 176px; text-align: center;+ font: 300 30px/1.1 var(--sans); letter-spacing: .02em; color: #edf1ff; font-variant-numeric: tabular-nums;+}+.live-stage-warming .live-stage-progress::before,+.live-stage-warming .live-stage-progress::after {+ content: ''; position: absolute; left: 50%; bottom: 0; width: 176px; margin-left: -88px; height: 2px; border-radius: 1px;+}+.live-stage-warming .live-stage-progress::before { background: rgba(182,191,209,.18); }+.live-stage-warming .live-stage-progress::after {+ background: var(--site-brand); transform: scaleX(var(--p, 0)); transform-origin: left;+ transition: transform 650ms var(--ease);+}+.live-stage-warming .live-stage-phase {+ max-width: 90%; margin-top: 4px; text-align: center; font: 400 13px/1.5 var(--mono);+ letter-spacing: .14em; text-transform: uppercase; color: #b4b4bb;+}+.player-wrap.live-stage .live-stage-image { opacity: 0; transition: opacity 850ms ease; }+.player-wrap.has-live-frame .live-stage-image { opacity: 1; }+.player-wrap.has-live-frame .live-stage-image.is-forming { opacity: .82; }+.player-wrap.has-live-frame.is-aborting .live-stage-image { opacity: .58; }+.player-wrap.has-live-frame .live-stage-warming {+ opacity: 0; visibility: hidden; transition: opacity 850ms ease, visibility 0s 850ms;+}+/* Freeze the outgoing artwork while it fades; hidden rings do no ongoing work. */+.player-wrap.has-live-frame .studio-stage-mark,+.player-wrap.has-live-frame .studio-stage-mark * { animation-play-state: paused; }+@media (prefers-reduced-motion: reduce) {+ .studio-stage-mark, .studio-stage-mark *, .studio-stage-mark::before, .studio-stage-mark::after { animation: none !important; }+ .live-stage-warming .live-stage-progress::after { transition: none; }+ .live-stage-warming, .player-wrap.live-stage .live-stage-image { transition: opacity 400ms ease !important; }+ .player-wrap.has-live-frame .live-stage-warming { transition: opacity 400ms ease, visibility 0s 400ms !important; }+ button.primary::before, #genBtn::before, #genForm .batch-queue-btn::before,+ #genForm .loras-summary .loras-browse-btn:not(.is-ghost)::before { display: none; }+}++/* Larger labels wrap inside the existing workflow/timeline grids. */+.mode-bar .mode-chip { white-space: normal; }+#osLengthGroup .pill-quality { padding-inline: 4px; }+#osLengthGroup .pill-quality > span { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }+.sbe-gutter { flex-basis: 168px; }+.sbe-gh-add > .ghost-btn { min-width: 0; height: auto; padding-inline: 4px; line-height: 1.2; }+.pill-quality .ql-name, .qs-label .qs-name, [class$="-label"] { font-size: 14px; }++.sb-track-row .sb-track-bars { flex: 0 0 88px; min-width: 88px; }++.mini-fields:has(#imgStudioAspect) { grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(0, 1fr)); align-items: end; }+/* LIGHTS_ON_CSS_START */-/* The Pro lamp header, the same block as the 5.0 line (shared there with- the Mac app's bundled header, docs/PRO_LAMP.md). Here it dresses the- one-time "star us on GitHub" card. */+/* Shared with the Mac app's bundled header. See docs/PRO_LAMP.md. */.lights-on-header { position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px; padding: 30px 26px; overflow: hidden; border: 1px solid #2a2a2f; border-radius: 12px; background: #0b0b0c; color: #f4f4f5; font-family: Archivo, -apple-system, BlinkMacSystemFont, sans-serif; box-sizing: border-box; }.lights-on-header * { box-sizing: border-box; }.lights-on-copy { position: relative; min-width: 0; z-index: 1; }@@ -13018,6 +13461,1666 @@ body[data-engine="h3"][data-vmode="v2a"] #h3LengthLabel { display: none !importa}/* LIGHTS_ON_CSS_END */+/* Pro is an optional visit, never a gate on the free studio. */+.pro-entry { flex-shrink: 0; }+.pro-entry[hidden] { display: none; }+.models-card.pro-card { width: min(820px, calc(100vw - 32px)); max-width: 820px; padding: 24px; background: var(--bg, #0a0a0b); }+.pro-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted, #b4b4bb); font-size: 13px; }+.pro-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }+.pro-price { border: 1px solid var(--border, #2a2a2f); border-radius: 8px; padding: 18px; }+.pro-price h3 { font-size: 13px; margin: 0 0 16px; }+.pro-price p { font-size: 13px; margin: 0 0 12px; }+.pro-price strong { font-size: 30px; font-weight: 740; }+.pro-price span { color: var(--muted, #b4b4bb); font-size: 13px; line-height: 1.5; }+.pro-founding { border-color: #8d744d; }+.pro-benefits { margin: 22px 0; display: grid; gap: 14px; }+.pro-benefits p { margin: 0; color: var(--muted, #b4b4bb); font-size: 13px; line-height: 1.5; }+.pro-benefits strong { display: block; color: var(--text, #f4f4f5); font-size: 13px; margin-bottom: 3px; }+.pro-bottom { display: flex; gap: 22px; align-items: center; border-top: 1px solid var(--border, #2a2a2f); padding-top: 18px; }+.pro-waitlist { display: inline-flex; gap: 24px; align-items: center; flex-shrink: 0; border-radius: 4px; padding: 12px 16px; background: #f4f4f5; color: #0b0b0c; text-decoration: none; font-weight: 650; font-size: 13px; }+.pro-bottom p { margin: 0; color: var(--muted, #b4b4bb); font-size: 13px; line-height: 1.5; }+@media (max-width: 560px) { .models-card.pro-card { padding: 16px; } .pro-prices { grid-template-columns: 1fr; } .pro-bottom { flex-direction: column; align-items: flex-start; } }++/* Storage rows contain one text column, with long model paths wrapping. */+#storageList li { grid-template-columns: minmax(0, 1fr); }+#storageList .meta { overflow-wrap: anywhere; }+#storageCleanup { margin-top: 10px; }++/* Keep completion alert actions inside Settings on narrow windows. */+#settingsModal .spicy-row { flex-wrap: wrap; }+#settingsModal .spicy-row button { max-width: 100%; white-space: normal; }+/* Speech → Lip-sync: keep the checkbox beside its label on narrow panes. */+.scene-sound-toggle { display:flex; align-items:center; gap:8px; cursor:pointer; }+.scene-sound-toggle input[type="checkbox"] { width:auto; margin:0; flex-shrink:0; }++/* ========================================================================+ STUDIO v2 — the studio drawn in the website's own language+ ------------------------------------------------------------------------+ docs/redesign/DIRECTION.md is the reasoning; this is the system.+ The rounds above re-coloured the panel; this layer re-composes it:++ * AN APP'S FRAME, the site's materials: the mark and the word on the+ left of a calm title bar, machine state as quiet hairline chips on the+ right; the studio's places in a tool rail down the left edge, icons+ with their names, the current one marked with the site's yellow.+ * NO BOX IN A BOX. Columns sit on the void and are divided by hairlines,+ as the site's sections are. A surface is drawn only where something is+ typed into or picked: the prompt, a choice, a card.+ * TYPE DOES THE HIERARCHY. Archivo for words, heavy and narrow for the+ few display moments; Fragment Mono only for numbers, sizes and paths;+ Newsreader for the one sentence an empty state says.+ * THE BRAND GRADIENT lives in the logo, progress and the one primary+ action of a screen. Nowhere else.+ * Motion is transform and opacity on the site's ease, and stops under+ prefers-reduced-motion.+ ======================================================================== */+:root {+ --v2-ease: cubic-bezier(.4, 0, .2, 1);+ --v2-col: 20px; /* the composer column's gutter */+ --v2-dim: #8e99b6; /* 5.6:1 on the void, 5.2:1 on a panel */+ --v2-line-hi: #373738; /* a hairline that has to be seen */+ --v2-hover: rgba(240, 244, 251, .055);+ --v2-press: rgba(240, 244, 251, .09);+ --v2-chip: inset 0 0 0 1px rgba(240, 244, 251, .14);+ --v2-chip-hi: inset 0 0 0 1px rgba(240, 244, 251, .28);+ --v2-sun: #ffd23f;+ --v2-surface: #0e0e0f; /* the one surface you type on */+ --v2-wash: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.040), transparent 70%);+ /* The primary action: the logo's three colours, deepened until white+ type holds AA on every stop (6.9 / 7.8 / 5.4 :1), lit from above. */+ --v2-action: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 52%),+ linear-gradient(100deg, #8a2c70 0%, #5a37a3 50%, #1d6990 100%);+ --v2-action-glow: 0 12px 28px -16px rgba(177, 74, 255, .7);+ --v2-stage: #040405; /* the monitor: always dark, both themes */+}+html[data-theme="light"] {+ --site-void: #f4f5f9; --site-inset: #ffffff;+ --site-panel: #ffffff; --site-raised: #eef1f7;+ --site-line: #cdd3e1; --site-line-soft: #e0e4ee;+ --site-ink: #0d1330; --site-mute: #47516e; --site-dim: #5d6885;+ --v2-dim: #5d6885; /* 5.6:1 on paper */+ --v2-line-hi: #b9c1d4;+ --v2-hover: rgba(13, 19, 48, .045);+ --v2-press: rgba(13, 19, 48, .08);+ --v2-chip: inset 0 0 0 1px rgba(13, 19, 48, .14);+ --v2-chip-hi: inset 0 0 0 1px rgba(13, 19, 48, .30);+ --v2-sun: #e3a400;+ --v2-surface: #ffffff;+ --v2-wash: radial-gradient(60% 100% at 50% 0%, rgba(120, 90, 255, .06), transparent 70%);+ --v2-action-glow: 0 12px 26px -16px rgba(90, 55, 163, .55);+}++/* ---------- page ---------- */+html, body { background-color: var(--bg); }+body {+ background-image: var(--v2-wash);+ background-repeat: no-repeat; background-size: 100% 70vh; background-attachment: fixed;+ color: var(--text); font-size: 15px; line-height: 1.5;+ font-feature-settings: "ss01" 0; text-rendering: optimizeLegibility;+}+::selection { background: rgba(177, 74, 255, .45); color: #fff; }++/* ---------- the title bar ---------- */+body > header {+ height: 80px; padding: 0 16px 0 14px; gap: 8px;+ background: rgba(5, 5, 6, .72);+ -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);+ border-bottom: 1px solid var(--site-line-soft);+}+html[data-theme="light"] body > header { background: rgba(244, 245, 249, .82); }+body > header .brand { gap: 11px; margin-right: 14px; padding: 4px 6px 4px 2px; border-radius: 6px; }+body > header .ph-mark { width: 66px; height: 66px; }+body > header .brand img { height: 42px; filter: none; }+html[data-theme="light"] body > header .brand img { filter: saturate(1.15) brightness(.86); }+body > header .profile-badge { margin-left: 0; margin-right: 8px; }++/* Machine state: one family of quiet hairline chips, numbers in mono. */+body > header .hdr-div { height: 20px; background: var(--site-line-soft); margin: 0 4px; }+body > header .eng-trigger,+body > header #healthChip,+body > header #versionPill {+ height: 32px; border: 0; border-radius: 5px; background: transparent;+ box-shadow: var(--v2-chip); color: var(--muted);+}+body > header .eng-trigger:hover, body > header #healthChip:hover,+body > header #versionPill:hover { box-shadow: var(--v2-chip-hi); color: var(--text); background: var(--v2-hover); }+body > header .eng-trigger { color: var(--text); font-weight: 600; }+body > header #versionPill {+ font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0;+}+body > header #healthChip .hc-face { font-family: var(--sans); font-weight: 500; }+/* Only above 1400: below it the face is font-size 0 and its ::after shows+ the short form (health chip rule above); a size here would show both. */+@media (min-width: 1401px) {+ body > header #healthChip .hc-face { font-size: 13.5px; font-variant-numeric: tabular-nums; }+}+body > header #versionPill {+ display: inline-flex; align-items: center; padding: 0 11px;+ max-width: 210px; overflow: hidden; text-overflow: ellipsis;+}+body > header #healthCluster { flex: 0 0 auto; border: 0; background: none; padding: 0; }+body > header .icon-btn, body > header .phosphene-x-link, body > header .star-link {+ width: 34px; height: 34px; padding: 0; justify-content: center;+ border: 0; border-radius: 5px; background: transparent; color: var(--muted);+}+body > header .icon-btn:hover, body > header .phosphene-x-link:hover, body > header .star-link:hover {+ color: var(--text); background: var(--v2-hover);+}+body > header .creator-link {+ height: 34px; padding: 0 10px 0 4px; gap: 8px; border: 0; border-radius: 17px;+ background: transparent; box-shadow: none; color: var(--muted); font-size: 14px;+}+body > header .creator-link:hover { color: var(--text); background: var(--v2-hover); }+body > header .creator-avatar { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240,244,251,.16); }+@media (max-width: 1500px) {+ body > header .creator-link > span:not(.x-icon) { display: none; }+ body > header .creator-link > .x-icon { display: none; }+ body > header .creator-link { padding: 0 4px; }+}+@media (max-width: 1400px) {+ body > header #versionPill { min-width: 0; max-width: 132px; }+ body > header #versionPill .vp-state { display: none; }+}+@media (max-width: 900px) {+ body > header .brand img { display: none; }+}++/* ---------- the composer column ---------- */+main.layout > .form-pane {+ background: linear-gradient(180deg, rgba(8, 8, 9, .55), rgba(8, 8, 9, 0) 60%);+ border-right: 1px solid var(--site-line-soft);+}+html[data-theme="light"] main.layout > .form-pane { background: rgba(255, 255, 255, .55); }+.form-pane { scrollbar-width: thin; scrollbar-color: var(--site-line) transparent; }++/* The mode picker: the list of things this column can make. Three columns,+ left-aligned like a contents list; the current one is the only surface. */+.form-pane > #modeGroup.mode-bar {+ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;+ margin: 16px var(--v2-col) 6px; padding: 0;+ background: none; border: 0; border-radius: 0; box-shadow: none;+}+.form-pane > #modeGroup .mode-chip {+ position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;+ gap: 2px; width: auto; height: auto; min-height: 0; margin: 0; padding: 9px 12px 10px;+ border: 0; border-radius: 6px; background: transparent; box-shadow: none;+ text-align: left; white-space: normal;+ font-family: var(--sans); font-size: 14.5px !important; font-weight: 600; line-height: 1.25; color: var(--text);+}+.form-pane > #modeGroup .mode-chip .mc-sub {+ display: block; margin: 0; font-size: 13px !important; font-weight: 400; line-height: 1.35;+ color: var(--v2-dim); opacity: 1; letter-spacing: 0;+}+.form-pane > #modeGroup .mode-chip:hover { background: var(--v2-hover); }+.form-pane > #modeGroup .mode-chip.active {+ background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line); color: var(--text);+}+.form-pane > #modeGroup .mode-chip.active .mc-sub { color: var(--muted); }+.form-pane > #modeGroup .mode-chip::after {+ content: ''; position: absolute; top: 13px; right: 11px; width: 5px; height: 5px; border-radius: 50%;+ background: var(--v2-sun); opacity: 0; transform: scale(0);+ transition: opacity 250ms var(--v2-ease), transform 250ms var(--v2-ease);+}+.form-pane > #modeGroup .mode-chip.active::after { opacity: 1; transform: scale(1); }+.form-pane > #modeGroup .mode-chip.disabled, .form-pane > #modeGroup .mode-chip:disabled { opacity: .45; }++/* Remix tools: a second, smaller contents list under the first. Its frame+ is inline style, so it is overridden here rather than duplicated. */+#remixSubGroup {+ margin: 0 var(--v2-col) 6px !important; padding: 10px 0 0 !important;+ border: 0 !important; border-top: 1px solid var(--site-line-soft) !important; border-radius: 0 !important;+ background: none !important;+}+#remixSubGroup > div:first-child {+ font-family: var(--mono) !important; font-size: 13px !important; letter-spacing: 0 !important;+ text-transform: none !important; color: var(--v2-dim) !important; padding-left: 12px;+}+#remixSubGroup .mode-bar { background: none; border: 0; padding: 0; gap: 2px; }+#remixSubGroup .mode-chip { border: 0; background: none; box-shadow: none; text-align: left; align-items: flex-start; border-radius: 6px; }+#remixSubGroup .mode-chip:hover { background: var(--v2-hover); }+#remixSubGroup .mode-chip.active { background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line); }++/* Every form shares one rhythm: one gutter, so the mode list, the prompt,+ the setting rows and the footer all hang off the same two edges. */+.form-pane > #genForm, .form-pane > #studioSection, .form-pane > #trainSection,+.form-pane > #sbSectionTab, .form-pane > #edSectionTab, .form-pane > #oneshotSectionTab,+.form-pane > #audioSectionTab { padding-left: var(--v2-col); padding-right: var(--v2-col); }+.form-pane > #modelsInline { margin-left: var(--v2-col); margin-right: var(--v2-col); }+#genForm > .composer-card:first-of-type { margin-top: 10px; }++/* THE PROMPT is the one surface you type on: a single card, the words big+ enough to write in, its tools a quiet row under a hairline. On focus the+ logo's colours draw its edge. */+.form-pane .composer-card {+ position: relative; padding: 0; border: 0; border-radius: 8px;+ background: var(--v2-surface); box-shadow: inset 0 0 0 1px var(--site-line);+}+html[data-theme="light"] .form-pane .composer-card { box-shadow: inset 0 0 0 1px var(--site-line), 0 1px 2px rgba(13,19,48,.05); }+.form-pane .composer-card:focus-within,+.form-pane .composer-card:has(textarea.composer-prompt:not(:placeholder-shown)) { box-shadow: inset 0 0 0 1px var(--v2-line-hi); }+.form-pane .composer-card::after {+ content: ''; position: absolute; inset: 0; border: 0; border-radius: inherit; padding: 1px; pointer-events: none;+ background: linear-gradient(100deg, var(--site-pink), var(--site-violet) 52%, var(--site-cyan));+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);+ -webkit-mask-composite: xor; mask-composite: exclude;+ opacity: 0; transition: opacity 400ms var(--v2-ease);+}+.form-pane .composer-card:focus-within::after { opacity: .75; }+.form-pane .composer-card > .composer-prompt,+#genForm .composer-card > textarea.composer-prompt {+ display: block; width: 100%; min-height: 156px; margin: 0; padding: 16px 18px 14px;+ border: 0 !important; border-radius: 8px 8px 0 0; background: transparent !important; box-shadow: none !important;+ font-family: var(--sans); font-size: 16px !important; line-height: 1.55; color: var(--text); resize: vertical;+}+.form-pane .composer-card > .composer-prompt:focus { outline: none; box-shadow: none; }+.form-pane .composer-card > .composer-prompt::placeholder { color: var(--v2-dim); }+.form-pane .composer-card .composer-refs { padding: 14px 14px 0; }+.form-pane .composer-card > .composer-refs + .composer-prompt { border-radius: 0; }+.form-pane .composer-card .composer-tools {+ display: flex; align-items: center; gap: 4px; flex-wrap: wrap;+ margin: 0; padding: 8px 10px; border-top: 1px solid var(--site-line-soft);+}+.form-pane .composer-card .composer-tools .ghost-btn,+.form-pane .composer-card .composer-tools .ct-link,+.form-pane .composer-card .composer-tools .toggle-pill {+ width: auto; height: 32px; padding: 0 10px; border: 0; border-radius: 5px;+ background: transparent; box-shadow: none; color: var(--muted);+ font-size: 14px !important; font-weight: 500;+}+.form-pane .composer-card .composer-tools .ghost-btn:hover,+.form-pane .composer-card .composer-tools .ct-link:hover,+.form-pane .composer-card .composer-tools .toggle-pill:hover { color: var(--text); background: var(--v2-hover); }+.form-pane .composer-card .composer-tools .toggle-pill.is-on { color: var(--text); background: var(--v2-press); }+.form-pane .composer-card .composer-tools #enhanceBtn svg { color: var(--site-violet); }++/* Cards that are not the prompt (training steps, a brief, a One Shot part)+ keep the same surface and get the room inside that the prompt has. */+.form-pane .composer-card.train-card, .form-pane .composer-card.os-card,+.form-pane .composer-card.sb-brief, .form-pane .studio-pane .composer-card { padding: 16px 18px; }+.form-pane .composer-card.sb-brief, .form-pane .studio-pane .composer-card { padding: 0; }++/* Settings rows: the site's section line. Label left, the current values in+ mono on the right, a hairline above; no frame round each one. */+.form-pane .customize-section, .form-pane .loras-section {+ margin: 0; border: 0; border-top: 1px solid var(--site-line-soft); border-radius: 0;+ background: none; box-shadow: none;+}+.form-pane .quick-settings > .customize-section:first-child { margin-top: 18px; }+.form-pane .cz-summary {+ min-height: 52px; padding: 14px 2px; gap: 10px; background: none; border: 0; border-radius: 0;+}+.form-pane .cz-summary:hover, html[data-theme="light"] .form-pane .cz-summary:hover { background: none; }+.form-pane .cz-summary:hover .cz-title { color: var(--text); }+.form-pane .cz-title { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: none; }+.form-pane .cz-meta { font-family: var(--mono); font-size: 13px; color: var(--v2-dim); letter-spacing: 0; }+.form-pane .cz-chevron { color: var(--v2-dim); transition: transform 250ms var(--v2-ease); }+.form-pane details[open] > .cz-summary .cz-chevron { transform: rotate(90deg); }+.form-pane .cz-body { padding: 2px 2px 18px; }+.form-pane .customize-section.shot-setup { border-left: 0; }++/* Field labels: the site's index voice — small, mono, never shouting caps. */+.form-pane .cz-label, .form-pane .field-label, .form-pane .sec-label, .form-pane .ttl-label,+.form-pane label.lbl, .form-pane .label {+ font-family: var(--sans); font-size: 14px !important; font-weight: 600; letter-spacing: 0;+ text-transform: none; color: var(--text);+}+.form-pane .cz-label-hint, .form-pane .hint, .form-pane .field-hint, .form-pane .help {+ color: var(--v2-dim); font-weight: 400;+}++/* Segmented choices (quality, length, aspect, engine…): the site's .seg —+ an inset track, the chosen one a raised surface. */+.form-pane .pill-group:not(.mode-bar) {+ gap: 2px; padding: 3px; border: 0; border-radius: 7px;+ background: rgba(240, 244, 251, .035); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+html[data-theme="light"] .form-pane .pill-group:not(.mode-bar) { background: rgba(13, 19, 48, .035); }+.form-pane .pill-group:not(.mode-bar) .pill-btn {+ border: 0; border-radius: 5px; background: transparent; box-shadow: none; color: var(--muted);+}+.form-pane .pill-group:not(.mode-bar) .pill-btn:hover { color: var(--text); background: var(--v2-hover); }+.form-pane .pill-group:not(.mode-bar) .pill-btn.active {+ background: var(--site-raised); color: var(--text);+ box-shadow: inset 0 0 0 1px var(--v2-line-hi), 0 1px 2px rgba(0, 0, 0, .25);+}+html[data-theme="light"] .form-pane .pill-group:not(.mode-bar) .pill-btn.active {+ background: #fff; box-shadow: inset 0 0 0 1px var(--site-line), 0 1px 2px rgba(13, 19, 48, .08);+}++/* Inputs: an inset well with a hairline; focus is the site's yellow. */+.form-pane input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),+.form-pane select, .form-pane textarea:not(.composer-prompt),+.modal input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),+.modal select, .modal textarea {+ background-color: var(--site-inset); border: 1px solid var(--site-line); border-radius: 5px;+ color: var(--text); box-shadow: none;+}+html[data-theme="light"] .form-pane input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),+html[data-theme="light"] .form-pane select, html[data-theme="light"] .form-pane textarea:not(.composer-prompt) { background-color: #fff; }+.form-pane input:focus, .form-pane select:focus, .form-pane textarea:not(.composer-prompt):focus,+.modal input:focus, .modal select:focus, .modal textarea:focus {+ border-color: var(--v2-line-hi); box-shadow: 0 0 0 2px rgba(255, 210, 63, .35); outline: none;+}+input[type="range"] { accent-color: var(--site-violet); }+input[type="checkbox"], input[type="radio"] { accent-color: #7c4dff; }++/* ---------- the action footer: the one bright thing in the column ---------- */+.form-pane .form-action-footer {+ margin: 18px calc(-1 * var(--v2-col)) 0; padding: 12px var(--v2-col) 18px;+ background: linear-gradient(180deg, rgba(5, 5, 6, .78), var(--bg) 38%);+ -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);+ border-top: 1px solid var(--site-line-soft);+}+html[data-theme="light"] .form-pane .form-action-footer { background: linear-gradient(180deg, rgba(244,245,249,.85), var(--bg) 38%); }+.form-pane .queue-strip { gap: 2px; margin-bottom: 10px; align-items: center; }+.form-pane .queue-strip .qchip {+ width: auto; height: 30px; padding: 0 9px; gap: 6px; border: 0; border-radius: 5px;+ background: transparent; box-shadow: none; color: var(--muted); font-size: 13.5px !important; font-weight: 500;+}+.form-pane .queue-strip .qchip:hover { color: var(--text); background: var(--v2-hover); }+.form-pane .queue-strip .qchip svg { width: 14px; height: 14px; opacity: .8; }+.form-pane .form-action-footer .queue-strip .qchip-derived, .form-pane .os-footer .os-summary {+ font-family: var(--mono); font-size: 13px !important; font-weight: 400; letter-spacing: 0;+ color: var(--v2-dim); background: none; border: 0; box-shadow: none; text-decoration: none;+}+.form-pane .form-action-footer .queue-strip .qchip-derived strong { color: var(--text); font-weight: 400; }+.form-pane .form-action-footer .queue-strip .qchip-derived:hover { color: var(--muted); text-decoration: none; }+.form-pane .form-action-footer .actions { gap: 8px; }++/* The primary action. Deep, lit from above, a hairline of light round it,+ a slow sheen on hover. Never white, never loud. */+button.primary, button[type="submit"].primary, #genBtn,+#genForm .batch-queue-btn, #genForm .loras-summary .loras-browse-btn:not(.is-ghost) {+ background-color: #4f3191; background-image: var(--v2-action);+ color: #fff; border: 0; border-radius: 6px;+ font-family: var(--sans); font-weight: 600; letter-spacing: .01em;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .16), var(--v2-action-glow);+}+button.primary:hover, button[type="submit"].primary:hover, #genBtn:hover:not(:disabled),+#genForm .batch-queue-btn:hover:not(:disabled), #genForm .loras-summary .loras-browse-btn:not(.is-ghost):hover {+ background-color: #4f3191; background-image: var(--v2-action); color: #fff;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .2), var(--v2-action-glow);+}+button.primary:disabled, #genBtn:disabled { opacity: .42; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }+.form-pane .form-action-footer .actions .primary,+.form-pane .form-action-footer .actions #genBtn {+ height: 48px; border-radius: 6px; font-size: 16px !important; font-stretch: 96%;+}+.form-pane .form-action-footer .actions .danger {+ width: auto; min-width: 84px; height: 48px; padding: 0 16px; border: 0; border-radius: 6px;+ background: transparent; color: #ff9b95; box-shadow: inset 0 0 0 1px rgba(255, 146, 140, .38);+ font-size: 15px !important; font-weight: 600;+}+.form-pane .form-action-footer .actions .danger:disabled { color: var(--v2-dim); box-shadow: var(--v2-chip); opacity: .6; }+html[data-theme="light"] .form-pane .form-action-footer .actions .danger:not(:disabled) { color: #b4232b; box-shadow: inset 0 0 0 1px rgba(180, 35, 43, .4); }++/* Secondary and quiet buttons across the studio. */+.ghost-btn, .open-folder-btn, .sbe-btn {+ border: 0; border-radius: 5px; background: transparent; box-shadow: var(--v2-chip); color: var(--text);+}+.ghost-btn:hover, .open-folder-btn:hover, .sbe-btn:hover { background: var(--v2-hover); box-shadow: var(--v2-chip-hi); }++/* ---------- the stage ---------- */+main.layout > .stage-pane { background: none; }+.player-surface {+ border: 0; border-radius: 8px; background: var(--v2-stage);+ box-shadow: 0 0 0 1px rgba(240, 244, 251, .07), 0 30px 70px -40px rgba(0, 0, 0, .9);+}+html[data-theme="light"] .player-surface { box-shadow: 0 0 0 1px rgba(13, 19, 48, .12), 0 30px 60px -36px rgba(13, 19, 48, .5); }+.player-wrap { background: var(--v2-stage); }+.player-overlay-top {+ padding: 16px 18px 40px;+ background: linear-gradient(180deg, rgba(3, 3, 4, .72), rgba(3, 3, 4, 0));+}+.po-name { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }+.po-meta { font-family: var(--mono); font-size: 13px; color: rgba(240, 244, 251, .62); }+.player-overlay-actions {+ top: 12px; right: 12px; gap: 2px; padding: 3px; border: 0; border-radius: 7px;+ background: rgba(5, 5, 6, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px -12px rgba(0,0,0,.7);+}+.po-act { height: 30px; border: 0; border-radius: 5px; color: rgba(240, 244, 251, .8); font-size: 13.5px; }+.po-act:hover { background: rgba(255, 255, 255, .08); border: 0; color: #fff; }+/* Finish is the clip's one primary next step: it carries the action colour+ (it rendered dark-blue on dark-blue in the light theme before). */+.po-finish, html[data-theme="light"] .po-finish {+ border: 0; border-radius: 5px; background-color: #4f3191; background-image: var(--v2-action);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);+}+.po-finish .po-act.po-act-finish, html[data-theme="light"] .po-finish .po-act.po-act-finish { color: #fff; }+.po-finish .po-act.po-act-finish:hover { background: rgba(255, 255, 255, .1); color: #fff; }+.po-finish-select {+ border-left-color: rgba(255, 255, 255, .2);+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4 L5 7 L8 4' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+}+.po-finish-select:hover { background-color: rgba(255, 255, 255, .1); }++/* The empty stage speaks like the site: a display line and one serif sentence. */+.ps-empty { gap: 10px; }+.ps-empty-icon { color: rgba(240, 244, 251, .4); }+.ps-empty-title {+ font-family: var(--sans); font-size: 34px; font-weight: 820; font-stretch: 78%;+ line-height: .95; letter-spacing: -.02em; color: #f4f4f5;+}+.ps-empty-sub { font-family: var(--serif); font-size: 19px; font-weight: 380; line-height: 1.35; color: #b4b4bb; max-width: 30ch; }++/* GENERATING. The footer's rings turn in the dark; under them a large, light+ number and a brand hairline that fills; the phase in mono, sentence case.+ Then the first real frame crossfades in over all of it. */+.live-stage-warming { gap: 0; }+.live-stage-warming .live-stage-progress {+ padding-bottom: 18px; min-width: 220px;+ font: 300 44px/1 var(--sans); font-stretch: 92%; letter-spacing: -.01em; color: #f4f4f5;+}+.live-stage-warming .live-stage-progress::before,+.live-stage-warming .live-stage-progress::after { width: 220px; margin-left: -110px; height: 2px; }+.live-stage-warming .live-stage-progress::before { background: rgba(182, 191, 209, .14); }+.live-stage-warming .live-stage-phase {+ margin-top: 14px; max-width: min(52ch, 86%); font: 400 13px/1.55 var(--mono);+ letter-spacing: 0; text-transform: none; color: rgba(182, 191, 209, .9);+}+.studio-stage-mark { margin-bottom: 30px; }+.live-stage-overlay {+ padding: 60px 20px 18px; gap: 14px; align-items: center;+ background: linear-gradient(180deg, transparent, rgba(2, 2, 3, .82));+}+.live-stage-badge {+ height: 26px; padding: 0 10px; border: 0; border-radius: 13px;+ background: rgba(5, 5, 6, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);+ font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .04em;+}+.live-stage-badge::before { background: var(--v2-sun); box-shadow: 0 0 0 4px rgba(255, 210, 63, .14); }+.live-stage-title { font-size: 14px; font-weight: 600; }+.live-stage-eta { font-family: var(--mono); font-size: 13px; color: rgba(226, 235, 255, .7); }+.live-stage-stop {+ height: 32px; padding: 0 14px; border: 0; border-radius: 6px;+ background: rgba(5, 5, 6, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);+}++/* ---------- outputs ---------- */+.carousel-wrap {+ background: none; border: 0; border-top: 1px solid var(--site-line-soft); border-radius: 0; box-shadow: none;+}+.carousel-head { gap: 10px; padding: 14px 0 12px; }+.carousel-head > h3#carouselTitle, .carousel-head > h3 {+ font-family: var(--sans); font-size: 21px !important; font-weight: 760; font-stretch: 86%;+ letter-spacing: -.01em; text-transform: none; color: var(--text); margin-right: 8px;+}+.stage-outputs-filter, .carousel-head .seg {+ display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: 7px;+ background: rgba(240, 244, 251, .035); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+html[data-theme="light"] .stage-outputs-filter, html[data-theme="light"] .carousel-head .seg { background: rgba(13, 19, 48, .035); }+.stage-outputs-filter button, .carousel-head .seg button {+ height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: none; box-shadow: none;+ color: var(--muted); font-size: 14px !important; font-weight: 500;+}+.stage-outputs-filter button:hover, .carousel-head .seg button:hover { color: var(--text); background: var(--v2-hover); }+.stage-outputs-filter button.active, .carousel-head .seg button.active {+ background: var(--text); color: var(--bg); box-shadow: none; font-weight: 600;+}+.carousel-head .outputs-search {+ height: 34px; min-width: 200px; padding: 0 12px; border: 0; border-radius: 6px;+ background: transparent; box-shadow: inset 0 0 0 1px var(--site-line-soft); color: var(--text);+}+.carousel-head .outputs-search:focus { box-shadow: inset 0 0 0 1px var(--v2-line-hi), 0 0 0 2px rgba(255, 210, 63, .3); outline: none; }+.carousel-head .ghost-btn, .carousel-head .open-folder-btn { height: 34px; }++/* A card is a frame and a caption — no box round it. */+.car-card {+ background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;+ transition: transform 300ms var(--v2-ease);+}+.car-card:hover { transform: translateY(-2px); border: 0; box-shadow: none; }+.car-card .car-thumb-wrap {+ border-radius: 6px; overflow: hidden; background: var(--v2-stage);+ box-shadow: 0 0 0 1px rgba(240, 244, 251, .07);+}+html[data-theme="light"] .car-card .car-thumb-wrap { box-shadow: 0 0 0 1px rgba(13, 19, 48, .1); }+.car-card .car-thumb { transition: transform 600ms var(--v2-ease), opacity 300ms var(--v2-ease); }+.car-card:hover .car-thumb { transform: scale(1.035); }+.car-card.active, .car-card.active:hover { background: none; border: 0; box-shadow: none; }+.car-card.active .car-thumb-wrap { box-shadow: 0 0 0 2px var(--text), 0 0 0 5px rgba(240, 244, 251, .06); }+html[data-theme="light"] .car-card.active .car-thumb-wrap { box-shadow: 0 0 0 2px var(--text), 0 0 0 5px rgba(13, 19, 48, .06); }+.car-card .info { padding: 9px 2px 2px; }+.car-card .info .name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.35; }+.car-card .info .sub {+ font-family: var(--sans); font-size: 13px; color: var(--v2-dim); font-variant-numeric: tabular-nums;+ line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;+}+.car-card .card-chip-row {+ font-family: var(--mono); font-size: 13px; color: var(--v2-dim); letter-spacing: 0; background: none; border: 0; padding: 0;+}+.car-card .card-chip-row { margin-top: 1px; }++/* ---------- the run log under the composer ---------- */+.bottom-pane { background: none; border-top: 1px solid var(--site-line-soft); }+.bottom-pane .tabs { gap: 2px; padding: 6px 12px 0; border: 0; background: none; }+.bottom-pane .tabs button {+ position: relative; width: auto; height: 34px; padding: 0 10px; border: 0; border-radius: 5px;+ background: none; box-shadow: none; color: var(--muted); font-size: 14px !important; font-weight: 500;+}+.bottom-pane .tabs button:hover { color: var(--text); background: var(--v2-hover); }+.bottom-pane .tabs button.active, .bottom-pane .tabs button.active:hover { color: var(--text); background: none; box-shadow: none; }+.bottom-pane .tabs button::after {+ content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;+ background: var(--v2-sun); opacity: 0; transform: scale(0); transition: opacity 250ms var(--v2-ease), transform 250ms var(--v2-ease);+}+.bottom-pane .tabs button.active::after { opacity: 1; transform: scale(1); }+.bottom-pane .tabs .badge { font-family: var(--mono); font-size: 13px; padding: 0 6px; border-radius: 9px; background: var(--v2-press); color: var(--text); }+.bottom-pane .model-credit { font-family: var(--mono); font-size: 13px; color: var(--v2-dim); }+.bottom-body { background: none; }+.now-card {+ margin: 6px 16px 14px; padding: 14px 16px; border: 0; border-radius: 8px;+ background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+.now-card.idle { background: none; box-shadow: none; padding: 10px 16px; }+.now-card .ttl {+ font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text);+ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;+}+.now-card.idle .ttl { font-size: 14px; font-weight: 600; color: var(--muted); }+.now-card .meta, #nowDetail { font-family: var(--sans); font-size: 13.5px; color: var(--v2-dim); line-height: 1.5; }+#nowCard.idle #nowDetail { font-family: var(--serif); font-size: 16.5px; color: var(--v2-dim); }+.now-thumb { border: 0; border-radius: 5px; overflow: hidden; background: var(--v2-stage); box-shadow: 0 0 0 1px rgba(240,244,251,.08); }+/* Warming: no picture worth judging yet — a slow glow of the brand colours+ breathes where it will appear, instead of a drawn film-strip glyph. */+.now-thumb.is-warming::after {+ -webkit-mask: none; mask: none;+ background: radial-gradient(circle at 50% 58%, rgba(177, 74, 255, .55), rgba(94, 234, 255, .14) 46%, transparent 72%);+}+.progress-bar { height: 2px; border-radius: 1px; background: var(--site-line-soft); }+.row-list li {+ border: 0; border-radius: 6px; background: none; box-shadow: inset 0 -1px 0 var(--site-line-soft);+}+.row-list li:hover { background: var(--v2-hover); }++/* ---------- modals ---------- */+.modal-bg { background: rgba(3, 3, 4, .62); }+html[data-theme="light"] .modal-bg { background: rgba(13, 19, 48, .28); }+.modal, .models-modal .models-card {+ border: 0; border-radius: 10px; background: var(--site-panel);+ box-shadow: inset 0 0 0 1px var(--site-line), 0 40px 90px -30px rgba(0, 0, 0, .85);+}+html[data-theme="light"] .modal, html[data-theme="light"] .models-modal .models-card {+ box-shadow: inset 0 0 0 1px var(--site-line), 0 40px 80px -36px rgba(13, 19, 48, .45);+}+.modal > h2, .modal > h3, .modal .modal-title, .models-head h2, .models-modal h2 {+ font-family: var(--sans); font-size: 30px !important; font-weight: 800; font-stretch: 80%;+ line-height: 1; letter-spacing: -.015em; text-transform: none; color: var(--text);+}+.modal h4, .settings-section h3, .modal .settings-h {+ font-family: var(--sans); font-size: 15px !important; font-weight: 700; letter-spacing: 0;+ text-transform: none; color: var(--text);+}+.modal code, .modal .mono, .modal .path { font-family: var(--mono); font-size: 13px; }++/* ---------- shared surfaces elsewhere (Images, Audio, Storyboard, Train) ---------- */+.form-pane .studio-pane .composer-card, .form-pane .sb-brief { overflow: hidden; }+.form-pane .card, .form-pane .song-card, .form-pane .train-preflight-card, .form-pane .os-status {+ border: 0; border-radius: 8px; background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+/* Small caps-lock headings over cards become the site's quiet index line. */+.form-pane .studio-head, .form-pane .os-kicker, .form-pane .train-kicker, .form-pane .sb-kicker {+ font-family: var(--mono) !important; font-size: 13px !important; letter-spacing: 0 !important;+ text-transform: none !important; color: var(--v2-dim) !important;+}++@media (prefers-reduced-motion: reduce) {+ .tool-rail .workflow-tabs button::before, .bottom-pane .tabs button::after, .car-card .car-thumb-wrap::after,+ .form-pane > #modeGroup .mode-chip::after, .form-pane .composer-card::after,+ .car-card, .car-card .car-thumb { transition: none; }+ .car-card:hover, .car-card:hover .car-thumb { transform: none; }+}++/* ---------- one label voice for every form in the column ----------+ The older forms each drew their own heading: mono caps with tracking+ ("MAKE OR CHANGE A PICTURE", "THE SHOT", "TRAIN TYPE"), a right-aligned+ mono paragraph beside it. On the site a heading is a word in Archivo and+ its explanation is a quieter sentence under it, left-aligned. */+.form-pane h2, .form-pane .composer-card h2, .form-pane .customize-section h2,+.form-pane .composer-refs h2, #genForm h2, .studio-pane h2, .train-pane h2 {+ margin: 0 0 10px; font-family: var(--sans); font-size: 15px !important; font-weight: 650;+ letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1.35;+}+.form-pane h2 .h2-hint, .studio-pane h2 .h2-hint, .train-pane h2 .h2-hint {+ display: inline; margin-left: 8px; font-family: var(--sans); font-size: 13.5px !important; font-weight: 400;+ letter-spacing: 0; text-transform: none; color: var(--v2-dim); opacity: 1;+}+#genForm h2 { margin-top: 22px; }+#genForm h2:first-of-type { margin-top: 0; }+.form-pane .composer-card > h2:first-child, .form-pane .composer-refs > h2:first-child { padding: 0; }+.form-pane .qs-label, .form-pane .os-card .qs-label, .form-pane .take-axes .qs-label {+ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 2px 10px; margin-bottom: 8px;+}+.form-pane .qs-label .qs-name, .form-pane .os-card .qs-label .qs-name {+ flex: 0 0 auto; font-family: var(--sans); font-size: 14.5px !important; font-weight: 600;+ letter-spacing: 0; text-transform: none; color: var(--text);+}+.form-pane .qs-label .qs-meta, .form-pane .os-card .qs-label .qs-meta, .form-pane .take-axes .qs-label .qs-meta {+ flex: 1 1 220px; min-width: 0; font-family: var(--sans); font-size: 13.5px !important;+ color: var(--v2-dim); text-align: left; white-space: normal; line-height: 1.45;+}+.form-pane .cz-label .cz-label-hint { font-size: 13.5px !important; margin-left: 6px; }+.form-pane .ref-tag, .form-pane .studio-ref-slot .ref-tag, .form-pane .train-guidance-eyebrow,+.form-pane .experimental-tag {+ font-family: var(--mono); font-size: 13px !important; letter-spacing: 0; text-transform: none;+}+.form-pane .ref-tag, .form-pane .studio-ref-slot .ref-tag { border: 0; background: none; color: var(--v2-dim); padding: 0; }+.form-pane .experimental-tag { padding: 1px 6px; border: 0; border-radius: 4px; background: rgba(255, 210, 63, .12); }+.form-pane .pill-btn .sub, .form-pane .q-chip .q-spec, .form-pane .pill-quality .ql-spec,+.form-pane .pill-quality .ql-tier, .form-pane .kf-sub {+ font-family: var(--sans); font-size: 13px !important; letter-spacing: 0; color: var(--v2-dim); opacity: 1;+}+.form-pane .pill-btn.active .sub, .form-pane .q-chip.active .q-spec, .form-pane .pill-quality.active .ql-spec { color: var(--muted); }+/* Drop targets: one dashed well, the words centred and quiet. */+.form-pane .picker-drop, .form-pane .studio-ref-slot, .form-pane .drop-zone {+ border: 1px dashed var(--v2-line-hi); border-radius: 8px; background: rgba(240, 244, 251, .02);+}+html[data-theme="light"] .form-pane .picker-drop, html[data-theme="light"] .form-pane .studio-ref-slot { background: rgba(13, 19, 48, .02); }+.form-pane .picker-drop:hover, .form-pane .studio-ref-slot:hover { border-color: var(--muted); background: var(--v2-hover); }+/* Notices inside the column: a left rule of colour, never a filled box. */+.form-pane .engine-note, .form-pane .warn-note, .form-pane .install-note {+ padding: 2px 0 2px 12px; border: 0; border-left: 2px solid var(--warning); border-radius: 0; background: none;+ color: var(--muted); font-size: 13.5px; line-height: 1.5;+}+/* With the nav in the title bar, a section that hides the mode list starts+ at the column's top edge; it gets the same breathing room the list has. */+.form-pane > #studioSection, .form-pane > #trainSection, .form-pane > #sbSectionTab,+.form-pane > #edSectionTab, .form-pane > #oneshotSectionTab, .form-pane > #audioSectionTab { padding-top: 16px; }++/* ---------- lists of things on this Mac (Models, Settings → Storage) ----------+ The onboarding's setup plan: ONE surface, rows divided by hairlines, the+ state carried by the icon's colour rather than a coloured frame per row,+ sizes and paths in mono. */+.models-list {+ gap: 0; padding: 0 16px; border-radius: 10px;+ background: rgba(240, 244, 251, .02); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+html[data-theme="light"] .models-list { background: #fff; }+.models-list li, .models-list li.ready, .models-list li.partial, .models-list li.missing,+.models-list li.kept, .models-list li.downloading {+ grid-template-columns: 22px 1fr auto; gap: 12px; padding: 14px 0;+ border: 0; border-top: 1px solid var(--site-line-soft); border-radius: 0; background: none; box-shadow: none;+}+.models-list li:first-child { border-top: 0; }+.models-list li .icon { font-size: 16px; color: var(--v2-dim); align-self: start; padding-top: 2px; }+.models-list li.ready .icon { color: var(--success); }+.models-list li.partial .icon { color: var(--warning); }+.models-list li.missing .icon { color: var(--danger); }+.models-list li.downloading .icon { color: var(--site-cyan); }+.models-list li .meta .ttl { font-size: 14.5px; font-weight: 600; color: var(--text); }+.models-list li .meta .ttl > span[style*="float"] { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }+.models-list li .meta .sub { font-size: 13.5px; color: var(--v2-dim); line-height: 1.5; }+#storageList li .meta .sub:nth-child(2) { font-family: var(--mono); font-size: 13px; word-break: break-all; }+.models-list li .model-row-details summary { color: var(--muted); text-decoration: underline; text-decoration-color: var(--site-line); text-underline-offset: .25em; }+.models-list li .model-row-details summary:hover { color: var(--text); text-decoration-color: var(--v2-sun); }+.models-list li button {+ height: 32px; padding: 0 14px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 600;+ color: #fff; background-color: #4f3191; background-image: var(--v2-action);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);+}+.models-list li button.ghost, .models-list li button[disabled] {+ background: transparent; background-image: none; color: var(--text); box-shadow: var(--v2-chip);+}+.models-list li button.ghost:hover { background: var(--v2-hover); box-shadow: var(--v2-chip-hi); }+.models-list li button[disabled] { color: var(--v2-dim); }+.models-foot, .models-hint { font-size: 13.5px; color: var(--v2-dim); }+button.primary-btn {+ height: 34px; padding: 0 16px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff;+ background-color: #4f3191; background-image: var(--v2-action); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);+}+button.primary-btn:hover { background-color: #4f3191; background-image: var(--v2-action); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }+.ed-pool-src-label { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; }+/* Modal sections breathe like the site's: a hairline and air between them. */+.modal .settings-section + .settings-section, .modal section + section { border-top: 1px solid var(--site-line-soft); padding-top: 18px; margin-top: 18px; }+/* While the stage is still warming, the centre already says what is+ happening; the corner keeps only LIVE and the time left. */+.player-wrap.live-stage:not(.has-live-frame) ~ .live-stage-overlay .live-stage-title { display: none; }+.player-wrap.live-stage:not(.has-live-frame) ~ .live-stage-overlay .live-stage-eta { margin-top: 0; }+.live-stage-warming .live-stage-phase { color: #c4cce0; }++/* ========================================================================+ STUDIO v2.1 — an app's navigation, the site's materials+ ------------------------------------------------------------------------+ v2 put the places in the title bar as the website's word menu. In an app+ that read as a web page and gave the tools nowhere to grow. They live in+ a tool rail now (markup: <aside class="tool-rail"> in main.layout), the+ way a studio app keeps its rooms: icons people scan by, names under+ them, the current one held by the site's yellow. The modes inside Video+ get their icons too: you find "Extend" by its arrow before you read it.+ ======================================================================== */+:root { --rail-w: 80px; }+main.layout { position: relative; padding-left: var(--rail-w); }+.tool-rail {+ position: absolute; inset: 0 auto 0 0; z-index: 7; width: var(--rail-w);+ display: flex; flex-direction: column; padding: 10px 7px 12px;+ border-right: 1px solid var(--site-line-soft);+ background: linear-gradient(180deg, rgba(8, 8, 9, .9), rgba(8, 8, 9, .55));+}+html[data-theme="light"] .tool-rail { background: rgba(255, 255, 255, .72); }+.tool-rail .workflow-tabs {+ flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; flex-wrap: nowrap;+ align-items: stretch; gap: 2px; width: auto; max-width: none; margin: 0; padding: 0;+ background: none; border: 0; border-radius: 0; box-shadow: none;+ overflow-y: auto; overflow-x: hidden; scrollbar-width: none;+}+.tool-rail .workflow-tabs::-webkit-scrollbar { display: none; }+.tool-rail .workflow-tabs button, .tool-rail .rail-foot .icon-btn {+ position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;+ gap: 6px; width: 100%; height: auto; min-height: 62px; margin: 0; padding: 9px 2px 8px;+ border: 0; border-radius: 9px; background: none; box-shadow: none;+ font-family: var(--sans); font-size: 13px !important; font-weight: 500; line-height: 1.15;+ letter-spacing: 0; text-align: center; white-space: normal; color: var(--muted);+}+.tool-rail .workflow-tabs .wf-icon { display: block; width: 22px; height: 22px; flex: none; }+.tool-rail .workflow-tabs button:hover, .tool-rail .rail-foot .icon-btn:hover { color: var(--text); background: var(--v2-hover); }+.tool-rail .workflow-tabs button.active, .tool-rail .workflow-tabs button.active:hover {+ color: var(--text); background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line);+}+html[data-theme="light"] .tool-rail .workflow-tabs button.active { background: #fff; box-shadow: inset 0 0 0 1px var(--site-line), 0 1px 2px rgba(13, 19, 48, .06); }+.tool-rail .workflow-tabs button::before {+ content: ''; position: absolute; left: -7px; top: 50%; width: 3px; height: 26px; margin-top: -13px;+ border-radius: 0 3px 3px 0; background: var(--v2-sun);+ opacity: 0; transform: scaleY(.2); transition: opacity 250ms var(--v2-ease), transform 250ms var(--v2-ease);+}+.tool-rail .workflow-tabs button.active::before { opacity: 1; transform: scaleY(1); }+.tool-rail .workflow-tabs button::after { content: none; }+/* NEW is a mark on the icon, not a word squeezed under a name. */+.tool-rail .workflow-tabs .new-badge:not(.sb-live) {+ position: absolute; top: 9px; left: calc(50% + 8px); width: 7px; height: 7px; margin: 0; padding: 0;+ border: 0; border-radius: 50%; background: var(--site-cyan); box-shadow: 0 0 0 2px var(--bg);+ font-size: 0 !important; color: transparent; overflow: hidden;+}+html[data-theme="light"] .tool-rail .workflow-tabs .new-badge:not(.sb-live) { background: #0e7490; }+/* A storyboard rendering right now: its count, on the icon, in the live colour. */+.tool-rail .workflow-tabs .new-badge.sb-live {+ position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; margin: 0; padding: 0 5px;+ border: 0; border-radius: 9px; background: var(--v2-sun); color: #0a0a0b;+ font-family: var(--mono); font-size: 13px !important; line-height: 18px; text-align: center;+}+.tool-rail .rail-foot {+ display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px;+ border-top: 1px solid var(--site-line-soft);+}+.tool-rail .rail-foot .icon-btn { min-height: 56px; }+.tool-rail .rail-foot .icon-btn svg { width: 20px; height: 20px; }+.tool-rail .rail-foot .docs-btn-word, .tool-rail .rail-foot .rail-label { display: block; }+/* Short windows: the names stay, the rows tighten. */+@media (max-height: 760px) {+ .tool-rail .workflow-tabs button { min-height: 52px; padding: 6px 2px; gap: 4px; }+ .tool-rail .rail-foot .icon-btn { min-height: 48px; }+}++/* Mode icons. Drawn as masks so the markup and its labels stay exactly as+ they are; the colour is the chip's own. */+.form-pane > #modeGroup .mode-chip, #remixSubGroup .mode-chip {+ display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 9px; row-gap: 2px;+ align-items: start; align-content: start; justify-items: start;+}+.form-pane > #modeGroup .mode-chip::before, #remixSubGroup .mode-chip::before {+ content: ''; grid-column: 1; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 0;+ background: currentColor; opacity: .82;+ -webkit-mask: var(--mi) center / contain no-repeat; mask: var(--mi) center / contain no-repeat;+}+.form-pane > #modeGroup .mode-chip .mc-sub, #remixSubGroup .mode-chip .mc-sub { grid-column: 2; }+.form-pane > #modeGroup .mode-chip.active::before, #remixSubGroup .mode-chip.active::before { opacity: 1; }+.mode-chip[data-mode="t2v"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 6h14M12 6v12M9 18h6'/></svg>"); }+.mode-chip[data-mode="character"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8.5' r='3.5'/><path d='M5 19.5c1.3-3.4 4-5 7-5s5.7 1.6 7 5'/></svg>"); }+.mode-chip[data-mode="i2v"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='5' width='17' height='14' rx='2'/><circle cx='9' cy='10' r='1.6'/><path d='M4.5 17l5-4.5 3.5 3 2.5-2 4 3.5'/></svg>"); }+.mode-chip[data-mode="keyframe"]:not([data-kf-default]) { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='7' width='7' height='10' rx='1.5'/><rect x='14.5' y='7' width='7' height='10' rx='1.5'/><path d='M10.5 12h3'/></svg>"); }+.mode-chip[data-kf-default="multi"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8.6l3 3.4-3 3.4-3-3.4zM12 8.6l3 3.4-3 3.4-3-3.4zM19 8.6l3 3.4-3 3.4-3-3.4zM3 19.5h18'/></svg>"); }+.mode-chip[data-mode="extend"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='6' width='11' height='12' rx='1.5'/><path d='M16.5 12h5M19 9.5l2.5 2.5-2.5 2.5'/></svg>"); }+.mode-chip[data-mode="v2a"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9.5v5h3.5L12 18V6L7.5 9.5z'/><path d='M15.5 9.5c1.2 1.4 1.2 3.6 0 5M18 7c2.6 2.8 2.6 7.2 0 10'/></svg>"); }+.mode-chip[data-lipsync] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12c2.5-3.2 5.5-4.2 9-2 3.5-2.2 6.5-1.2 9 2-2.5 3.6-5.5 5-9 5s-6.5-1.4-9-5zM3 12h18'/></svg>"); }+.mode-chip[data-mode="remix"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h8M16 7h4M4 17h3M11 17h9'/><circle cx='14' cy='7' r='2'/><circle cx='9' cy='17' r='2'/></svg>"); }+.mode-chip[data-remix="ingredients"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='7' height='7' rx='1.5'/><rect x='13' y='4' width='7' height='7' rx='1.5'/><rect x='4' y='13' width='7' height='7' rx='1.5'/><path d='M16.5 13.5v6M13.5 16.5h6'/></svg>"); }+.mode-chip[data-remix="control"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='13' cy='4.5' r='1.8'/><path d='M8 21l3-6 3 2v4M11 15l1-5 4 3 3-1M12 10l-4 1-2 3'/></svg>"); }+.mode-chip[data-remix="restore"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5c3 3.6 6 7.2 6 10.5a6 6 0 0 1-12 0c0-3.3 3-6.9 6-10.5z'/><path d='M9 14.5a3 3 0 0 0 3 3'/></svg>"); }+.mode-chip[data-remix="upscale"] { --mi: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4h6v6M20 4l-7 7M10 20H4v-6M4 20l7-7'/></svg>"); }++/* The chosen output's frame is drawn INSIDE its picture. Drawn outside, the+ carousel's own edge sliced its top off, the moment it was the first row. */+.car-card .car-thumb-wrap { position: relative; }+.car-card .car-thumb-wrap::after {+ content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;+ box-shadow: inset 0 0 0 2px var(--text), inset 0 0 0 3px rgba(5, 5, 6, .55);+ opacity: 0; transition: opacity 200ms var(--v2-ease);+}+.car-card.active .car-thumb-wrap, html[data-theme="light"] .car-card.active .car-thumb-wrap { box-shadow: 0 0 0 1px rgba(240, 244, 251, .07); }+html[data-theme="light"] .car-card.active .car-thumb-wrap::after { box-shadow: inset 0 0 0 2px var(--text), inset 0 0 0 3px rgba(255, 255, 255, .6); }+.car-card.active .car-thumb-wrap::after { opacity: 1; }+.carousel { padding-top: 4px; }+/* The stage is still sized first (exactly the 16:9 player at 58vh, so the+ picture fills its column at every size — measure_outputs_layout.py), but+ it now YIELDS before the composer drops under 460 px. With the rail+ beside it the composer fell to ~430 px at 1440: modes wrapped to three+ lines and the queue actions to two rows. The stage is a capped track and+ the composer the flexible one, so the grid shrinks the stage first.+ Editor and Storyboard keep their own column rules (higher specificity). */+main.layout { grid-template-columns: minmax(460px, 1fr) minmax(0, min(70vw, calc(58vh * 16 / 9 + 28px))); }+.bottom-pane .model-credit { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }++/* ---------- option A: every task stays put; models are marked on it ----------+ engines.js (syncModeStripToEngine) draws who can make each mode from the+ ENGINES registry. A mode the active model cannot render is no longer+ folded away (.mode-bar .mode-chip.eng-foreign used to be display:none, and+ the data-h3-only fold took Add sound off LTX): it stays where it is,+ dimmed, saying which model makes it, and a click switches to that model.+ Only a mode NO engine on this Mac can ever render folds. */+.form-pane > #modeGroup .mode-chip.eng-foreign { display: grid; }+body:not([data-engine="h3"]) .form-pane > #modeGroup .mode-chip[data-h3-only].mode-reachable { display: grid !important; }+.form-pane > #modeGroup .mode-chip.mode-unreachable { display: none !important; }+.form-pane > #modeGroup .mode-chip { grid-template-columns: 18px minmax(0, 1fr) auto; }+.form-pane > #modeGroup .mode-chip .mc-sub { grid-column: 2 / span 2; }+.form-pane > #modeGroup .mode-chip .mc-eng {+ grid-column: 3; grid-row: 1; align-self: center; display: inline-flex; gap: 3px; margin-left: 4px;+}+.form-pane > #modeGroup .mode-chip .mc-eng svg { width: 13px; height: 13px; color: var(--v2-dim); }+.form-pane > #modeGroup .mode-chip.active .mc-eng svg { color: var(--muted); }+.form-pane > #modeGroup .mode-chip.eng-foreign { color: var(--v2-dim); }+.form-pane > #modeGroup .mode-chip.eng-foreign::before { opacity: .45; }+.form-pane > #modeGroup .mode-chip.eng-foreign .mc-sub[data-uses]::after {+ content: " · uses " attr(data-uses); color: var(--muted);+}+.form-pane > #modeGroup .mode-chip.eng-foreign:hover { color: var(--text); }+.form-pane > #modeGroup .mode-chip.eng-foreign:hover::before { opacity: .8; }+/* Current = the site's yellow, on the icon itself; the corner dot is gone+ now that the corner carries the models' marks. */+.form-pane > #modeGroup .mode-chip::after, #remixSubGroup .mode-chip::after { content: none; }+.form-pane > #modeGroup .mode-chip.active::before, #remixSubGroup .mode-chip.active::before { background: var(--v2-sun); opacity: 1; }++/* The model heads the column: a label, then one full-width tile carrying the+ engine's own mark in its accent, its name, its generation and a caret at+ the far edge. The row folds away with the switch (one engine on this+ surface) and in the Editor, whose column is the media pool. */+.form-pane > .engine-pick { display: flex; align-items: center; gap: 14px; margin: 18px 20px 0; }+.form-pane > .engine-pick:not(:has(> .engine-switch[hidden])) ~ #modeGroup { margin-top: 12px; }+/* The models card lives UNDER the picker now (owner, 5 Nov 2026). */+.form-pane > .engine-pick:not(:has(> .engine-switch[hidden])) + #modelsInline { margin-top: 12px; margin-bottom: 0; }+/* Nothing is wrong in the "Ready to render · N add-ons" state: one quiet line,+ not a card. The models modal is the line's link; the × closes it for good. */+.form-pane > #modelsInline.is-ready { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; background: transparent; border-style: dashed; }+.form-pane > #modelsInline.is-ready .models-inline-body { flex: 1 1 0; min-width: 0; grid-template-columns: 16px minmax(0, 1fr); grid-template-areas: "icon text"; gap: 0 8px; align-items: center; }+.form-pane > #modelsInline.is-ready .models-inline-icon { font-size: 14px; color: var(--muted); }+.form-pane > #modelsInline.is-ready .models-inline-text .ttl { font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.form-pane > #modelsInline.is-ready .models-inline-text .sub,+.form-pane > #modelsInline.is-ready .models-inline-actions { display: none; }+.form-pane > #modelsInline.is-ready .models-inline-link { flex: 0 0 auto; width: auto; position: static; margin: 0; white-space: nowrap; }+.form-pane > #modelsInline.is-ready .models-inline-dismiss { order: 3; flex: none; position: static; }+/* Images: the picker heads the column there too; the Studio form under it. */+body[data-workflow="studio"] .form-pane > .engine-pick:not(:has(> .engine-switch[hidden])) ~ #studioSection { margin-top: 4px; }+.form-pane > .engine-pick:has(> .engine-switch[hidden]), body[data-workflow="editor"] .form-pane > .engine-pick { display: none; }+.form-pane > .engine-pick .engine-pick-label { flex: none; font-family: var(--sans); font-size: 15px; font-weight: 650; color: var(--text); }+.form-pane > .engine-pick .engine-switch { flex: 1 1 auto; display: flex; min-width: 0; }+.form-pane > .engine-pick .hdr-div { display: none !important; }+.form-pane > .engine-pick .eng-trigger {+ width: 100%; height: 44px; min-height: 44px; padding: 0 14px 0 13px; gap: 8px; justify-content: flex-start;+ border: 0; border-radius: 6px; background: transparent; box-shadow: var(--v2-chip); color: var(--text);+ font-family: var(--sans); font-size: 14px !important; font-weight: 600; filter: none;+}+.form-pane > .engine-pick .eng-trigger:hover { background: var(--v2-hover); box-shadow: var(--v2-chip-hi); filter: none; }+.form-pane > .engine-pick .eng-trigger .eng-seg-gen { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }+.form-pane > .engine-pick .eng-trigger .eng-mark svg { width: 16px; height: 16px; }+.form-pane > .engine-pick .eng-trigger .eng-caret { margin-left: auto; }+#engineMenu { border: 0; border-radius: 10px; background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line), 0 24px 60px -20px rgba(0, 0, 0, .85); padding: 6px; }+html[data-theme="light"] #engineMenu { box-shadow: inset 0 0 0 1px var(--site-line), 0 24px 50px -24px rgba(13, 19, 48, .45); }+#engineMenu .eng-opt { border-radius: 7px; }+#engineMenu .eng-opt:hover, #engineMenu .eng-opt:focus-visible { background: var(--v2-hover); }+#engineMenu .eng-opt.active { background: var(--v2-press); }++/* ========================================================================+ STUDIO v2.1 — LoRAs, the CivitAI browser, the full-screen viewer+ ======================================================================== */++/* ---------- LoRAs in the composer ----------+ One of the setting rows, with its tools as quiet chips: Browse CivitAI is+ an errand, not the screen's primary action, so it no longer wears the+ Generate gradient. Installed LoRAs are rows on one surface; the switched-on+ ones get the raised surface and the brand edge, and the toggle is filled. */+.form-pane .loras-summary { min-height: 52px; padding: 14px 2px; gap: 10px; }+.form-pane .loras-summary .loras-title { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: none; }+.form-pane .loras-summary .loras-meta { font-family: var(--mono); font-size: 13px; color: var(--v2-dim); letter-spacing: 0; }+.form-pane .loras-header-actions { gap: 4px; }+.form-pane .loras-summary .loras-browse-btn, .form-pane .loras-summary .loras-browse-btn:not(.is-ghost),+#genForm .loras-summary .loras-browse-btn:not(.is-ghost), .form-pane .loras-summary .loras-icon-btn {+ width: auto; height: 30px; min-height: 30px; padding: 0 10px; gap: 6px; border: 0; border-radius: 5px;+ background: transparent; background-image: none; box-shadow: var(--v2-chip); color: var(--text);+ font-size: 13.5px !important; font-weight: 500;+}+#genForm .loras-summary .loras-browse-btn:not(.is-ghost)::before { display: none; }+.form-pane .loras-summary .loras-browse-btn:hover, .form-pane .loras-summary .loras-icon-btn:hover,+#genForm .loras-summary .loras-browse-btn:not(.is-ghost):hover {+ background: var(--v2-hover); background-image: none; box-shadow: var(--v2-chip-hi); color: var(--text);+}+.form-pane .loras-summary .loras-icon-btn { width: 30px; padding: 0; justify-content: center; }+.form-pane .loras-body { padding: 0 2px 18px; }+.form-pane #lorasEmpty, .form-pane .loras-body .lora-empty {+ padding: 18px 16px; border: 1px dashed var(--v2-line-hi); border-radius: 8px;+ background: rgba(240, 244, 251, .02); color: var(--v2-dim); font-size: 13.5px; line-height: 1.55; text-align: left;+}+.form-pane #lorasEmpty b, .form-pane #lorasEmpty strong { color: var(--text); font-weight: 600; }+.form-pane #lorasEmpty code, .form-pane .loras-body code { font-family: var(--mono); font-size: 13px; color: var(--muted); background: none; padding: 0; word-break: break-all; }+.form-pane .loras-body .lora-mode-banner, .form-pane .loras-body #lorasStrengthTotal { font-size: 13px !important; color: var(--v2-dim); }+.lora-row, .lora-row:hover, .lora-row.active {+ border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 -1px 0 var(--site-line-soft);+}+.lora-row:hover { background: var(--v2-hover); }+.lora-row.active { background: var(--site-panel); box-shadow: inset 0 0 0 1px var(--site-line); }+.lora-row.active::before {+ content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;+ background: linear-gradient(180deg, var(--site-pink), var(--site-violet), var(--site-cyan));+}+.lora-row .lora-row-main { padding: 10px 12px; gap: 10px; }+.lora-row .lora-name { font-size: 14.5px; font-weight: 600; }+.lora-row .lora-name-meta, .lora-row .lora-text { font-size: 13px; color: var(--v2-dim); }+.lora-row .lora-toggle-dot { border-color: var(--v2-line-hi); }+.lora-row.active .lora-toggle-dot { background: var(--v2-sun); border-color: var(--v2-sun); box-shadow: inset 0 0 0 3px var(--site-panel); }+.lora-row .lora-strength-row { padding: 0 12px 12px 40px; }+.lora-icon-btn { border: 0; border-radius: 5px; background: transparent; color: var(--muted); box-shadow: none; }+.lora-icon-btn:hover { color: var(--text); background: var(--v2-hover); }++/* ---------- the CivitAI browser: a page, not a dialog ----------+ It is where a whole library gets chosen, so it gets a page's room: a wide+ sheet, a display title, the source and engine as the site's segmented+ tracks, a search field you can see, and LoRAs laid out like the gallery —+ a frame and a caption, never a box. Install is a quiet chip until the+ pointer is on it; a grid of gradient buttons was eight primary actions. */+#civitaiModal .models-card {+ width: min(1240px, 94vw) !important; max-height: 92vh; padding: 30px 34px 28px; border-radius: 12px;+}+#civitaiModal .models-head { align-items: flex-start; margin-bottom: 8px; }+#civitaiModal .models-head h2 { font-size: 36px !important; font-weight: 820; font-stretch: 78%; line-height: .95; letter-spacing: -.02em; }+#civitaiModal .models-hint { max-width: 78ch; margin-bottom: 18px; font-size: 14px; line-height: 1.55; color: var(--v2-dim); }+#civitaiModal .models-hint code { font-family: var(--mono); font-size: 13px; color: var(--muted); background: none; padding: 0; word-break: break-all; }+#civitaiModal .civitai-auth, #civitaiModal .civitai-auth.missing {+ margin: 0 0 18px; padding: 12px 16px; border: 0; border-left: 2px solid var(--v2-sun); border-radius: 0 8px 8px 0;+ background: rgba(255, 210, 63, .05); color: var(--muted); font-size: 14px;+}+html[data-theme="light"] #civitaiModal .civitai-auth.missing { background: rgba(227, 164, 0, .07); }+#civitaiModal .civitai-auth.set { border-left-color: var(--success); background: rgba(123, 220, 150, .05); }+#civitaiModal .civitai-auth strong { color: var(--text); }+#civitaiModal .civitai-auth input { height: 36px; margin: 10px 8px 0 0; max-width: 420px; font-family: var(--mono); font-size: 13px; vertical-align: middle; }+#civitaiModal .civitai-auth button { width: auto; height: 36px; margin-top: 10px; padding: 0 16px; vertical-align: middle; }+#civitaiModal .civitai-toolbar, #civitaiModal .civitai-chips { gap: 10px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }+#civitaiModal .civitai-seg {+ display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: 7px;+ background: rgba(240, 244, 251, .035); box-shadow: inset 0 0 0 1px var(--site-line-soft);+}+html[data-theme="light"] #civitaiModal .civitai-seg { background: rgba(13, 19, 48, .035); }+#civitaiModal .civitai-seg .pill-btn, #civitaiModal .civitai-chips .pill-btn {+ width: auto; height: 30px; padding: 0 14px; border: 0; border-radius: 5px; background: none; box-shadow: none;+ color: var(--muted); font-size: 14px !important; font-weight: 500;+}+#civitaiModal .civitai-seg .pill-btn:hover, #civitaiModal .civitai-chips .pill-btn:hover { color: var(--text); background: var(--v2-hover); }+#civitaiModal .civitai-seg .pill-btn.active { background: var(--text); color: var(--bg); font-weight: 600; }+#civitaiModal .civitai-chips .pill-btn.active { background: var(--site-raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--v2-line-hi); }+#civitaiModal .civitai-search-bar { gap: 8px; margin: 4px 0 6px; }+#civitaiModal .civitai-search-field input {+ height: 44px; min-height: 44px; padding-left: 40px; border: 0; border-radius: 8px;+ background: var(--site-inset); box-shadow: inset 0 0 0 1px var(--site-line); font-size: 15px !important;+}+#civitaiModal .civitai-search-field input:focus { box-shadow: inset 0 0 0 1px var(--v2-line-hi), 0 0 0 2px rgba(255, 210, 63, .3); outline: none; }+#civitaiModal .civitai-search-icon { left: 14px; color: var(--v2-dim); }+#civitaiModal .civitai-search-go { height: 44px; min-height: 44px; padding: 0 18px; }+#civitaiModal .civitai-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 22px; margin-top: 22px; }+#civitaiModal .civitai-card {+ border: 0; border-radius: 0; background: none; overflow: visible; transition: transform 300ms var(--v2-ease);+}+#civitaiModal .civitai-card:hover { transform: translateY(-2px); }+#civitaiModal .civitai-card .preview, #civitaiModal .civitai-card .preview-empty {+ border-radius: 8px; background: var(--v2-stage); box-shadow: 0 0 0 1px rgba(240, 244, 251, .07);+}+html[data-theme="light"] #civitaiModal .civitai-card .preview { box-shadow: 0 0 0 1px rgba(13, 19, 48, .1); }+#civitaiModal .civitai-card .body { padding: 12px 2px 0; gap: 3px; }+#civitaiModal .civitai-card .ttl { font-size: 15px; font-weight: 650; line-height: 1.3; }+#civitaiModal .civitai-card .meta { gap: 0 10px; font-size: 13px; color: var(--v2-dim); }+#civitaiModal .civitai-card .meta span { font-variant-numeric: tabular-nums; }+#civitaiModal .civitai-card .civitai-source-link {+ color: var(--muted); text-decoration: underline; text-decoration-color: var(--site-line); text-underline-offset: .25em;+}+#civitaiModal .civitai-card .civitai-source-link:hover { color: var(--text); text-decoration-color: var(--v2-sun); }+#civitaiModal .civitai-card .actions { padding: 12px 2px 0; }+#civitaiModal .civitai-card .actions .primary-btn {+ width: 100%; height: 36px; border: 0; border-radius: 6px;+ background: transparent; background-image: none; box-shadow: var(--v2-chip); color: var(--text); font-weight: 600;+}+#civitaiModal .civitai-card .actions .primary-btn:hover:not(:disabled) {+ background-color: #4f3191; background-image: var(--v2-action); color: #fff;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--v2-action-glow);+}+#civitaiModal .civitai-card .nsfw-badge { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }+#civitaiModal .civitai-status-line { font-family: var(--mono); font-size: 13px; margin-top: 18px; }++/* ---------- the full-screen viewer: a screening room ----------+ The page behind it is gone, not faintly visible. The picture takes the+ room; the file's name sits top-left like a slate, its actions top-right as+ quiet words, the transport floats at the foot. Everything but the picture+ steps back when the pointer rests (the existing .is-idle), so a playing+ gallery is just the films. */+.expand-lightbox {+ padding: 76px 32px 96px;+ background: rgba(2, 2, 3, .97);+ -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);+}+html[data-theme="light"] .expand-lightbox { background: rgba(2, 4, 12, .96); }+.expand-stage video, .expand-stage img {+ border-radius: 6px; box-shadow: 0 0 0 1px rgba(240, 244, 251, .07), 0 40px 120px -30px rgba(0, 0, 0, .9);+}+.expand-meta {+ position: absolute; top: 22px; left: 28px; margin: 0; max-width: 42vw; text-align: left;+ font-family: var(--mono); font-size: 13px; color: rgba(240, 244, 251, .66);+}+.expand-actions {+ position: absolute; top: 14px; right: 72px; margin: 0; gap: 2px; flex-wrap: nowrap;+}+.expand-actions .ghost-btn {+ width: auto; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; box-shadow: none;+ color: rgba(240, 244, 251, .78); font-size: 14px !important; font-weight: 500;+}+.expand-actions .ghost-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }+.expand-close {+ top: 14px; right: 18px; width: 38px; height: 38px; border: 0; background: rgba(255, 255, 255, .06);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #f4f4f5;+}+.expand-close:hover { background: rgba(255, 255, 255, .12); transform: none; }+.expand-bar {+ position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0;+ height: 52px; padding: 0 8px; gap: 4px; border: 0; border-radius: 26px;+ background: rgba(14, 14, 15, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -20px rgba(0, 0, 0, .9);+ -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #f4f4f5; font-size: 14px;+}+.expand-bar-btn { height: 36px; min-width: 36px; border-radius: 18px; }+.expand-bar-btn:hover { background: rgba(255, 255, 255, .08); }+.expand-play, .expand-play:hover {+ padding: 0 16px; background-color: #4f3191; background-image: var(--v2-action); color: #fff;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);+}+.expand-play.is-on { background-image: none; background-color: rgba(255, 255, 255, .14); }+.expand-count { font-family: var(--mono); font-size: 13px; color: rgba(240, 244, 251, .7); }+.expand-dur { font-size: 13.5px; color: rgba(240, 244, 251, .7); }+.expand-dur select { height: 30px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #f4f4f5; }+.expand-lightbox .expand-meta, .expand-lightbox .expand-bar, .expand-lightbox .expand-close { transition: opacity 400ms var(--v2-ease); }+.expand-lightbox.is-idle .expand-meta, .expand-lightbox.is-idle .expand-close { opacity: 0; }+.expand-lightbox.is-idle .expand-bar { opacity: .25; }+@media (max-width: 900px) {+ .expand-actions { top: auto; bottom: 86px; right: 50%; transform: translateX(50%); flex-wrap: wrap; justify-content: center; }+ .expand-meta { max-width: 60vw; }+}+@media (prefers-reduced-motion: reduce) {+ #civitaiModal .civitai-card, .expand-lightbox .expand-meta, .expand-lightbox .expand-bar, .expand-lightbox .expand-close { transition: none; }+ #civitaiModal .civitai-card:hover { transform: none; }+}+#civitaiModal .civitai-card .civitai-source-link { white-space: nowrap; }+#civitaiModal .civitai-card .actions .primary-btn { display: flex; align-items: center; justify-content: center; }+/* The library's empty states are drawn by loras.js with inline padding; they+ get the same dashed well as a drop target, left-aligned. */+.form-pane #lorasList > .hint {+ padding: 16px 18px !important; text-align: left !important; border: 1px dashed var(--v2-line-hi); border-radius: 8px;+ background: rgba(240, 244, 251, .02); color: var(--v2-dim); font-size: 13.5px !important;+}+html[data-theme="light"] .form-pane #lorasList > .hint { background: rgba(13, 19, 48, .02); }+.form-pane #lorasList > .hint strong { color: var(--text); }+#civitaiModal .civitai-card .civitai-source-link svg { display: inline-block; vertical-align: -2px; }++/* ========================================================================+ STUDIO v3 — the memory-picker material+ ------------------------------------------------------------------------+ The site's "Pick your Mac's memory" section is the studio's material:+ a LIFTED navy with violet light in it (not a black void), every card a+ violet-tinted tile with a soft violet hairline, the chosen one a+ pink → violet → cyan gradient border with a glow under it, progress as a+ thick brand gradient with a lit head, ticks as gradient discs, status as+ cyan. v2 laid the studio flat on the void and let things float; this+ puts every group on a surface and gives "chosen" one unmistakable look.+ Every value is the component's own: src/components/MemoryPicker.astro+ and src/styles/global.css in mrbizarro/phosphene-site. The page is its+ .mp-board; a tile in range is its .mp-stop.on; the chosen tile is its+ .mp-stop[aria-checked]; a fill is its .mp-fill; a tick is its li.ok .ic;+ a status is its li.ok .st. When the site changes them, change them here.+ ======================================================================== */+:root {+ /* the board: two corner lights and a navy wash, laid on --void #0a0a0b */+ --v3-void: #0a0a0b;+ --v3-board:+ radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.040), transparent 60%),+ radial-gradient(60% 90% at 0% 100%, rgba(255, 255, 255, 0.040), transparent 60%),+ linear-gradient(180deg, rgba(22, 22, 23, .72), rgba(16, 16, 17, .4));+ --v3-board-shadow: 0 40px 90px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);+ --v3-page: #0a0a0b; /* the board's mid-tone, for solid fills */+ --v3-tile: rgba(255, 255, 255, 0.040); /* .mp-stop.on */+ --v3-tile-2: rgba(255, 255, 255, 0.040);+ --v3-line: rgba(177, 74, 255, .42); /* .mp-stop.on border */+ --v3-line-soft: #2a2a2f; /* --line: the board's edge, a quiet stop's edge */+ --v3-rule: rgba(44, 44, 45, .55); /* --line-soft: separators, empty tracks */+ --v3-quiet: rgba(240, 244, 251, .025); /* .mp-stop */+ --v3-quiet-line: #2a2a2f;+ --v3-hover: #17171a; --v3-hover-line: #3a3a40; /* .mp-stop:hover */+ --v3-chosen: #17171a; /* --panel-2 */+ --v3-chip: #121214; /* --panel: an on chip's fill */+ --v3-ring: linear-gradient(90deg, #ff2e9f, #b14aff 52%, #5eeaff); /* --brand */+ /* The site's chosen stop drops its glow 12px under itself+ (0 12px 34px rgba(177,74,255,.28)); a stop there has ~26px of board below+ it. The studio's tiles sit 7px apart and inside scroll boxes, so that glow+ fell onto the next item (the rail's "Storyboard") and was cut flat by the+ gallery's overflow. Same colour, same pink 1px halo, the light kept INSIDE+ the chosen tile instead. */+ --v3-glow: inset 0 0 22px rgba(177, 74, 255, .16), 0 0 0 1px rgba(255, 46, 159, .15);+ --v3-glow-sm: 0 0 0 3px rgba(177, 74, 255, .14); /* a focus halo that hugs its edge */+ --v3-fill: var(--v3-ring);+ --v3-fill-glow: 0 0 14px rgba(177, 74, 255, .55); /* .mp-fill */+ --v3-tick-glow: 0 0 16px rgba(177, 74, 255, .4); /* li.ok .ic */+ --v3-cyan: #5eeaff;+ --v3-cyan-ink: #5eeaff;+ --v3-ease: cubic-bezier(.4, 0, .2, 1);+ --bg: var(--v3-page); --site-void: var(--v3-page);+ --bg-2: #0e0e10; --site-inset: #0e0e10;+ --panel: #121214; --site-panel: #121214; --panel-2: #17171a; --site-raised: #17171a;+ --text: #f4f4f5; --site-ink: #f4f4f5;+ --v2-surface: rgba(16, 16, 17, .72);+}+/* The site has no light theme; this is the same board in daylight: the same+ structure and ring, the violet at the strength that reads on paper. */+html[data-theme="light"] {+ --v3-void: #f3f2fb;+ --v3-board:+ radial-gradient(70% 120% at 100% 0%, rgba(177, 74, 255, .08), transparent 60%),+ radial-gradient(60% 90% at 0% 100%, rgba(94, 234, 255, .07), transparent 60%),+ linear-gradient(180deg, #f7f6fd, #f0eff9);+ --v3-board-shadow: 0 30px 70px rgba(13, 19, 48, .10), inset 0 1px 0 rgba(255, 255, 255, .8);+ --v3-page: #f3f2fb;+ --v3-tile: rgba(140, 70, 240, .06);+ --v3-tile-2: rgba(140, 70, 240, .06);+ --v3-line: rgba(140, 70, 240, .34);+ --v3-line-soft: #d6d3ea;+ --v3-rule: #e2e0f0;+ --v3-quiet: rgba(13, 19, 48, .02);+ --v3-quiet-line: #d6d3ea;+ --v3-hover: #ffffff; --v3-hover-line: #b9b4dc;+ --v3-chosen: #ffffff;+ --v3-chip: #ffffff;+ --v3-glow: inset 0 0 18px rgba(140, 60, 230, .07), 0 0 0 1px rgba(255, 46, 159, .10);+ --v3-glow-sm: 0 0 0 3px rgba(140, 60, 230, .12);+ --v3-fill-glow: 0 0 12px rgba(177, 74, 255, .35);+ --v3-tick-glow: 0 0 12px rgba(177, 74, 255, .25);+ --v3-cyan: #0e9fb8; --v3-cyan-ink: #0b7285;+ --bg: var(--v3-page); --site-void: var(--v3-page);+ --bg-2: #ffffff; --site-inset: #ffffff;+ --panel: #ffffff; --site-panel: #ffffff; --panel-2: #f5f3fd; --site-raised: #f5f3fd;+ --text: #0d1330; --site-ink: #0d1330;+ --v2-surface: #ffffff;+}++/* ---------- the room: the studio IS the board — violet from the top right,+ cyan from the bottom left, a navy wash over the void ---------- */+html, body { background-color: var(--v3-void); }+body, html[data-theme="light"] body {+ background-image: var(--v3-board);+ background-size: auto; background-repeat: no-repeat; background-attachment: fixed;+}+body > header { background: rgba(12, 12, 13, .62); border-bottom-color: var(--v3-rule); }+html[data-theme="light"] body > header { background: rgba(246, 245, 252, .78); }+.tool-rail { background: rgba(12, 12, 13, .45); border-right-color: var(--v3-rule); }+html[data-theme="light"] .tool-rail { background: rgba(255, 255, 255, .5); }+main.layout > .form-pane { background: none; border-right-color: var(--v3-rule); }+html[data-theme="light"] main.layout > .form-pane { background: none; }++/* ---------- tiles: everything you pick is on one ---------- */+.form-pane > #modeGroup .mode-chip, #remixSubGroup .mode-chip,+.form-pane > .engine-pick .eng-trigger {+ border: 1px solid var(--v3-line); border-radius: 12px;+ background: var(--v3-tile);+ box-shadow: none;+ transition: color .2s var(--v3-ease), background-color .2s var(--v3-ease), border-color .2s var(--v3-ease),+ transform .2s var(--v3-ease), box-shadow .25s var(--v3-ease);+}+/* .mp-stop:hover — the panel fill, a brighter edge, two pixels up */+.form-pane > #modeGroup .mode-chip:hover, #remixSubGroup .mode-chip:hover,+.form-pane > .engine-pick .eng-trigger:hover {+ color: var(--text); border-color: var(--v3-hover-line); background: var(--v3-hover);+ box-shadow: none;+}+/* The lift is a transform, and a transformed box becomes the containing+ block of its absolutely positioned children — under a narrow column that+ pulled the mode caption up INTO the hovered tile. So the video mode tiles+ lift only where their captions are inline (the container query below);+ the other tiles lift everywhere. */+#remixSubGroup .mode-chip:hover, #remixSubGroup .mode-chip.active,+.form-pane > .engine-pick .eng-trigger:hover { transform: translateY(-2px); }+#remixSubGroup .mode-chip:active { transform: translateY(0) scale(.98); }+.form-pane > #modeGroup.mode-bar { gap: 8px; }+.form-pane > #modeGroup .mode-chip { padding: 10px 11px 11px; }+/* Out of this model's reach: the quieter navy tile, like the memory sizes+ past the one you picked. */+.form-pane > #modeGroup .mode-chip.eng-foreign { border-color: var(--v3-quiet-line); background: var(--v3-quiet); }++/* ---------- chosen: the gradient ring, lit from under ---------- */+.form-pane > #modeGroup .mode-chip.active, #remixSubGroup .mode-chip.active,+.tool-rail .workflow-tabs button.active, .tool-rail .workflow-tabs button.active:hover {+ border: 1px solid transparent;+ background: linear-gradient(var(--v3-chosen), var(--v3-chosen)) padding-box, var(--v3-ring) border-box;+ box-shadow: var(--v3-glow);+}++.tool-rail .workflow-tabs button { border: 1px solid transparent; }+.tool-rail .workflow-tabs button::before { display: none; }+.form-pane > #modeGroup .mode-chip.active::before, #remixSubGroup .mode-chip.active::before { background: currentColor; opacity: 1; }+.form-pane > #modeGroup .mode-chip.active { color: #fff; }+html[data-theme="light"] .form-pane > #modeGroup .mode-chip.active { color: var(--text); }+.tool-rail .workflow-tabs button.active .wf-icon { color: #fff; }+html[data-theme="light"] .tool-rail .workflow-tabs button.active .wf-icon { color: var(--text); }++/* Segmented choices: the track is a quiet tile, the chosen segment rings. */+.form-pane .pill-group:not(.mode-bar), .stage-outputs-filter, .carousel-head .seg, #civitaiModal .civitai-seg {+ background: var(--v3-quiet); box-shadow: inset 0 0 0 1px var(--v3-line-soft); border-radius: 10px;+}+.form-pane .pill-group:not(.mode-bar) .pill-btn { border: 1px solid transparent; }+.form-pane .pill-group:not(.mode-bar) .pill-btn.active, .stage-outputs-filter button.active, .carousel-head .seg button.active,+#civitaiModal .civitai-seg .pill-btn.active,+html[data-theme="light"] .form-pane .pill-group:not(.mode-bar) .pill-btn.active {+ border: 1px solid transparent; color: var(--text);+ background: linear-gradient(var(--v3-chip), var(--v3-chip)) padding-box, var(--v3-ring) border-box;+ box-shadow: none;+}+.stage-outputs-filter button, .carousel-head .seg button, #civitaiModal .civitai-seg .pill-btn { border: 1px solid transparent; }++/* ---------- the prompt: the biggest tile ---------- */+.form-pane .composer-card, html[data-theme="light"] .form-pane .composer-card {+ border-radius: 14px; background: linear-gradient(var(--v3-tile), var(--v3-tile)), var(--v2-surface);+ box-shadow: inset 0 0 0 1px var(--v3-line);+}+.form-pane .composer-card:focus-within, .form-pane .composer-card:has(textarea.composer-prompt:not(:placeholder-shown)) {+ box-shadow: inset 0 0 0 1px var(--v3-line), var(--v3-glow-sm);+}+.form-pane .composer-card::after { opacity: 0; }+.form-pane .composer-card:focus-within::after { opacity: 1; }+.form-pane .composer-card .composer-tools { border-top-color: var(--v3-rule); }+.form-pane .customize-section, .form-pane .loras-section { border-top-color: var(--v3-rule); }++/* ---------- the stage and the gallery: one panel, nothing floating ---------- */+main.layout > .stage-pane {+ margin: 14px 14px 14px 12px; border-radius: 18px;+ background: var(--v3-board);+ box-shadow: inset 0 0 0 1px var(--v3-line-soft), var(--v3-board-shadow);+}+html[data-theme="light"] main.layout > .stage-pane {+ background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6));+ box-shadow: inset 0 0 0 1px var(--v3-line-soft), var(--v3-board-shadow);+}+.player-surface { border-radius: 12px; box-shadow: 0 0 0 1px var(--v3-line), 0 26px 60px -34px rgba(0, 0, 0, .95); }+.carousel-wrap { border-top-color: var(--v3-rule); }+/* An output is a quiet stop until you point at it or pick it. */+.car-card {+ padding: 6px 6px 8px; border: 1px solid var(--v3-line-soft); border-radius: 12px;+ background: var(--v3-quiet);+}+.car-card:hover { border: 1px solid var(--v3-hover-line); background: var(--v3-hover); }+.car-card .car-thumb-wrap { border-radius: 8px; }+.car-card .info { padding: 9px 4px 0; }+.car-card.active, .car-card.active:hover {+ border: 1px solid transparent;+ background: linear-gradient(var(--v3-chosen), var(--v3-chosen)) padding-box, var(--v3-ring) border-box;+ box-shadow: var(--v3-glow);+}+.car-card.active .car-thumb-wrap::after { opacity: 0; }++/* ---------- progress: .mp-fill — the brand gradient is pinned to the TRACK+ and the fill uncovers it, so a third of the way shows pink, half shows+ pink into violet, and only the finish reaches cyan. Both fills are drawn+ at full width and scaled (transform only), so the gradient is stretched by+ the inverse of the same --p to stay put. ---------- */+.progress-bar { height: 4px; border-radius: 4px; background: var(--v3-rule); overflow: visible; }+#progressFill, .live-stage-warming .live-stage-progress::after {+ background: var(--v3-fill) 0 0 / calc(100% / max(var(--p, 1), .02)) 100% no-repeat;+ border-radius: 4px; box-shadow: var(--v3-fill-glow);+}+.live-stage-warming .live-stage-progress::before { height: 4px; border-radius: 4px; background: var(--v3-rule); }+.live-stage-warming .live-stage-progress::after { height: 4px; }++/* ---------- the run log under the composer ---------- */+.now-card, html[data-theme="light"] .now-card {+ border-radius: 12px; background: var(--v3-tile); box-shadow: inset 0 0 0 1px var(--v3-line);+}+.now-card.idle { background: none; box-shadow: none; }+.bottom-pane { border-top-color: var(--v3-rule); }+.bottom-pane .tabs button.active::after {+ width: 18px; height: 2px; margin-left: -9px; border-radius: 1px; background: var(--v3-fill);+}+.bottom-pane .tabs .badge { background: var(--v3-tile); box-shadow: inset 0 0 0 1px var(--v3-line); }++/* ---------- toggles and ticks ---------- */+.toggle-pill.on, html[data-theme="light"] .toggle-pill.on,+.form-pane .composer-card .composer-tools .toggle-pill.is-on {+ border: 1px solid transparent; color: var(--text);+ background: linear-gradient(var(--v3-chip), var(--v3-chip)) padding-box, var(--v3-ring) border-box;+}+.toggle-pill.on .toggle-dot, .toggle-pill.is-on .toggle-dot { background: var(--v3-cyan); box-shadow: 0 0 10px var(--v3-cyan); }+.models-list li.ready .icon {+ display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%;+ background: var(--v3-ring); color: #0a0a0b; box-shadow: var(--v3-tick-glow);+}+/* "Installed" is the site's "Runs": a cyan status pill, not a dead button. */+.models-list li.ready button.ghost:disabled {+ min-height: 0; height: auto; padding: 4px 10px; border-radius: 999px; opacity: 1; cursor: default;+ font: 400 13px/1.3 var(--mono); color: var(--v3-cyan);+ border: 1px solid rgba(94, 234, 255, .35); background: rgba(255, 255, 255, 0.040); box-shadow: none;+}+html[data-theme="light"] .models-list li.ready button.ghost:disabled { border-color: rgba(14, 159, 184, .4); background: rgba(14, 159, 184, .06); }+.models-list li.ready .icon svg { width: 11px; height: 11px; }++/* ---------- surfaces in front: modals, lists, the CivitAI page ---------- */+/* A modal is an .mp-board brought forward: the same corner lights and edge,+ on the void so it reads as in front of the room. */+.modal, .models-modal .models-card {+ border-radius: 18px;+ background: var(--v3-board), var(--v3-void);+ box-shadow: inset 0 0 0 1px var(--v3-line-soft), 0 50px 110px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);+}+html[data-theme="light"] .modal, html[data-theme="light"] .models-modal .models-card {+ background: linear-gradient(180deg, rgba(177, 74, 255, .04), transparent 40%), #fff;+ box-shadow: inset 0 0 0 1px var(--v3-line-soft), 0 40px 90px -40px rgba(13, 19, 48, .45);+}+.models-list, html[data-theme="light"] .models-list {+ background: var(--v3-quiet); box-shadow: inset 0 0 0 1px var(--v3-line-soft); border-radius: 12px;+}+.models-list li { border-top-color: var(--v3-rule); }+#civitaiModal .civitai-card {+ padding: 6px 6px 12px; border: 1px solid var(--v3-line-soft); border-radius: 12px;+ background: var(--v3-quiet);+ transition: border-color .2s var(--v3-ease), background-color .2s var(--v3-ease), transform .2s var(--v3-ease);+}+#civitaiModal .civitai-card:hover { border-color: var(--v3-hover-line); background: var(--v3-hover); transform: translateY(-2px); }+#civitaiModal .civitai-card .body, #civitaiModal .civitai-card .actions { padding-left: 6px; padding-right: 6px; }+#civitaiModal .civitai-card .preview { border-radius: 8px; }+.lora-row.active { background: linear-gradient(var(--v3-chip), var(--v3-chip)) padding-box, var(--v3-ring) border-box; border: 1px solid transparent; box-shadow: none; }+.lora-row.active::before { display: none; }++/* Status in cyan, as the site marks what runs. */+.bottom-pane .bp-live-dot.is-live, #hcDot.is-ok { background: var(--v3-cyan); box-shadow: 0 0 10px var(--v3-cyan); }++@media (prefers-reduced-motion: reduce) {+ .car-card, #civitaiModal .civitai-card,+ .form-pane > #modeGroup .mode-chip, #remixSubGroup .mode-chip, .form-pane > .engine-pick .eng-trigger { transition: none; }+ .form-pane > #modeGroup .mode-chip:hover, .form-pane > #modeGroup .mode-chip.active, #remixSubGroup .mode-chip:hover,+ #remixSubGroup .mode-chip.active, .form-pane > .engine-pick .eng-trigger:hover,+ #civitaiModal .civitai-card:hover { transform: none; }+}+/* THE MODE TILES ADAPT TO THE COLUMN, NOT THE WINDOW (a container query on+ the form pane). A wide column (>= 600 px, the composer at 1920) holds three+ tiles a row with their one-line descriptions inside. A narrow one (460 px at+ 1440) cannot: three described tiles left ~80 px for a title and wrapped+ every line, two columns ran five rows deep and pushed the prompt under the+ footer. There the tiles carry icon and name only, and the description of the+ chosen mode — or the one under the pointer — is a single caption line under+ the grid. The words are the same <span class="mc-sub">, positioned. */+.form-pane { container-type: inline-size; container-name: composer; }+.form-pane > #modeGroup.mode-bar {+ position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-bottom: 28px;+}+.form-pane > #modeGroup .mode-chip {+ position: static; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center;+ min-height: 44px; padding: 9px 10px; row-gap: 0;+}+.form-pane > #modeGroup .mode-chip::before { grid-row: 1; }+.form-pane > #modeGroup .mode-chip .mc-sub {+ /* grid-column auto: an absolutely positioned box whose containing block is+ a GRID resolves its edges against grid lines when it names any, so the+ tile layout's 2 / span 2 put the caption under the middle column. */+ position: absolute; left: 4px; right: 4px; bottom: 3px; margin: 0; grid-column: auto;+ font-size: 13.5px !important; line-height: 1.5; color: var(--muted);+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;+ opacity: 0; pointer-events: none; transition: opacity 200ms var(--v2-ease);+}+.form-pane > #modeGroup .mode-chip.active .mc-sub, .form-pane > #modeGroup .mode-chip:hover .mc-sub { opacity: 1; }+.form-pane > #modeGroup:has(.mode-chip:hover) .mode-chip.active:not(:hover) .mc-sub { opacity: 0; }+@container composer (min-width: 600px) {+ .form-pane > #modeGroup.mode-bar { gap: 8px; padding-bottom: 0; }+ .form-pane > #modeGroup .mode-chip { align-items: start; padding: 10px 12px 11px; row-gap: 3px; }+ .form-pane > #modeGroup .mode-chip::before { grid-row: 1 / span 2; }+ .form-pane > #modeGroup .mode-chip .mc-sub {+ position: static; grid-column: 2 / span 2; opacity: 1; white-space: normal; font-size: 13px !important; line-height: 1.35; color: var(--v2-dim);+ }+ .form-pane > #modeGroup .mode-chip.active .mc-sub { color: var(--muted); }+ .form-pane > #modeGroup .mode-chip:hover, .form-pane > #modeGroup .mode-chip.active { transform: translateY(-2px); }+ .form-pane > #modeGroup .mode-chip:active { transform: translateY(0) scale(.98); }+ .form-pane > #modeGroup:has(.mode-chip:hover) .mode-chip.active:not(:hover) .mc-sub { opacity: 1; }+}+@media (prefers-reduced-motion: reduce) {+ .form-pane > #modeGroup .mode-chip .mc-sub { transition: none; }+ .form-pane > #modeGroup .mode-chip:hover, .form-pane > #modeGroup .mode-chip.active,+ .form-pane > #modeGroup .mode-chip:active { transform: none; }+}+html[data-theme="light"] .now-card.idle { background: none; box-shadow: none; }+/* The framed stage is 26px narrower than the edge-to-edge one, which was+ exactly enough to push the folder button onto a second Outputs row at+ 1440 — and that 44px row pushed the first output below the screen with a+ song open (measure_outputs_layout, 1440x820/song). The search field now+ starts small and grows into the spare room, so the row breaks only when+ it genuinely cannot hold the controls. */+.carousel-head .outputs-search { flex: 1 1 140px; min-width: 132px; max-width: 210px; }+/* Browse CivitAI broke onto two lines (icon above the label) wherever the+ LoRA row sits outside #genForm (Images): only #genForm's rules made the+ button a flex row. */+.form-pane .loras-summary .loras-browse-btn { display: inline-flex; align-items: center; white-space: nowrap; }++/* Star ask (2026-10-27): a rare twinkle on the header star until the user stars, then a short thank-you dialog. */+body > header .star-link.is-calling svg { animation: star-twinkle 14s ease-in-out infinite; transform-origin: center; }+@keyframes star-twinkle {+ 0%, 86%, 100% { color: inherit; transform: none; filter: none; }+ 89% { color: #f0b940; transform: scale(1.18) rotate(-8deg); filter: drop-shadow(0 0 6px rgba(240, 185, 64, .55)); }+ 92% { color: #f0b940; transform: scale(1) rotate(0); filter: drop-shadow(0 0 3px rgba(240, 185, 64, .35)); }+}+@media (prefers-reduced-motion: reduce) { body > header .star-link.is-calling svg { animation: none; color: #f0b940; } }+.star-ask .star-ask-card { max-width: 380px; text-align: center; padding: 28px 28px 22px; }+.star-ask .star-ask-icon { width: 34px; height: 34px; color: #f0b940; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 10px rgba(240, 185, 64, .4)); }+.star-ask h3 { margin: 0 0 8px; font-size: 18px; }+.star-ask p { margin: 0 0 18px; color: var(--ink-300, #c3c8d6); line-height: 1.55; font-size: 14px; }+.star-ask .modal-actions { justify-content: center; gap: 10px; }+.star-ask #starAskGo { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border-radius: 10px; background: #f0b940; color: #1a1406; font-weight: 600; text-decoration: none; }+.star-ask #starAskGo:hover { background: #ffcb57; }+.star-ask #starAskGo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }+.star-ask #starAskGo, .star-ask .modal-actions .btn { white-space: nowrap; flex: 1 1 0; }++/* ---------- Pro: the mark beside the wordmark, the speed receipt chip, the Free-vs-Pro player ---------- */+.pro-mark { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 8px 2px 6px; border-radius: 6px; font: 700 11px/16px var(--mono, ui-monospace, monospace); letter-spacing: 0.14em;+ color: #0d0d0e; background: linear-gradient(90deg, #ff2e9f, #b14aff 52%, #5eeaff); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 14px -6px rgba(177,74,255,0.8); align-self: center; vertical-align: middle; }+.pro-mark[hidden] { display: none; }+.pro-mark-dash { width: 10px; height: 3px; border-radius: 1px; background: #0d0d0e; opacity: 0.75; }+.pro-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 7px; border-radius: 5px; font: 500 11px/16px var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; color: var(--text, #f4f4f5);+ background: linear-gradient(90deg, rgba(255,46,159,0.18), rgba(177,74,255,0.18) 52%, rgba(94,234,255,0.18)); box-shadow: 0 0 0 1px rgba(177,74,255,0.45) inset; white-space: nowrap; margin-left: 6px; }+.pro-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(90deg, #ff2e9f, #5eeaff); }+.card-chip-row .pro-chip { margin-left: 0; }+.pro-compare { margin: 18px 0 6px; padding: 16px 18px 18px; border: 1px solid #2a2a2f; border-radius: 12px; background: #0b0b0c; color: #f4f4f5; }+.pro-compare header h3 { margin: 4px 0 4px; font: 760 20px/1.1 Archivo, -apple-system, sans-serif; font-stretch: 86%; letter-spacing: -0.3px; }+.pro-compare-sub { margin: 0 0 12px; font-size: 13px; color: #b4b4bb; }+.pro-compare-player { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid #2a2a2f; }+.pro-compare-player video { display: block; width: 100%; aspect-ratio: 2048 / 624; }+.pro-compare-labels { position: absolute; left: 0; right: 0; top: 8px; display: flex; justify-content: space-around; pointer-events: none; }+.pro-compare-labels span { padding: 2px 8px; border-radius: 5px; font: 700 11px/16px var(--mono, ui-monospace, monospace); letter-spacing: 0.12em; background: rgba(11, 11, 12,0.72); color: #f4f4f5; }+.pro-compare-labels span:last-child { background: linear-gradient(90deg, #ff2e9f, #b14aff 52%, #5eeaff); color: #0d0d0e; }+@media (prefers-reduced-motion: reduce) { .pro-mark { box-shadow: none; } }+/* In a gallery card the receipt is its own quiet mono line under the mode chip (the chip row is one ellipsised line otherwise). */+.card-chip-row:has(.pro-chip) { white-space: normal; overflow: visible; }+.card-chip-row .pro-chip { display: flex; width: fit-content; max-width: 100%; margin: 3px 0 0; padding: 0; background: none; box-shadow: none; color: #c99bff; font: inherit; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }++/* Now card (2026-10-27): when an action (Stop early, Retry/Close) is pinned top-right, the title and the progress+ bar end before it instead of running underneath the button. */+.now-card .now-body:has(.now-card-actions:not(:empty)) > .ttl,+.now-card .now-body:has(.now-card-actions:not(:empty)) > .progress-bar { margin-right: 112px; }+.now-card .now-card-actions { z-index: 2; }++/* ============== REMOTE CONTROL PAGE (left menu) ==============+ A page, not a tool: while body[data-workflow="remote"] the form, the stage and the+ queue step aside and this takes the window. Tokens only (dark and light). */+.remote-page { display: none; }+.remote-page [hidden] { display: none !important; }+.remote-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }+body[data-workflow="remote"] main.layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }+body[data-workflow="remote"] main.layout > aside.form-pane,+body[data-workflow="remote"] main.layout > .stage-pane,+body[data-workflow="remote"] main.layout > #bottomPane { display: none !important; }+body[data-workflow="remote"] .remote-page:not([hidden]) {+ display: block; grid-column: 1 / -1; grid-row: 1 / -1; min-height: 0; overflow-y: auto;+}+.rm-wrap { max-width: 1040px; margin: 0 auto; padding: 22px 18px 48px; }+.rm-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; }+.rm-mark {+ width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;+ background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--v3-ring, linear-gradient(90deg, #ff2e9f, #b14aff 52%, #5eeaff)) border-box;+ border: 1px solid transparent; box-shadow: var(--v3-glow, none);+}+html[data-theme="light"] .rm-mark { color: var(--text); }+.rm-mark .ph { width: 28px; height: 28px; }+.rm-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; text-transform: none; color: var(--text); }+.rm-lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }+.rm-conn {+ display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill);+ border: 1px solid var(--border); background: var(--panel); font-size: var(--fs-sm); color: var(--text); white-space: nowrap;+}+.rm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: none; }+.rm-dot.on { background: var(--success); box-shadow: 0 0 0 3px rgba(63,185,80,.18); }+.rm-dot.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(210,153,34,.18); }+.rm-dot.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(248,81,73,.16); }+.rm-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }+.rm-col { display: grid; gap: 16px; }+.rm-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }+.rm-card h3 { margin: 0 0 14px; font-size: var(--fs-md); font-weight: 650; color: var(--text); }+.rm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }+.rm-card-head h3 { margin: 0; }+.rm-count { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--fs-xs); color: var(--muted); }+.rm-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }+.rm-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }+.rm-steps b { color: var(--text); font-weight: 600; }+.rm-steps em { font-style: normal; color: var(--text); }+.rm-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 650; color: var(--text); background: var(--panel-2); border: 1px solid var(--border-strong); }+.rm-stage { display: grid; place-items: center; min-height: 380px; border-radius: var(--r-md); background: var(--bg-2); border: 1px dashed var(--border); padding: 22px 16px; }+.rm-qr-idle, .rm-qr-live { display: grid; justify-items: center; gap: 16px; }+.rm-qr-ghost {+ width: 220px; height: 220px; border-radius: 16px; opacity: .55;+ background:+ linear-gradient(var(--border), var(--border)) 14px 14px / 56px 56px no-repeat,+ linear-gradient(var(--border), var(--border)) calc(100% - 14px) 14px / 56px 56px no-repeat,+ linear-gradient(var(--border), var(--border)) 14px calc(100% - 14px) / 56px 56px no-repeat,+ repeating-conic-gradient(var(--border) 0 25%, transparent 0 50%) 50% 50% / 22px 22px;+ filter: blur(1.5px);+}+.rm-qr-tile { background: #fff; padding: 14px; border-radius: 20px; box-shadow: 0 10px 34px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.08); line-height: 0; }+.rm-qr-tile canvas { width: min(300px, 58vw); height: min(300px, 58vw); display: block; image-rendering: pixelated; }+.rm-qr-meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: var(--fs-sm); color: var(--muted); }+.rm-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); font-variant-numeric: tabular-nums; }+.rm-sep { opacity: .5; }+.rm-allow { display: grid; justify-items: center; gap: 12px; text-align: center; width: 100%; max-width: 360px; }+.rm-allow-head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--text); }+.rm-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bright); animation: rmPulse 1.4s ease-in-out infinite; }+@keyframes rmPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(88,166,255,.5); } 50% { box-shadow: 0 0 0 8px rgba(88,166,255,0); } }+@media (prefers-reduced-motion: reduce) { .rm-pulse { animation: none; } }+.rm-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 44px; font-weight: 600; letter-spacing: .08em; color: var(--text); padding: 8px 20px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; }+.rm-hint { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }+.rm-scope { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; color: var(--text); font-size: var(--fs-sm); }+.rm-scope label { display: flex; gap: 10px; align-items: center; cursor: pointer; width: 100%; }+.rm-scope input[type="radio"] { width: 16px; height: 16px; flex: none; margin: 0; padding: 0; accent-color: var(--accent-bright); }+.rm-allow-actions { display: flex; gap: 10px; margin-top: 4px; }+.rm-btn {+ display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl-h-lg); padding: 0 18px;+ border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--panel-2); color: var(--text);+ font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--t-fast), border-color var(--t-fast);+}+.rm-btn:hover { border-color: var(--border-strong); }+.rm-btn:focus-visible, .rm-link:focus-visible, .rm-switch input:focus-visible + .rm-slider { outline: 2px solid var(--accent-bright); outline-offset: 2px; }+.rm-btn.primary { background-color: var(--action-bg); background-image: var(--action-gradient); color: var(--action-ink); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 -1px 0 rgba(0,0,0,.22); }+.rm-btn:disabled { opacity: .55; cursor: default; }+.rm-link { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm); color: var(--accent-bright); cursor: pointer; text-decoration: none; }+.rm-link:hover { text-decoration: underline; }+.rm-link.danger { color: var(--danger); }+.rm-error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.35); color: var(--text); font-size: var(--fs-sm); }+.rm-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }+.rm-phone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--border); }+.rm-phone-ic { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }+.rm-phone-ic.on { background: var(--success); box-shadow: 0 0 0 3px rgba(63,185,80,.18); }+.rm-phone-main { display: grid; gap: 2px; min-width: 0; }+.rm-phone-main b { color: var(--text); font-size: var(--fs-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.rm-phone-main span { color: var(--muted); font-size: var(--fs-xs); }+.rm-empty { margin: 0; padding: 14px 0 4px; color: var(--muted); font-size: var(--fs-sm); }+.rm-pro-wait { padding: 26px 28px; }+.rm-pro-wait h3 { margin: 0 0 8px; color: var(--text); font-size: var(--fs-lg, 16px); }+.rm-pro-wait p { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; max-width: 60ch; }+.rm-facts { margin: 0 0 12px; display: grid; gap: 0; }+.rm-facts > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }+.rm-facts > div:first-child { border-top: 0; }+.rm-facts dt { color: var(--muted); }+.rm-facts dd { margin: 0; color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--fs-xs); text-align: right; }+.rm-facts input[type="text"] { width: 210px; max-width: 100%; text-align: right; height: var(--ctl-h-sm); border-radius: var(--r-xs); border: 1px solid var(--border); background: var(--bg-2); color: var(--text); padding: 0 8px; font: inherit; font-size: var(--fs-sm); }+.rm-switch { position: relative; display: inline-block; width: 38px; height: 22px; }+.rm-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }+.rm-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background var(--t-base); pointer-events: none; }+.rm-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t-base); }+.rm-switch input:checked + .rm-slider { background: var(--success); }+.rm-switch input:checked + .rm-slider::after { transform: translateX(16px); }+.rm-pro { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: center; padding: 34px 40px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-1); }+.rm-pro-kicker { display: block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }+.rm-pro strong { display: block; color: var(--text); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }+.rm-pro p { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; max-width: 52ch; }+.rm-pro-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 9px; }+.rm-pro-list li { position: relative; padding-left: 24px; color: var(--text); font-size: var(--fs-md); line-height: 1.4; }+.rm-pro-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 11px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }+.rm-pro .rm-pro-note { font-size: var(--fs-sm); }+.rm-pro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }+.rm-pro-phone { justify-self: center; width: 230px; padding: 7px; border-radius: 38px; background: #0b0b0c; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.45); }+.rm-pro-phone video { display: block; width: 100%; aspect-ratio: 586 / 1268; object-fit: cover; border-radius: 31px; background: #000; }+@media (max-width: 900px) {+ .rm-grid { grid-template-columns: minmax(0, 1fr); }+ .rm-head { grid-template-columns: auto minmax(0, 1fr); }+ .rm-conn { grid-column: 1 / -1; justify-self: start; }+ .rm-pro { grid-template-columns: minmax(0, 1fr); }+ .rm-pro-phone { width: 200px; }+}++/* Capability greying (5.0, capabilities.js): a control the picked model or+ variant does not offer, from model_capabilities.py. Not broken, just not+ this model's, so a dim and a not-allowed cursor; the row's plain reason is+ the tooltip and a click shows it. No strike-through (that reads "broken"). */+.cap-locked { opacity: 0.42; cursor: not-allowed; text-decoration-line: none; }+.cap-locked:hover { background: transparent; }++/* ---------- the Editor gets its width back (2 Nov) ----------+ 5.0 put the stage in a floating card (14 px margins, 18 px corners) and+ widened the track-name column from 124 to 168 px for the larger labels.+ On a 1440 px window that cost the Editor 148 px of timeline against 4.19+ (836 vs 984 px) and shrank the program monitor from 652 to 588 px wide,+ with the same 17 shots squeezed into narrower blocks. The Editor is the+ one screen where every horizontal pixel is time, so it keeps the card's+ look with a hairline margin, and the name column is as wide as its+ longest label needs ("A1b Clip sound B" at the larger size). */+body[data-workflow="editor"] main.layout > .stage-pane { margin: 6px 6px 6px 4px; border-radius: 12px; }+body[data-workflow="editor"] .sbe-gutter { flex-basis: 146px; }+body[data-workflow="editor"] .sbe-gh { padding: 0 7px; }+/* The music volume chip on the A2 head: visible at every lane height+ (picture mode shrinks the head to 20 px and hides the Level row). */+.sbe-bed-chip {+ margin-left: 6px; padding: 0 6px; height: 16px; line-height: 14px;+ border: 1px solid var(--border-strong); border-radius: 8px;+ background: var(--bg-2); color: var(--text); font: 600 13px/16px var(--sans);+ font-variant-numeric: tabular-nums; cursor: pointer; flex: 0 0 auto;+}+.sbe-bed-chip:hover { border-color: var(--accent); }+.sbe-bed-chip[hidden] { display: none; }+.sbe-bed-pop { min-width: 260px; }+.sbe-bed-pop .sbe-bed-pop-lvl { font-size: 13px; gap: 8px; }+.sbe-bed-pop .sbe-bed-pop-lvl input[type=range] { height: 18px; }+/* A title over a picture overlay: the lane splits, picture above, title+ below, both still grabbable (2 Nov). */+.sbe-ov.is-stack-hi { bottom: 50% !important; }+.sbe-ov.is-stack-lo { top: 50% !important; }+/* The Inspector drawer (below 1600 px) opens UNDER the Editor's own top row,+ so Undo, Redo, Save and Render stay on screen while it is open. It used to+ start at the window's header and cover all four (2 Nov). */+@media (max-width: 1599px) {+ body[data-workflow="editor"] .sbe-rail { top: 156px; }+}+/* The chip never pushes the lane's name out: a 5.0 button min-width made it+ ~95 px wide and "Music" collapsed to nothing beside it. */+.sbe-gh-tag .sbe-bed-chip { min-width: 0; width: auto; max-width: 56px; height: 18px; padding: 0 5px; margin-left: 2px; }+.sbe-gh-mus .sbe-gh-tag b { flex: 0 1 auto; min-width: 34px; }+/* STAR_CARD_CSS_START: the one-time "star us on GitHub" card (owner, 2 Nov2026; v2 4 Nov). The Pro lamp header at card size; nothing new in thepalette. Always the dark lamp card, in both appearances. */@@ -13036,6 +15139,9 @@ html[data-theme="light"] .star-card { box-shadow: 0 18px 44px rgba(20,26,46,.28).star-card-primary:disabled { cursor: progress; opacity: .8; }.star-card-count { margin-left: 3px; padding-left: 11px; border-left: 1px solid rgba(11,11,12,.22); font-variant-numeric: tabular-nums; font-weight: 600; color: #3a3a40; }.star-card-count[hidden] { display: none; }+.star-card-quiet { display: block; padding: 0 22px 18px; margin-top: -8px; color: #8e8e96; font-size: 13px; text-decoration: none; }+.star-card-quiet:hover { color: #b4b4bb; text-decoration: underline; }+.star-card.is-thanks .star-card-quiet { display: none; }.star-card.is-thanks .star-card-actions { display: none; }.star-card.is-thanks .star-card-head { padding-bottom: 24px; }.star-card.is-thanks .lamp-beam, .star-card.is-thanks .lamp-pool { opacity: .55; }@@ -13047,3 +15153,6 @@ html[data-theme="light"] .star-card { box-shadow: 0 18px 44px rgba(20,26,46,.28)@media (prefers-reduced-motion: reduce) { .star-card { animation: none; } .star-card-burst { display: none; } }@media (max-width: 560px) { .star-card { right: 16px; bottom: 16px; } .star-card .star-card-head h2 { font-size: 24px; } }/* STAR_CARD_CSS_END */++/* Images: a model with one version names it as plain text where the select was. */+.studio-engine-row .studio-version-only { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }diff --git a/webapp/vendor/qrcode/NOTICE.txt b/webapp/vendor/qrcode/NOTICE.txtnew file mode 100644index 0000000..6206c47--- /dev/null+++ b/webapp/vendor/qrcode/NOTICE.txt@@ -0,0 +1,2 @@+qrcode-generator 1.4.4, Kazuhiko Arase, MIT licence (header in qrcode.js).+"QR Code" is a registered trademark of DENSO WAVE INCORPORATED.diff --git a/webapp/vendor/qrcode/qrcode.js b/webapp/vendor/qrcode/qrcode.jsnew file mode 100644index 0000000..76889b5--- /dev/null+++ b/webapp/vendor/qrcode/qrcode.js@@ -0,0 +1,2297 @@+//---------------------------------------------------------------------+//+// QR Code Generator for JavaScript+//+// Copyright (c) 2009 Kazuhiko Arase+//+// URL: http://www.d-project.com/+//+// Licensed under the MIT license:+// http://www.opensource.org/licenses/mit-license.php+//+// The word 'QR Code' is registered trademark of+// DENSO WAVE INCORPORATED+// http://www.denso-wave.com/qrcode/faqpatent-e.html+//+//---------------------------------------------------------------------++var qrcode = function() {++ //---------------------------------------------------------------------+ // qrcode+ //---------------------------------------------------------------------++ /**+ * qrcode+ * @param typeNumber 1 to 40+ * @param errorCorrectionLevel 'L','M','Q','H'+ */+ var qrcode = function(typeNumber, errorCorrectionLevel) {++ var PAD0 = 0xEC;+ var PAD1 = 0x11;++ var _typeNumber = typeNumber;+ var _errorCorrectionLevel = QRErrorCorrectionLevel[errorCorrectionLevel];+ var _modules = null;+ var _moduleCount = 0;+ var _dataCache = null;+ var _dataList = [];++ var _this = {};++ var makeImpl = function(test, maskPattern) {++ _moduleCount = _typeNumber * 4 + 17;+ _modules = function(moduleCount) {+ var modules = new Array(moduleCount);+ for (var row = 0; row < moduleCount; row += 1) {+ modules[row] = new Array(moduleCount);+ for (var col = 0; col < moduleCount; col += 1) {+ modules[row][col] = null;+ }+ }+ return modules;+ }(_moduleCount);++ setupPositionProbePattern(0, 0);+ setupPositionProbePattern(_moduleCount - 7, 0);+ setupPositionProbePattern(0, _moduleCount - 7);+ setupPositionAdjustPattern();+ setupTimingPattern();+ setupTypeInfo(test, maskPattern);++ if (_typeNumber >= 7) {+ setupTypeNumber(test);+ }++ if (_dataCache == null) {+ _dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList);+ }++ mapData(_dataCache, maskPattern);+ };++ var setupPositionProbePattern = function(row, col) {++ for (var r = -1; r <= 7; r += 1) {++ if (row + r <= -1 || _moduleCount <= row + r) continue;++ for (var c = -1; c <= 7; c += 1) {++ if (col + c <= -1 || _moduleCount <= col + c) continue;++ if ( (0 <= r && r <= 6 && (c == 0 || c == 6) )+ || (0 <= c && c <= 6 && (r == 0 || r == 6) )+ || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {+ _modules[row + r][col + c] = true;+ } else {+ _modules[row + r][col + c] = false;+ }+ }+ }+ };++ var getBestMaskPattern = function() {++ var minLostPoint = 0;+ var pattern = 0;++ for (var i = 0; i < 8; i += 1) {++ makeImpl(true, i);++ var lostPoint = QRUtil.getLostPoint(_this);++ if (i == 0 || minLostPoint > lostPoint) {+ minLostPoint = lostPoint;+ pattern = i;+ }+ }++ return pattern;+ };++ var setupTimingPattern = function() {++ for (var r = 8; r < _moduleCount - 8; r += 1) {+ if (_modules[r][6] != null) {+ continue;+ }+ _modules[r][6] = (r % 2 == 0);+ }++ for (var c = 8; c < _moduleCount - 8; c += 1) {+ if (_modules[6][c] != null) {+ continue;+ }+ _modules[6][c] = (c % 2 == 0);+ }+ };++ var setupPositionAdjustPattern = function() {++ var pos = QRUtil.getPatternPosition(_typeNumber);++ for (var i = 0; i < pos.length; i += 1) {++ for (var j = 0; j < pos.length; j += 1) {++ var row = pos[i];+ var col = pos[j];++ if (_modules[row][col] != null) {+ continue;+ }++ for (var r = -2; r <= 2; r += 1) {++ for (var c = -2; c <= 2; c += 1) {++ if (r == -2 || r == 2 || c == -2 || c == 2+ || (r == 0 && c == 0) ) {+ _modules[row + r][col + c] = true;+ } else {+ _modules[row + r][col + c] = false;+ }+ }+ }+ }+ }+ };++ var setupTypeNumber = function(test) {++ var bits = QRUtil.getBCHTypeNumber(_typeNumber);++ for (var i = 0; i < 18; i += 1) {+ var mod = (!test && ( (bits >> i) & 1) == 1);+ _modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod;+ }++ for (var i = 0; i < 18; i += 1) {+ var mod = (!test && ( (bits >> i) & 1) == 1);+ _modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod;+ }+ };++ var setupTypeInfo = function(test, maskPattern) {++ var data = (_errorCorrectionLevel << 3) | maskPattern;+ var bits = QRUtil.getBCHTypeInfo(data);++ // vertical+ for (var i = 0; i < 15; i += 1) {++ var mod = (!test && ( (bits >> i) & 1) == 1);++ if (i < 6) {+ _modules[i][8] = mod;+ } else if (i < 8) {+ _modules[i + 1][8] = mod;+ } else {+ _modules[_moduleCount - 15 + i][8] = mod;+ }+ }++ // horizontal+ for (var i = 0; i < 15; i += 1) {++ var mod = (!test && ( (bits >> i) & 1) == 1);++ if (i < 8) {+ _modules[8][_moduleCount - i - 1] = mod;+ } else if (i < 9) {+ _modules[8][15 - i - 1 + 1] = mod;+ } else {+ _modules[8][15 - i - 1] = mod;+ }+ }++ // fixed module+ _modules[_moduleCount - 8][8] = (!test);+ };++ var mapData = function(data, maskPattern) {++ var inc = -1;+ var row = _moduleCount - 1;+ var bitIndex = 7;+ var byteIndex = 0;+ var maskFunc = QRUtil.getMaskFunction(maskPattern);++ for (var col = _moduleCount - 1; col > 0; col -= 2) {++ if (col == 6) col -= 1;++ while (true) {++ for (var c = 0; c < 2; c += 1) {++ if (_modules[row][col - c] == null) {++ var dark = false;++ if (byteIndex < data.length) {+ dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);+ }++ var mask = maskFunc(row, col - c);++ if (mask) {+ dark = !dark;+ }++ _modules[row][col - c] = dark;+ bitIndex -= 1;++ if (bitIndex == -1) {+ byteIndex += 1;+ bitIndex = 7;+ }+ }+ }++ row += inc;++ if (row < 0 || _moduleCount <= row) {+ row -= inc;+ inc = -inc;+ break;+ }+ }+ }+ };++ var createBytes = function(buffer, rsBlocks) {++ var offset = 0;++ var maxDcCount = 0;+ var maxEcCount = 0;++ var dcdata = new Array(rsBlocks.length);+ var ecdata = new Array(rsBlocks.length);++ for (var r = 0; r < rsBlocks.length; r += 1) {++ var dcCount = rsBlocks[r].dataCount;+ var ecCount = rsBlocks[r].totalCount - dcCount;++ maxDcCount = Math.max(maxDcCount, dcCount);+ maxEcCount = Math.max(maxEcCount, ecCount);++ dcdata[r] = new Array(dcCount);++ for (var i = 0; i < dcdata[r].length; i += 1) {+ dcdata[r][i] = 0xff & buffer.getBuffer()[i + offset];+ }+ offset += dcCount;++ var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);+ var rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1);++ var modPoly = rawPoly.mod(rsPoly);+ ecdata[r] = new Array(rsPoly.getLength() - 1);+ for (var i = 0; i < ecdata[r].length; i += 1) {+ var modIndex = i + modPoly.getLength() - ecdata[r].length;+ ecdata[r][i] = (modIndex >= 0)? modPoly.getAt(modIndex) : 0;+ }+ }++ var totalCodeCount = 0;+ for (var i = 0; i < rsBlocks.length; i += 1) {+ totalCodeCount += rsBlocks[i].totalCount;+ }++ var data = new Array(totalCodeCount);+ var index = 0;++ for (var i = 0; i < maxDcCount; i += 1) {+ for (var r = 0; r < rsBlocks.length; r += 1) {+ if (i < dcdata[r].length) {+ data[index] = dcdata[r][i];+ index += 1;+ }+ }+ }++ for (var i = 0; i < maxEcCount; i += 1) {+ for (var r = 0; r < rsBlocks.length; r += 1) {+ if (i < ecdata[r].length) {+ data[index] = ecdata[r][i];+ index += 1;+ }+ }+ }++ return data;+ };++ var createData = function(typeNumber, errorCorrectionLevel, dataList) {++ var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel);++ var buffer = qrBitBuffer();++ for (var i = 0; i < dataList.length; i += 1) {+ var data = dataList[i];+ buffer.put(data.getMode(), 4);+ buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );+ data.write(buffer);+ }++ // calc num max data.+ var totalDataCount = 0;+ for (var i = 0; i < rsBlocks.length; i += 1) {+ totalDataCount += rsBlocks[i].dataCount;+ }++ if (buffer.getLengthInBits() > totalDataCount * 8) {+ throw 'code length overflow. ('+ + buffer.getLengthInBits()+ + '>'+ + totalDataCount * 8+ + ')';+ }++ // end code+ if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {+ buffer.put(0, 4);+ }++ // padding+ while (buffer.getLengthInBits() % 8 != 0) {+ buffer.putBit(false);+ }++ // padding+ while (true) {++ if (buffer.getLengthInBits() >= totalDataCount * 8) {+ break;+ }+ buffer.put(PAD0, 8);++ if (buffer.getLengthInBits() >= totalDataCount * 8) {+ break;+ }+ buffer.put(PAD1, 8);+ }++ return createBytes(buffer, rsBlocks);+ };++ _this.addData = function(data, mode) {++ mode = mode || 'Byte';++ var newData = null;++ switch(mode) {+ case 'Numeric' :+ newData = qrNumber(data);+ break;+ case 'Alphanumeric' :+ newData = qrAlphaNum(data);+ break;+ case 'Byte' :+ newData = qr8BitByte(data);+ break;+ case 'Kanji' :+ newData = qrKanji(data);+ break;+ default :+ throw 'mode:' + mode;+ }++ _dataList.push(newData);+ _dataCache = null;+ };++ _this.isDark = function(row, col) {+ if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) {+ throw row + ',' + col;+ }+ return _modules[row][col];+ };++ _this.getModuleCount = function() {+ return _moduleCount;+ };++ _this.make = function() {+ if (_typeNumber < 1) {+ var typeNumber = 1;++ for (; typeNumber < 40; typeNumber++) {+ var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, _errorCorrectionLevel);+ var buffer = qrBitBuffer();++ for (var i = 0; i < _dataList.length; i++) {+ var data = _dataList[i];+ buffer.put(data.getMode(), 4);+ buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );+ data.write(buffer);+ }++ var totalDataCount = 0;+ for (var i = 0; i < rsBlocks.length; i++) {+ totalDataCount += rsBlocks[i].dataCount;+ }++ if (buffer.getLengthInBits() <= totalDataCount * 8) {+ break;+ }+ }++ _typeNumber = typeNumber;+ }++ makeImpl(false, getBestMaskPattern() );+ };++ _this.createTableTag = function(cellSize, margin) {++ cellSize = cellSize || 2;+ margin = (typeof margin == 'undefined')? cellSize * 4 : margin;++ var qrHtml = '';++ qrHtml += '<table style="';+ qrHtml += ' border-width: 0px; border-style: none;';+ qrHtml += ' border-collapse: collapse;';+ qrHtml += ' padding: 0px; margin: ' + margin + 'px;';+ qrHtml += '">';+ qrHtml += '<tbody>';++ for (var r = 0; r < _this.getModuleCount(); r += 1) {++ qrHtml += '<tr>';++ for (var c = 0; c < _this.getModuleCount(); c += 1) {+ qrHtml += '<td style="';+ qrHtml += ' border-width: 0px; border-style: none;';+ qrHtml += ' border-collapse: collapse;';+ qrHtml += ' padding: 0px; margin: 0px;';+ qrHtml += ' width: ' + cellSize + 'px;';+ qrHtml += ' height: ' + cellSize + 'px;';+ qrHtml += ' background-color: ';+ qrHtml += _this.isDark(r, c)? '#000000' : '#ffffff';+ qrHtml += ';';+ qrHtml += '"/>';+ }++ qrHtml += '</tr>';+ }++ qrHtml += '</tbody>';+ qrHtml += '</table>';++ return qrHtml;+ };++ _this.createSvgTag = function(cellSize, margin, alt, title) {++ var opts = {};+ if (typeof arguments[0] == 'object') {+ // Called by options.+ opts = arguments[0];+ // overwrite cellSize and margin.+ cellSize = opts.cellSize;+ margin = opts.margin;+ alt = opts.alt;+ title = opts.title;+ }++ cellSize = cellSize || 2;+ margin = (typeof margin == 'undefined')? cellSize * 4 : margin;++ // Compose alt property surrogate+ alt = (typeof alt === 'string') ? {text: alt} : alt || {};+ alt.text = alt.text || null;+ alt.id = (alt.text) ? alt.id || 'qrcode-description' : null;++ // Compose title property surrogate+ title = (typeof title === 'string') ? {text: title} : title || {};+ title.text = title.text || null;+ title.id = (title.text) ? title.id || 'qrcode-title' : null;++ var size = _this.getModuleCount() * cellSize + margin * 2;+ var c, mc, r, mr, qrSvg='', rect;++ rect = 'l' + cellSize + ',0 0,' + cellSize ++ ' -' + cellSize + ',0 0,-' + cellSize + 'z ';++ qrSvg += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"';+ qrSvg += !opts.scalable ? ' width="' + size + 'px" height="' + size + 'px"' : '';+ qrSvg += ' viewBox="0 0 ' + size + ' ' + size + '" ';+ qrSvg += ' preserveAspectRatio="xMinYMin meet"';+ qrSvg += (title.text || alt.text) ? ' role="img" aria-labelledby="' ++ escapeXml([title.id, alt.id].join(' ').trim() ) + '"' : '';+ qrSvg += '>';+ qrSvg += (title.text) ? '<title id="' + escapeXml(title.id) + '">' ++ escapeXml(title.text) + '</title>' : '';+ qrSvg += (alt.text) ? '<description id="' + escapeXml(alt.id) + '">' ++ escapeXml(alt.text) + '</description>' : '';+ qrSvg += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>';+ qrSvg += '<path d="';++ for (r = 0; r < _this.getModuleCount(); r += 1) {+ mr = r * cellSize + margin;+ for (c = 0; c < _this.getModuleCount(); c += 1) {+ if (_this.isDark(r, c) ) {+ mc = c*cellSize+margin;+ qrSvg += 'M' + mc + ',' + mr + rect;+ }+ }+ }++ qrSvg += '" stroke="transparent" fill="black"/>';+ qrSvg += '</svg>';++ return qrSvg;+ };++ _this.createDataURL = function(cellSize, margin) {++ cellSize = cellSize || 2;+ margin = (typeof margin == 'undefined')? cellSize * 4 : margin;++ var size = _this.getModuleCount() * cellSize + margin * 2;+ var min = margin;+ var max = size - margin;++ return createDataURL(size, size, function(x, y) {+ if (min <= x && x < max && min <= y && y < max) {+ var c = Math.floor( (x - min) / cellSize);+ var r = Math.floor( (y - min) / cellSize);+ return _this.isDark(r, c)? 0 : 1;+ } else {+ return 1;+ }+ } );+ };++ _this.createImgTag = function(cellSize, margin, alt) {++ cellSize = cellSize || 2;+ margin = (typeof margin == 'undefined')? cellSize * 4 : margin;++ var size = _this.getModuleCount() * cellSize + margin * 2;++ var img = '';+ img += '<img';+ img += '\u0020src="';+ img += _this.createDataURL(cellSize, margin);+ img += '"';+ img += '\u0020width="';+ img += size;+ img += '"';+ img += '\u0020height="';+ img += size;+ img += '"';+ if (alt) {+ img += '\u0020alt="';+ img += escapeXml(alt);+ img += '"';+ }+ img += '/>';++ return img;+ };++ var escapeXml = function(s) {+ var escaped = '';+ for (var i = 0; i < s.length; i += 1) {+ var c = s.charAt(i);+ switch(c) {+ case '<': escaped += '<'; break;+ case '>': escaped += '>'; break;+ case '&': escaped += '&'; break;+ case '"': escaped += '"'; break;+ default : escaped += c; break;+ }+ }+ return escaped;+ };++ var _createHalfASCII = function(margin) {+ var cellSize = 1;+ margin = (typeof margin == 'undefined')? cellSize * 2 : margin;++ var size = _this.getModuleCount() * cellSize + margin * 2;+ var min = margin;+ var max = size - margin;++ var y, x, r1, r2, p;++ var blocks = {+ '██': '█',+ '█ ': '▀',+ ' █': '▄',+ ' ': ' '+ };++ var blocksLastLineNoMargin = {+ '██': '▀',+ '█ ': '▀',+ ' █': ' ',+ ' ': ' '+ };++ var ascii = '';+ for (y = 0; y < size; y += 2) {+ r1 = Math.floor((y - min) / cellSize);+ r2 = Math.floor((y + 1 - min) / cellSize);+ for (x = 0; x < size; x += 1) {+ p = '█';++ if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) {+ p = ' ';+ }++ if (min <= x && x < max && min <= y+1 && y+1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) {+ p += ' ';+ }+ else {+ p += '█';+ }++ // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.+ ascii += (margin < 1 && y+1 >= max) ? blocksLastLineNoMargin[p] : blocks[p];+ }++ ascii += '\n';+ }++ if (size % 2 && margin > 0) {+ return ascii.substring(0, ascii.length - size - 1) + Array(size+1).join('▀');+ }++ return ascii.substring(0, ascii.length-1);+ };++ _this.createASCII = function(cellSize, margin) {+ cellSize = cellSize || 1;++ if (cellSize < 2) {+ return _createHalfASCII(margin);+ }++ cellSize -= 1;+ margin = (typeof margin == 'undefined')? cellSize * 2 : margin;++ var size = _this.getModuleCount() * cellSize + margin * 2;+ var min = margin;+ var max = size - margin;++ var y, x, r, p;++ var white = Array(cellSize+1).join('██');+ var black = Array(cellSize+1).join(' ');++ var ascii = '';+ var line = '';+ for (y = 0; y < size; y += 1) {+ r = Math.floor( (y - min) / cellSize);+ line = '';+ for (x = 0; x < size; x += 1) {+ p = 1;++ if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) {+ p = 0;+ }++ // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.+ line += p ? white : black;+ }++ for (r = 0; r < cellSize; r += 1) {+ ascii += line + '\n';+ }+ }++ return ascii.substring(0, ascii.length-1);+ };++ _this.renderTo2dContext = function(context, cellSize) {+ cellSize = cellSize || 2;+ var length = _this.getModuleCount();+ for (var row = 0; row < length; row++) {+ for (var col = 0; col < length; col++) {+ context.fillStyle = _this.isDark(row, col) ? 'black' : 'white';+ context.fillRect(row * cellSize, col * cellSize, cellSize, cellSize);+ }+ }+ }++ return _this;+ };++ //---------------------------------------------------------------------+ // qrcode.stringToBytes+ //---------------------------------------------------------------------++ qrcode.stringToBytesFuncs = {+ 'default' : function(s) {+ var bytes = [];+ for (var i = 0; i < s.length; i += 1) {+ var c = s.charCodeAt(i);+ bytes.push(c & 0xff);+ }+ return bytes;+ }+ };++ qrcode.stringToBytes = qrcode.stringToBytesFuncs['default'];++ //---------------------------------------------------------------------+ // qrcode.createStringToBytes+ //---------------------------------------------------------------------++ /**+ * @param unicodeData base64 string of byte array.+ * [16bit Unicode],[16bit Bytes], ...+ * @param numChars+ */+ qrcode.createStringToBytes = function(unicodeData, numChars) {++ // create conversion map.++ var unicodeMap = function() {++ var bin = base64DecodeInputStream(unicodeData);+ var read = function() {+ var b = bin.read();+ if (b == -1) throw 'eof';+ return b;+ };++ var count = 0;+ var unicodeMap = {};+ while (true) {+ var b0 = bin.read();+ if (b0 == -1) break;+ var b1 = read();+ var b2 = read();+ var b3 = read();+ var k = String.fromCharCode( (b0 << 8) | b1);+ var v = (b2 << 8) | b3;+ unicodeMap[k] = v;+ count += 1;+ }+ if (count != numChars) {+ throw count + ' != ' + numChars;+ }++ return unicodeMap;+ }();++ var unknownChar = '?'.charCodeAt(0);++ return function(s) {+ var bytes = [];+ for (var i = 0; i < s.length; i += 1) {+ var c = s.charCodeAt(i);+ if (c < 128) {+ bytes.push(c);+ } else {+ var b = unicodeMap[s.charAt(i)];+ if (typeof b == 'number') {+ if ( (b & 0xff) == b) {+ // 1byte+ bytes.push(b);+ } else {+ // 2bytes+ bytes.push(b >>> 8);+ bytes.push(b & 0xff);+ }+ } else {+ bytes.push(unknownChar);+ }+ }+ }+ return bytes;+ };+ };++ //---------------------------------------------------------------------+ // QRMode+ //---------------------------------------------------------------------++ var QRMode = {+ MODE_NUMBER : 1 << 0,+ MODE_ALPHA_NUM : 1 << 1,+ MODE_8BIT_BYTE : 1 << 2,+ MODE_KANJI : 1 << 3+ };++ //---------------------------------------------------------------------+ // QRErrorCorrectionLevel+ //---------------------------------------------------------------------++ var QRErrorCorrectionLevel = {+ L : 1,+ M : 0,+ Q : 3,+ H : 2+ };++ //---------------------------------------------------------------------+ // QRMaskPattern+ //---------------------------------------------------------------------++ var QRMaskPattern = {+ PATTERN000 : 0,+ PATTERN001 : 1,+ PATTERN010 : 2,+ PATTERN011 : 3,+ PATTERN100 : 4,+ PATTERN101 : 5,+ PATTERN110 : 6,+ PATTERN111 : 7+ };++ //---------------------------------------------------------------------+ // QRUtil+ //---------------------------------------------------------------------++ var QRUtil = function() {++ var PATTERN_POSITION_TABLE = [+ [],+ [6, 18],+ [6, 22],+ [6, 26],+ [6, 30],+ [6, 34],+ [6, 22, 38],+ [6, 24, 42],+ [6, 26, 46],+ [6, 28, 50],+ [6, 30, 54],+ [6, 32, 58],+ [6, 34, 62],+ [6, 26, 46, 66],+ [6, 26, 48, 70],+ [6, 26, 50, 74],+ [6, 30, 54, 78],+ [6, 30, 56, 82],+ [6, 30, 58, 86],+ [6, 34, 62, 90],+ [6, 28, 50, 72, 94],+ [6, 26, 50, 74, 98],+ [6, 30, 54, 78, 102],+ [6, 28, 54, 80, 106],+ [6, 32, 58, 84, 110],+ [6, 30, 58, 86, 114],+ [6, 34, 62, 90, 118],+ [6, 26, 50, 74, 98, 122],+ [6, 30, 54, 78, 102, 126],+ [6, 26, 52, 78, 104, 130],+ [6, 30, 56, 82, 108, 134],+ [6, 34, 60, 86, 112, 138],+ [6, 30, 58, 86, 114, 142],+ [6, 34, 62, 90, 118, 146],+ [6, 30, 54, 78, 102, 126, 150],+ [6, 24, 50, 76, 102, 128, 154],+ [6, 28, 54, 80, 106, 132, 158],+ [6, 32, 58, 84, 110, 136, 162],+ [6, 26, 54, 82, 110, 138, 166],+ [6, 30, 58, 86, 114, 142, 170]+ ];+ var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);+ var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);+ var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);++ var _this = {};++ var getBCHDigit = function(data) {+ var digit = 0;+ while (data != 0) {+ digit += 1;+ data >>>= 1;+ }+ return digit;+ };++ _this.getBCHTypeInfo = function(data) {+ var d = data << 10;+ while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {+ d ^= (G15 << (getBCHDigit(d) - getBCHDigit(G15) ) );+ }+ return ( (data << 10) | d) ^ G15_MASK;+ };++ _this.getBCHTypeNumber = function(data) {+ var d = data << 12;+ while (getBCHDigit(d) - getBCHDigit(G18) >= 0) {+ d ^= (G18 << (getBCHDigit(d) - getBCHDigit(G18) ) );+ }+ return (data << 12) | d;+ };++ _this.getPatternPosition = function(typeNumber) {+ return PATTERN_POSITION_TABLE[typeNumber - 1];+ };++ _this.getMaskFunction = function(maskPattern) {++ switch (maskPattern) {++ case QRMaskPattern.PATTERN000 :+ return function(i, j) { return (i + j) % 2 == 0; };+ case QRMaskPattern.PATTERN001 :+ return function(i, j) { return i % 2 == 0; };+ case QRMaskPattern.PATTERN010 :+ return function(i, j) { return j % 3 == 0; };+ case QRMaskPattern.PATTERN011 :+ return function(i, j) { return (i + j) % 3 == 0; };+ case QRMaskPattern.PATTERN100 :+ return function(i, j) { return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0; };+ case QRMaskPattern.PATTERN101 :+ return function(i, j) { return (i * j) % 2 + (i * j) % 3 == 0; };+ case QRMaskPattern.PATTERN110 :+ return function(i, j) { return ( (i * j) % 2 + (i * j) % 3) % 2 == 0; };+ case QRMaskPattern.PATTERN111 :+ return function(i, j) { return ( (i * j) % 3 + (i + j) % 2) % 2 == 0; };++ default :+ throw 'bad maskPattern:' + maskPattern;+ }+ };++ _this.getErrorCorrectPolynomial = function(errorCorrectLength) {+ var a = qrPolynomial([1], 0);+ for (var i = 0; i < errorCorrectLength; i += 1) {+ a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0) );+ }+ return a;+ };++ _this.getLengthInBits = function(mode, type) {++ if (1 <= type && type < 10) {++ // 1 - 9++ switch(mode) {+ case QRMode.MODE_NUMBER : return 10;+ case QRMode.MODE_ALPHA_NUM : return 9;+ case QRMode.MODE_8BIT_BYTE : return 8;+ case QRMode.MODE_KANJI : return 8;+ default :+ throw 'mode:' + mode;+ }++ } else if (type < 27) {++ // 10 - 26++ switch(mode) {+ case QRMode.MODE_NUMBER : return 12;+ case QRMode.MODE_ALPHA_NUM : return 11;+ case QRMode.MODE_8BIT_BYTE : return 16;+ case QRMode.MODE_KANJI : return 10;+ default :+ throw 'mode:' + mode;+ }++ } else if (type < 41) {++ // 27 - 40++ switch(mode) {+ case QRMode.MODE_NUMBER : return 14;+ case QRMode.MODE_ALPHA_NUM : return 13;+ case QRMode.MODE_8BIT_BYTE : return 16;+ case QRMode.MODE_KANJI : return 12;+ default :+ throw 'mode:' + mode;+ }++ } else {+ throw 'type:' + type;+ }+ };++ _this.getLostPoint = function(qrcode) {++ var moduleCount = qrcode.getModuleCount();++ var lostPoint = 0;++ // LEVEL1++ for (var row = 0; row < moduleCount; row += 1) {+ for (var col = 0; col < moduleCount; col += 1) {++ var sameCount = 0;+ var dark = qrcode.isDark(row, col);++ for (var r = -1; r <= 1; r += 1) {++ if (row + r < 0 || moduleCount <= row + r) {+ continue;+ }++ for (var c = -1; c <= 1; c += 1) {++ if (col + c < 0 || moduleCount <= col + c) {+ continue;+ }++ if (r == 0 && c == 0) {+ continue;+ }++ if (dark == qrcode.isDark(row + r, col + c) ) {+ sameCount += 1;+ }+ }+ }++ if (sameCount > 5) {+ lostPoint += (3 + sameCount - 5);+ }+ }+ };++ // LEVEL2++ for (var row = 0; row < moduleCount - 1; row += 1) {+ for (var col = 0; col < moduleCount - 1; col += 1) {+ var count = 0;+ if (qrcode.isDark(row, col) ) count += 1;+ if (qrcode.isDark(row + 1, col) ) count += 1;+ if (qrcode.isDark(row, col + 1) ) count += 1;+ if (qrcode.isDark(row + 1, col + 1) ) count += 1;+ if (count == 0 || count == 4) {+ lostPoint += 3;+ }+ }+ }++ // LEVEL3++ for (var row = 0; row < moduleCount; row += 1) {+ for (var col = 0; col < moduleCount - 6; col += 1) {+ if (qrcode.isDark(row, col)+ && !qrcode.isDark(row, col + 1)+ && qrcode.isDark(row, col + 2)+ && qrcode.isDark(row, col + 3)+ && qrcode.isDark(row, col + 4)+ && !qrcode.isDark(row, col + 5)+ && qrcode.isDark(row, col + 6) ) {+ lostPoint += 40;+ }+ }+ }++ for (var col = 0; col < moduleCount; col += 1) {+ for (var row = 0; row < moduleCount - 6; row += 1) {+ if (qrcode.isDark(row, col)+ && !qrcode.isDark(row + 1, col)+ && qrcode.isDark(row + 2, col)+ && qrcode.isDark(row + 3, col)+ && qrcode.isDark(row + 4, col)+ && !qrcode.isDark(row + 5, col)+ && qrcode.isDark(row + 6, col) ) {+ lostPoint += 40;+ }+ }+ }++ // LEVEL4++ var darkCount = 0;++ for (var col = 0; col < moduleCount; col += 1) {+ for (var row = 0; row < moduleCount; row += 1) {+ if (qrcode.isDark(row, col) ) {+ darkCount += 1;+ }+ }+ }++ var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;+ lostPoint += ratio * 10;++ return lostPoint;+ };++ return _this;+ }();++ //---------------------------------------------------------------------+ // QRMath+ //---------------------------------------------------------------------++ var QRMath = function() {++ var EXP_TABLE = new Array(256);+ var LOG_TABLE = new Array(256);++ // initialize tables+ for (var i = 0; i < 8; i += 1) {+ EXP_TABLE[i] = 1 << i;+ }+ for (var i = 8; i < 256; i += 1) {+ EXP_TABLE[i] = EXP_TABLE[i - 4]+ ^ EXP_TABLE[i - 5]+ ^ EXP_TABLE[i - 6]+ ^ EXP_TABLE[i - 8];+ }+ for (var i = 0; i < 255; i += 1) {+ LOG_TABLE[EXP_TABLE[i] ] = i;+ }++ var _this = {};++ _this.glog = function(n) {++ if (n < 1) {+ throw 'glog(' + n + ')';+ }++ return LOG_TABLE[n];+ };++ _this.gexp = function(n) {++ while (n < 0) {+ n += 255;+ }++ while (n >= 256) {+ n -= 255;+ }++ return EXP_TABLE[n];+ };++ return _this;+ }();++ //---------------------------------------------------------------------+ // qrPolynomial+ //---------------------------------------------------------------------++ function qrPolynomial(num, shift) {++ if (typeof num.length == 'undefined') {+ throw num.length + '/' + shift;+ }++ var _num = function() {+ var offset = 0;+ while (offset < num.length && num[offset] == 0) {+ offset += 1;+ }+ var _num = new Array(num.length - offset + shift);+ for (var i = 0; i < num.length - offset; i += 1) {+ _num[i] = num[i + offset];+ }+ return _num;+ }();++ var _this = {};++ _this.getAt = function(index) {+ return _num[index];+ };++ _this.getLength = function() {+ return _num.length;+ };++ _this.multiply = function(e) {++ var num = new Array(_this.getLength() + e.getLength() - 1);++ for (var i = 0; i < _this.getLength(); i += 1) {+ for (var j = 0; j < e.getLength(); j += 1) {+ num[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i) ) + QRMath.glog(e.getAt(j) ) );+ }+ }++ return qrPolynomial(num, 0);+ };++ _this.mod = function(e) {++ if (_this.getLength() - e.getLength() < 0) {+ return _this;+ }++ var ratio = QRMath.glog(_this.getAt(0) ) - QRMath.glog(e.getAt(0) );++ var num = new Array(_this.getLength() );+ for (var i = 0; i < _this.getLength(); i += 1) {+ num[i] = _this.getAt(i);+ }++ for (var i = 0; i < e.getLength(); i += 1) {+ num[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i) ) + ratio);+ }++ // recursive call+ return qrPolynomial(num, 0).mod(e);+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // QRRSBlock+ //---------------------------------------------------------------------++ var QRRSBlock = function() {++ var RS_BLOCK_TABLE = [++ // L+ // M+ // Q+ // H++ // 1+ [1, 26, 19],+ [1, 26, 16],+ [1, 26, 13],+ [1, 26, 9],++ // 2+ [1, 44, 34],+ [1, 44, 28],+ [1, 44, 22],+ [1, 44, 16],++ // 3+ [1, 70, 55],+ [1, 70, 44],+ [2, 35, 17],+ [2, 35, 13],++ // 4+ [1, 100, 80],+ [2, 50, 32],+ [2, 50, 24],+ [4, 25, 9],++ // 5+ [1, 134, 108],+ [2, 67, 43],+ [2, 33, 15, 2, 34, 16],+ [2, 33, 11, 2, 34, 12],++ // 6+ [2, 86, 68],+ [4, 43, 27],+ [4, 43, 19],+ [4, 43, 15],++ // 7+ [2, 98, 78],+ [4, 49, 31],+ [2, 32, 14, 4, 33, 15],+ [4, 39, 13, 1, 40, 14],++ // 8+ [2, 121, 97],+ [2, 60, 38, 2, 61, 39],+ [4, 40, 18, 2, 41, 19],+ [4, 40, 14, 2, 41, 15],++ // 9+ [2, 146, 116],+ [3, 58, 36, 2, 59, 37],+ [4, 36, 16, 4, 37, 17],+ [4, 36, 12, 4, 37, 13],++ // 10+ [2, 86, 68, 2, 87, 69],+ [4, 69, 43, 1, 70, 44],+ [6, 43, 19, 2, 44, 20],+ [6, 43, 15, 2, 44, 16],++ // 11+ [4, 101, 81],+ [1, 80, 50, 4, 81, 51],+ [4, 50, 22, 4, 51, 23],+ [3, 36, 12, 8, 37, 13],++ // 12+ [2, 116, 92, 2, 117, 93],+ [6, 58, 36, 2, 59, 37],+ [4, 46, 20, 6, 47, 21],+ [7, 42, 14, 4, 43, 15],++ // 13+ [4, 133, 107],+ [8, 59, 37, 1, 60, 38],+ [8, 44, 20, 4, 45, 21],+ [12, 33, 11, 4, 34, 12],++ // 14+ [3, 145, 115, 1, 146, 116],+ [4, 64, 40, 5, 65, 41],+ [11, 36, 16, 5, 37, 17],+ [11, 36, 12, 5, 37, 13],++ // 15+ [5, 109, 87, 1, 110, 88],+ [5, 65, 41, 5, 66, 42],+ [5, 54, 24, 7, 55, 25],+ [11, 36, 12, 7, 37, 13],++ // 16+ [5, 122, 98, 1, 123, 99],+ [7, 73, 45, 3, 74, 46],+ [15, 43, 19, 2, 44, 20],+ [3, 45, 15, 13, 46, 16],++ // 17+ [1, 135, 107, 5, 136, 108],+ [10, 74, 46, 1, 75, 47],+ [1, 50, 22, 15, 51, 23],+ [2, 42, 14, 17, 43, 15],++ // 18+ [5, 150, 120, 1, 151, 121],+ [9, 69, 43, 4, 70, 44],+ [17, 50, 22, 1, 51, 23],+ [2, 42, 14, 19, 43, 15],++ // 19+ [3, 141, 113, 4, 142, 114],+ [3, 70, 44, 11, 71, 45],+ [17, 47, 21, 4, 48, 22],+ [9, 39, 13, 16, 40, 14],++ // 20+ [3, 135, 107, 5, 136, 108],+ [3, 67, 41, 13, 68, 42],+ [15, 54, 24, 5, 55, 25],+ [15, 43, 15, 10, 44, 16],++ // 21+ [4, 144, 116, 4, 145, 117],+ [17, 68, 42],+ [17, 50, 22, 6, 51, 23],+ [19, 46, 16, 6, 47, 17],++ // 22+ [2, 139, 111, 7, 140, 112],+ [17, 74, 46],+ [7, 54, 24, 16, 55, 25],+ [34, 37, 13],++ // 23+ [4, 151, 121, 5, 152, 122],+ [4, 75, 47, 14, 76, 48],+ [11, 54, 24, 14, 55, 25],+ [16, 45, 15, 14, 46, 16],++ // 24+ [6, 147, 117, 4, 148, 118],+ [6, 73, 45, 14, 74, 46],+ [11, 54, 24, 16, 55, 25],+ [30, 46, 16, 2, 47, 17],++ // 25+ [8, 132, 106, 4, 133, 107],+ [8, 75, 47, 13, 76, 48],+ [7, 54, 24, 22, 55, 25],+ [22, 45, 15, 13, 46, 16],++ // 26+ [10, 142, 114, 2, 143, 115],+ [19, 74, 46, 4, 75, 47],+ [28, 50, 22, 6, 51, 23],+ [33, 46, 16, 4, 47, 17],++ // 27+ [8, 152, 122, 4, 153, 123],+ [22, 73, 45, 3, 74, 46],+ [8, 53, 23, 26, 54, 24],+ [12, 45, 15, 28, 46, 16],++ // 28+ [3, 147, 117, 10, 148, 118],+ [3, 73, 45, 23, 74, 46],+ [4, 54, 24, 31, 55, 25],+ [11, 45, 15, 31, 46, 16],++ // 29+ [7, 146, 116, 7, 147, 117],+ [21, 73, 45, 7, 74, 46],+ [1, 53, 23, 37, 54, 24],+ [19, 45, 15, 26, 46, 16],++ // 30+ [5, 145, 115, 10, 146, 116],+ [19, 75, 47, 10, 76, 48],+ [15, 54, 24, 25, 55, 25],+ [23, 45, 15, 25, 46, 16],++ // 31+ [13, 145, 115, 3, 146, 116],+ [2, 74, 46, 29, 75, 47],+ [42, 54, 24, 1, 55, 25],+ [23, 45, 15, 28, 46, 16],++ // 32+ [17, 145, 115],+ [10, 74, 46, 23, 75, 47],+ [10, 54, 24, 35, 55, 25],+ [19, 45, 15, 35, 46, 16],++ // 33+ [17, 145, 115, 1, 146, 116],+ [14, 74, 46, 21, 75, 47],+ [29, 54, 24, 19, 55, 25],+ [11, 45, 15, 46, 46, 16],++ // 34+ [13, 145, 115, 6, 146, 116],+ [14, 74, 46, 23, 75, 47],+ [44, 54, 24, 7, 55, 25],+ [59, 46, 16, 1, 47, 17],++ // 35+ [12, 151, 121, 7, 152, 122],+ [12, 75, 47, 26, 76, 48],+ [39, 54, 24, 14, 55, 25],+ [22, 45, 15, 41, 46, 16],++ // 36+ [6, 151, 121, 14, 152, 122],+ [6, 75, 47, 34, 76, 48],+ [46, 54, 24, 10, 55, 25],+ [2, 45, 15, 64, 46, 16],++ // 37+ [17, 152, 122, 4, 153, 123],+ [29, 74, 46, 14, 75, 47],+ [49, 54, 24, 10, 55, 25],+ [24, 45, 15, 46, 46, 16],++ // 38+ [4, 152, 122, 18, 153, 123],+ [13, 74, 46, 32, 75, 47],+ [48, 54, 24, 14, 55, 25],+ [42, 45, 15, 32, 46, 16],++ // 39+ [20, 147, 117, 4, 148, 118],+ [40, 75, 47, 7, 76, 48],+ [43, 54, 24, 22, 55, 25],+ [10, 45, 15, 67, 46, 16],++ // 40+ [19, 148, 118, 6, 149, 119],+ [18, 75, 47, 31, 76, 48],+ [34, 54, 24, 34, 55, 25],+ [20, 45, 15, 61, 46, 16]+ ];++ var qrRSBlock = function(totalCount, dataCount) {+ var _this = {};+ _this.totalCount = totalCount;+ _this.dataCount = dataCount;+ return _this;+ };++ var _this = {};++ var getRsBlockTable = function(typeNumber, errorCorrectionLevel) {++ switch(errorCorrectionLevel) {+ case QRErrorCorrectionLevel.L :+ return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];+ case QRErrorCorrectionLevel.M :+ return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];+ case QRErrorCorrectionLevel.Q :+ return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];+ case QRErrorCorrectionLevel.H :+ return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];+ default :+ return undefined;+ }+ };++ _this.getRSBlocks = function(typeNumber, errorCorrectionLevel) {++ var rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel);++ if (typeof rsBlock == 'undefined') {+ throw 'bad rs block @ typeNumber:' + typeNumber ++ '/errorCorrectionLevel:' + errorCorrectionLevel;+ }++ var length = rsBlock.length / 3;++ var list = [];++ for (var i = 0; i < length; i += 1) {++ var count = rsBlock[i * 3 + 0];+ var totalCount = rsBlock[i * 3 + 1];+ var dataCount = rsBlock[i * 3 + 2];++ for (var j = 0; j < count; j += 1) {+ list.push(qrRSBlock(totalCount, dataCount) );+ }+ }++ return list;+ };++ return _this;+ }();++ //---------------------------------------------------------------------+ // qrBitBuffer+ //---------------------------------------------------------------------++ var qrBitBuffer = function() {++ var _buffer = [];+ var _length = 0;++ var _this = {};++ _this.getBuffer = function() {+ return _buffer;+ };++ _this.getAt = function(index) {+ var bufIndex = Math.floor(index / 8);+ return ( (_buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;+ };++ _this.put = function(num, length) {+ for (var i = 0; i < length; i += 1) {+ _this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);+ }+ };++ _this.getLengthInBits = function() {+ return _length;+ };++ _this.putBit = function(bit) {++ var bufIndex = Math.floor(_length / 8);+ if (_buffer.length <= bufIndex) {+ _buffer.push(0);+ }++ if (bit) {+ _buffer[bufIndex] |= (0x80 >>> (_length % 8) );+ }++ _length += 1;+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // qrNumber+ //---------------------------------------------------------------------++ var qrNumber = function(data) {++ var _mode = QRMode.MODE_NUMBER;+ var _data = data;++ var _this = {};++ _this.getMode = function() {+ return _mode;+ };++ _this.getLength = function(buffer) {+ return _data.length;+ };++ _this.write = function(buffer) {++ var data = _data;++ var i = 0;++ while (i + 2 < data.length) {+ buffer.put(strToNum(data.substring(i, i + 3) ), 10);+ i += 3;+ }++ if (i < data.length) {+ if (data.length - i == 1) {+ buffer.put(strToNum(data.substring(i, i + 1) ), 4);+ } else if (data.length - i == 2) {+ buffer.put(strToNum(data.substring(i, i + 2) ), 7);+ }+ }+ };++ var strToNum = function(s) {+ var num = 0;+ for (var i = 0; i < s.length; i += 1) {+ num = num * 10 + chatToNum(s.charAt(i) );+ }+ return num;+ };++ var chatToNum = function(c) {+ if ('0' <= c && c <= '9') {+ return c.charCodeAt(0) - '0'.charCodeAt(0);+ }+ throw 'illegal char :' + c;+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // qrAlphaNum+ //---------------------------------------------------------------------++ var qrAlphaNum = function(data) {++ var _mode = QRMode.MODE_ALPHA_NUM;+ var _data = data;++ var _this = {};++ _this.getMode = function() {+ return _mode;+ };++ _this.getLength = function(buffer) {+ return _data.length;+ };++ _this.write = function(buffer) {++ var s = _data;++ var i = 0;++ while (i + 1 < s.length) {+ buffer.put(+ getCode(s.charAt(i) ) * 45 ++ getCode(s.charAt(i + 1) ), 11);+ i += 2;+ }++ if (i < s.length) {+ buffer.put(getCode(s.charAt(i) ), 6);+ }+ };++ var getCode = function(c) {++ if ('0' <= c && c <= '9') {+ return c.charCodeAt(0) - '0'.charCodeAt(0);+ } else if ('A' <= c && c <= 'Z') {+ return c.charCodeAt(0) - 'A'.charCodeAt(0) + 10;+ } else {+ switch (c) {+ case ' ' : return 36;+ case '$' : return 37;+ case '%' : return 38;+ case '*' : return 39;+ case '+' : return 40;+ case '-' : return 41;+ case '.' : return 42;+ case '/' : return 43;+ case ':' : return 44;+ default :+ throw 'illegal char :' + c;+ }+ }+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // qr8BitByte+ //---------------------------------------------------------------------++ var qr8BitByte = function(data) {++ var _mode = QRMode.MODE_8BIT_BYTE;+ var _data = data;+ var _bytes = qrcode.stringToBytes(data);++ var _this = {};++ _this.getMode = function() {+ return _mode;+ };++ _this.getLength = function(buffer) {+ return _bytes.length;+ };++ _this.write = function(buffer) {+ for (var i = 0; i < _bytes.length; i += 1) {+ buffer.put(_bytes[i], 8);+ }+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // qrKanji+ //---------------------------------------------------------------------++ var qrKanji = function(data) {++ var _mode = QRMode.MODE_KANJI;+ var _data = data;++ var stringToBytes = qrcode.stringToBytesFuncs['SJIS'];+ if (!stringToBytes) {+ throw 'sjis not supported.';+ }+ !function(c, code) {+ // self test for sjis support.+ var test = stringToBytes(c);+ if (test.length != 2 || ( (test[0] << 8) | test[1]) != code) {+ throw 'sjis not supported.';+ }+ }('\u53cb', 0x9746);++ var _bytes = stringToBytes(data);++ var _this = {};++ _this.getMode = function() {+ return _mode;+ };++ _this.getLength = function(buffer) {+ return ~~(_bytes.length / 2);+ };++ _this.write = function(buffer) {++ var data = _bytes;++ var i = 0;++ while (i + 1 < data.length) {++ var c = ( (0xff & data[i]) << 8) | (0xff & data[i + 1]);++ if (0x8140 <= c && c <= 0x9FFC) {+ c -= 0x8140;+ } else if (0xE040 <= c && c <= 0xEBBF) {+ c -= 0xC140;+ } else {+ throw 'illegal char at ' + (i + 1) + '/' + c;+ }++ c = ( (c >>> 8) & 0xff) * 0xC0 + (c & 0xff);++ buffer.put(c, 13);++ i += 2;+ }++ if (i < data.length) {+ throw 'illegal char at ' + (i + 1);+ }+ };++ return _this;+ };++ //=====================================================================+ // GIF Support etc.+ //++ //---------------------------------------------------------------------+ // byteArrayOutputStream+ //---------------------------------------------------------------------++ var byteArrayOutputStream = function() {++ var _bytes = [];++ var _this = {};++ _this.writeByte = function(b) {+ _bytes.push(b & 0xff);+ };++ _this.writeShort = function(i) {+ _this.writeByte(i);+ _this.writeByte(i >>> 8);+ };++ _this.writeBytes = function(b, off, len) {+ off = off || 0;+ len = len || b.length;+ for (var i = 0; i < len; i += 1) {+ _this.writeByte(b[i + off]);+ }+ };++ _this.writeString = function(s) {+ for (var i = 0; i < s.length; i += 1) {+ _this.writeByte(s.charCodeAt(i) );+ }+ };++ _this.toByteArray = function() {+ return _bytes;+ };++ _this.toString = function() {+ var s = '';+ s += '[';+ for (var i = 0; i < _bytes.length; i += 1) {+ if (i > 0) {+ s += ',';+ }+ s += _bytes[i];+ }+ s += ']';+ return s;+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // base64EncodeOutputStream+ //---------------------------------------------------------------------++ var base64EncodeOutputStream = function() {++ var _buffer = 0;+ var _buflen = 0;+ var _length = 0;+ var _base64 = '';++ var _this = {};++ var writeEncoded = function(b) {+ _base64 += String.fromCharCode(encode(b & 0x3f) );+ };++ var encode = function(n) {+ if (n < 0) {+ // error.+ } else if (n < 26) {+ return 0x41 + n;+ } else if (n < 52) {+ return 0x61 + (n - 26);+ } else if (n < 62) {+ return 0x30 + (n - 52);+ } else if (n == 62) {+ return 0x2b;+ } else if (n == 63) {+ return 0x2f;+ }+ throw 'n:' + n;+ };++ _this.writeByte = function(n) {++ _buffer = (_buffer << 8) | (n & 0xff);+ _buflen += 8;+ _length += 1;++ while (_buflen >= 6) {+ writeEncoded(_buffer >>> (_buflen - 6) );+ _buflen -= 6;+ }+ };++ _this.flush = function() {++ if (_buflen > 0) {+ writeEncoded(_buffer << (6 - _buflen) );+ _buffer = 0;+ _buflen = 0;+ }++ if (_length % 3 != 0) {+ // padding+ var padlen = 3 - _length % 3;+ for (var i = 0; i < padlen; i += 1) {+ _base64 += '=';+ }+ }+ };++ _this.toString = function() {+ return _base64;+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // base64DecodeInputStream+ //---------------------------------------------------------------------++ var base64DecodeInputStream = function(str) {++ var _str = str;+ var _pos = 0;+ var _buffer = 0;+ var _buflen = 0;++ var _this = {};++ _this.read = function() {++ while (_buflen < 8) {++ if (_pos >= _str.length) {+ if (_buflen == 0) {+ return -1;+ }+ throw 'unexpected end of file./' + _buflen;+ }++ var c = _str.charAt(_pos);+ _pos += 1;++ if (c == '=') {+ _buflen = 0;+ return -1;+ } else if (c.match(/^\s$/) ) {+ // ignore if whitespace.+ continue;+ }++ _buffer = (_buffer << 6) | decode(c.charCodeAt(0) );+ _buflen += 6;+ }++ var n = (_buffer >>> (_buflen - 8) ) & 0xff;+ _buflen -= 8;+ return n;+ };++ var decode = function(c) {+ if (0x41 <= c && c <= 0x5a) {+ return c - 0x41;+ } else if (0x61 <= c && c <= 0x7a) {+ return c - 0x61 + 26;+ } else if (0x30 <= c && c <= 0x39) {+ return c - 0x30 + 52;+ } else if (c == 0x2b) {+ return 62;+ } else if (c == 0x2f) {+ return 63;+ } else {+ throw 'c:' + c;+ }+ };++ return _this;+ };++ //---------------------------------------------------------------------+ // gifImage (B/W)+ //---------------------------------------------------------------------++ var gifImage = function(width, height) {++ var _width = width;+ var _height = height;+ var _data = new Array(width * height);++ var _this = {};++ _this.setPixel = function(x, y, pixel) {+ _data[y * _width + x] = pixel;+ };++ _this.write = function(out) {++ //---------------------------------+ // GIF Signature++ out.writeString('GIF87a');++ //---------------------------------+ // Screen Descriptor++ out.writeShort(_width);+ out.writeShort(_height);++ out.writeByte(0x80); // 2bit+ out.writeByte(0);+ out.writeByte(0);++ //---------------------------------+ // Global Color Map++ // black+ out.writeByte(0x00);+ out.writeByte(0x00);+ out.writeByte(0x00);++ // white+ out.writeByte(0xff);+ out.writeByte(0xff);+ out.writeByte(0xff);++ //---------------------------------+ // Image Descriptor++ out.writeString(',');+ out.writeShort(0);+ out.writeShort(0);+ out.writeShort(_width);+ out.writeShort(_height);+ out.writeByte(0);++ //---------------------------------+ // Local Color Map++ //---------------------------------+ // Raster Data++ var lzwMinCodeSize = 2;+ var raster = getLZWRaster(lzwMinCodeSize);++ out.writeByte(lzwMinCodeSize);++ var offset = 0;++ while (raster.length - offset > 255) {+ out.writeByte(255);+ out.writeBytes(raster, offset, 255);+ offset += 255;+ }++ out.writeByte(raster.length - offset);+ out.writeBytes(raster, offset, raster.length - offset);+ out.writeByte(0x00);++ //---------------------------------+ // GIF Terminator+ out.writeString(';');+ };++ var bitOutputStream = function(out) {++ var _out = out;+ var _bitLength = 0;+ var _bitBuffer = 0;++ var _this = {};++ _this.write = function(data, length) {++ if ( (data >>> length) != 0) {+ throw 'length over';+ }++ while (_bitLength + length >= 8) {+ _out.writeByte(0xff & ( (data << _bitLength) | _bitBuffer) );+ length -= (8 - _bitLength);+ data >>>= (8 - _bitLength);+ _bitBuffer = 0;+ _bitLength = 0;+ }++ _bitBuffer = (data << _bitLength) | _bitBuffer;+ _bitLength = _bitLength + length;+ };++ _this.flush = function() {+ if (_bitLength > 0) {+ _out.writeByte(_bitBuffer);+ }+ };++ return _this;+ };++ var getLZWRaster = function(lzwMinCodeSize) {++ var clearCode = 1 << lzwMinCodeSize;+ var endCode = (1 << lzwMinCodeSize) + 1;+ var bitLength = lzwMinCodeSize + 1;++ // Setup LZWTable+ var table = lzwTable();++ for (var i = 0; i < clearCode; i += 1) {+ table.add(String.fromCharCode(i) );+ }+ table.add(String.fromCharCode(clearCode) );+ table.add(String.fromCharCode(endCode) );++ var byteOut = byteArrayOutputStream();+ var bitOut = bitOutputStream(byteOut);++ // clear code+ bitOut.write(clearCode, bitLength);++ var dataIndex = 0;++ var s = String.fromCharCode(_data[dataIndex]);+ dataIndex += 1;++ while (dataIndex < _data.length) {++ var c = String.fromCharCode(_data[dataIndex]);+ dataIndex += 1;++ if (table.contains(s + c) ) {++ s = s + c;++ } else {++ bitOut.write(table.indexOf(s), bitLength);++ if (table.size() < 0xfff) {++ if (table.size() == (1 << bitLength) ) {+ bitLength += 1;+ }++ table.add(s + c);+ }++ s = c;+ }+ }++ bitOut.write(table.indexOf(s), bitLength);++ // end code+ bitOut.write(endCode, bitLength);++ bitOut.flush();++ return byteOut.toByteArray();+ };++ var lzwTable = function() {++ var _map = {};+ var _size = 0;++ var _this = {};++ _this.add = function(key) {+ if (_this.contains(key) ) {+ throw 'dup key:' + key;+ }+ _map[key] = _size;+ _size += 1;+ };++ _this.size = function() {+ return _size;+ };++ _this.indexOf = function(key) {+ return _map[key];+ };++ _this.contains = function(key) {+ return typeof _map[key] != 'undefined';+ };++ return _this;+ };++ return _this;+ };++ var createDataURL = function(width, height, getPixel) {+ var gif = gifImage(width, height);+ for (var y = 0; y < height; y += 1) {+ for (var x = 0; x < width; x += 1) {+ gif.setPixel(x, y, getPixel(x, y) );+ }+ }++ var b = byteArrayOutputStream();+ gif.write(b);++ var base64 = base64EncodeOutputStream();+ var bytes = b.toByteArray();+ for (var i = 0; i < bytes.length; i += 1) {+ base64.writeByte(bytes[i]);+ }+ base64.flush();++ return 'data:image/gif;base64,' + base64;+ };++ //---------------------------------------------------------------------+ // returns qrcode function.++ return qrcode;+}();++// multibyte support+!function() {++ qrcode.stringToBytesFuncs['UTF-8'] = function(s) {+ // http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array+ function toUTF8Array(str) {+ var utf8 = [];+ for (var i=0; i < str.length; i++) {+ var charcode = str.charCodeAt(i);+ if (charcode < 0x80) utf8.push(charcode);+ else if (charcode < 0x800) {+ utf8.push(0xc0 | (charcode >> 6),+ 0x80 | (charcode & 0x3f));+ }+ else if (charcode < 0xd800 || charcode >= 0xe000) {+ utf8.push(0xe0 | (charcode >> 12),+ 0x80 | ((charcode>>6) & 0x3f),+ 0x80 | (charcode & 0x3f));+ }+ // surrogate pair+ else {+ i++;+ // UTF-16 encodes 0x10000-0x10FFFF by+ // subtracting 0x10000 and splitting the+ // 20 bits of 0x0-0xFFFFF into two halves+ charcode = 0x10000 + (((charcode & 0x3ff)<<10)+ | (str.charCodeAt(i) & 0x3ff));+ utf8.push(0xf0 | (charcode >>18),+ 0x80 | ((charcode>>12) & 0x3f),+ 0x80 | ((charcode>>6) & 0x3f),+ 0x80 | (charcode & 0x3f));+ }+ }+ return utf8;+ }+ return toUTF8Array(s);+ };++}();++(function (factory) {+ if (typeof define === 'function' && define.amd) {+ define([], factory);+ } else if (typeof exports === 'object') {+ module.exports = factory();+ }+}(function () {+ return qrcode;+}));