Every modal in the app is drawn in one template: a header bar that says what it is, the body, and a button bar. There is no ✕ in the corner. Pick a modal below; each is a real one redrawn. Press Esc or click the dimmed ground to see what each does. Ross's answers to the first round are under Decided, at the foot.
The template
Header bar. The modal's name, one line; a second, dimmer line only where the name needs its context (whose chart, which squad). Header tools (a dial's ‹ ›, Compare's Radars | Table | Scatters) go at its right. A warning modal puts the red triangle before the name.
Body. The details. It is the only part that scrolls: the header and button bars stay put however long it runs. A body never holds its own heading, or a Cancel or OK.
Button bar. Cancel bottom left, with Clear beside it where there is one; the button that accepts bottom right. One filled button (red where it removes something). Buttons take their own width, never stretched across the bar.
A modal with nothing to accept (a chart, a player, Compare, the figures behind a dial) has Close as standard: bottom right, as an outline.
Three widths. Small (420) for a question, medium (540) for a list or a form, large for one that fills the window, as Compare and an opened dial do now. The height follows the body, up to nine tenths of the window, then the body scrolls.
Closing it, with no ✕
Esc is Cancel (or Close), on every modal. The button bar always has the way out, so nothing depends on knowing the key.
Enter is the filled button, except in a box that takes several lines.
A click on the dimmed ground does nothing, on every modal. A modal is closed with a button: Cancel, or Close where there is nothing to accept.
Disabled accept rather than hidden: Import with nothing ticked stays where it is, greyed.
Where it applies
Every ModalHost modal and the chart modal (ChartModalWindow), the dashboard's overlays (Delete save, New save, Missing players, Capture result, Feedback, Database error), the overlays on Data capture and Settings, and the windows of their own (Error, Backup, Data folder, First run, Plugin not installed). Expanded tabs and the Transfer plan window are screens, not modals, and keep their Collapse.
A ✕ in the corner and a Cancel at the foot do the same thing.
The heading is inside the body, so it scrolls with it on a long list.
Cancel and Import are stretched across the modal, which docs/ui.md already rules out.
"Tick all" is a link by the heading, away from the boxes it ticks. In the template it is the list's first box, which also shows when all are ticked.
Each modal draws its own heading, gaps and button row, so no two match: the Remove season and Delete save confirms, the chart modal and the dashboard's dialogs are all a little different.
Ticks or switches in a pick list
Ticks.docs/ui.md, "Checkboxes for yes or no", already rules it: a pick is a tick (FilterCheckBox), a setting is a switch (SwitchToggle). A switch says "this is on now" and acts as it is flipped, as "Hide …" and "Include …" do. A row here does nothing until Import is pressed; it only marks the row to bring in, which is what a tick says. A column of switches also reads as a page of settings, and a switch has no "some" for the All row, where a three-state tick shows a dash. Set the Pick list to Switches above to compare. It holds in every modal: a list picked from and then accepted from the button bar is ticks; a switch belongs only where it acts at once.
Decided
A click on the dimmed ground does nothing, on every modal: a modal closes from a button.
A modal with nothing to accept has Close, an outline, bottom right, as standard.
The header and button bars are a different colour from the body, a shade up, as drawn.
A confirm's header bar asks the question ("Remove 27/28?"); the body says what follows, and the button names the act ("Remove season"). The header is read first, and the question is what the modal is; a plain "Remove season" in the bar would only repeat the button. Recommended, to confirm.
Three widths: small (420) for a question, medium (540) for a list or a form, and large, filling the window. One set of sizes keeps the modals matching; a body that needs more wraps or scrolls. Recommended, to confirm.
The windows of their own (Error, First run, Plugin not installed, Backup, Data folder) use the template too.
A stage changes the body (and the button bar) in the same modal, as New save's "This name is already in use" and Feedback's "Discard this message?" do now; no second modal over it.