Don’t leave the page
You can keep the tab and still leave. Leaving costs the place you were reading, the mark you made, and the question you were about to ask. These demos keep the answer on the same sentence: the seat, the shell, the wait, and the next question. Play each one. This is craft work, not the product case study.
The sentence
This is the whole product in one split. Same sentence. Left opens a search tab and loses place, mark, and question. Right keeps the article and answers in the popup. Watch both. The ledger is the difference.
Media can live in the same shell. An image first, then the line that explains it. Nothing leaves this popup.
The button belongs at the tip of the drag. The circle sits on the focus tip, 3px above it, centered with translate(-50%, -100%). Tip and corner are both here. The box stays. Your hand does not.
Letting go is not the same as asking. Select the same line in both modes. Auto spends the highlight on pointerup. Icon waits until you press the circle.
The answer has to keep pointing at the source. Persist on keeps the yellow while the popup opens. Persist off clears the mark at the same moment, so the answer no longer points at a sentence.
A popup that falls off the edge has left. The highlight moves into a corner. Always below clips past the window. Clamp flips the popup and keeps a gap inside the edge.
The shell
The page stays. The shell changes. Floating, centered, and sidebar take turns. Only the shell moves. The article underneath does not remount.
Arrival should not feel like a new page. None is a cut. Scale grows the same surface into place, from 0.9 to 1. Slide and fade are the same object, just a different enter.
Dim the page instead of navigating away. Focus blurs the article by 5px under a 70% veil, over 300ms. The popup does not move. The window does not change.
Pin the sidebar. Do not shove the article. The pin rotates to -44°. The text column keeps its width, so the article does not reflow.
Theme is a repaint, not a reload. Light and dark crossfade the shell over 650ms. The answer sentence stays on the same line.
The wait
Do not dump the answer in one frame. Dump all lands in one frame. 8 words per second is reading speed. 20 is still a pace, just a faster one. The network can already be done.
A full bar that is not full is a lie. Indeterminate fills the bar before anything has arrived. Honest crawls to 85% and only completes when the first token is real.
Waiting should already look like the answer. A spinner is a different object than the answer. A skeleton is the same box, empty, so the layout does not jump when the text lands.
The next question
Follow-up should move, not remount. The asks play with springs, then again with comfort scroll off. The words can be right and the motion can still be a jump.
A dropped link stays in this popup. The link drops, then comes back. The error and the reconnect swap inside the same box. The page does not navigate.
The answer
The mark is yours before the model speaks. The mark eases to the swatch over 550ms. The sentence does not move. Only the color does.
Reading size is a control, not a setting buried elsewhere. Six steps, from 13px to 23px. The answer eases to the new size in 320ms. The page under it stays put.
A translation should set its own direction. Spanish stays left to right. Arabic, Hebrew, and Persian set dir to rtl and align the line to the right. The popup does not swap documents.
The toolbar stays in this popup. Copy confirms on the icon you pressed. Read aloud swaps the speaker for pause bars. Regenerate clears the line, then fills the same box. Export opens from share. One row, one shell.
A citation should unfold under the sentence. Show sources and the list drops in under the sentence. Hide them and the claim stays, numbers and all.
The sentence you picked stays above the answer. A long quote truncates in the middle, half, an ellipsis, then half. It stays italic and underlined, above the answer.
On the page
The whole page can be the selection. The page button steps aside as the popup scales in on the same article. Close the popup and the button returns to its seat.
Clicking away closes the box, not the page. A click off the popup scales it out. A second click brings the same answer back. The article never changes.
A long answer gets a larger box, not a new one. The corner tracks your hand. Width and height stop at the size the box opened at, and at the edge of the stage.
A shortcut changes the mode where you already are. Z, S, T, and R swap the mode from the page. A toast confirms the chord. Nothing navigates.
The prompt editor opens inside the answer. Edit prompt swaps the answer for the template. Back returns. Reset flashes, then settles. Both stay inside the popup.
The page strip can count what you selected. Hover or click the strip. The title crossfades into a word count and a read time, then back. The popup does not resize.
Dragging the popup keeps it on the page. The header is the handle. Drag past the edge with clamp on: on release it springs back to a 12px inset. Clamp off, and it stays where you dropped it.