/* Run page: the header with the run's path across the page, the attention notice, the tab panels (the Overview and
   what leads it, the Machines tab's map, the logs, the history along the run's line) and the run's dialogs.
   Page rules are under .page[data-page="run"] (the shell sets it), so nothing here reaches another page; the
   dialogs, which the Runs page opens too, are under .run-dialog. Tokens from styles.css only. */

.page[data-page="run"] { gap: 22px; }

/* header: the name, its state, id and project (apart by space: the id's face and the project's link tell them
   apart), the actions; the path; the command and the runtime */
.page[data-page="run"] .run-head { display: grid; gap: 12px; min-width: 0; }
.page[data-page="run"] .run-title-row { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; min-width: 0; }
.page[data-page="run"] .run-name { min-width: 0; overflow-wrap: anywhere; }
/* the state, and after it, close to it and quieter, whether money moves in it ("billed at $0.72/h"): the words go
   under the state where the line has no room for both */
.page[data-page="run"] .run-state { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.page[data-page="run"] .run-state > .badge { font-size: 14px; }
.page[data-page="run"] .run-bill { font-size: 13.5px; color: var(--ink-2); }
.page[data-page="run"] .run-ident { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; color: var(--ink-2); font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.page[data-page="run"] .run-ident .mono { color: var(--ink-3); }
.page[data-page="run"] .run-project { color: var(--ink-2); }
/* the actions keep one row; why one is off, or what was asked, is a line of its own under them */
.page[data-page="run"] .run-actions {
  display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; align-self: center;
}
.page[data-page="run"] .run-why, .page[data-page="run"] .run-said { flex-basis: 100%; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.page[data-page="run"] .run-said { color: var(--ink-2); }
/* room over the line for how far the run got, which sits over its head */
.page[data-page="run"] .run-path { padding-top: 26px; min-width: 0; }
.page[data-page="run"] .run-cmd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; min-width: 0; }
.page[data-page="run"] .run-cmd-row .cmd-box { flex: 0 1 auto; width: auto; max-width: 100%; }
.page[data-page="run"] .run-times { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.page[data-page="run"] .run-times > .fig { color: var(--ink); font-weight: 600; }
/* where the script is in its loops, after the runtime, labelled */
.page[data-page="run"] .run-loops { margin-left: 18px; white-space: nowrap; }
.page[data-page="run"] .run-loops .label { margin-right: 2px; }
.page[data-page="run"] .run-loops .fig { color: var(--ink); }
.page[data-page="run"] .run-banner .notice-text .rel { color: var(--ink-3); }
.page[data-page="run"] .run-banner .notice-error { font-size: 13px; overflow-wrap: anywhere; }
/* a run that found no capacity: what to do about it under the sentence, the command on a line of its own to copy */
.page[data-page="run"] .run-banner .capacity-again { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 8px 0 6px; max-width: 640px; }
.page[data-page="run"] .run-banner .capacity-again .cmd-box { margin: 2px 0; }
/* on the tab the notice points to, its action keeps its room unseen, so the notice and the tabs never move */
.page[data-page="run"] .run-banner .notice-here { visibility: hidden; }
.page[data-page="run"] .run-missing .empty { padding-top: 4px; }

/* tabs and their panels */
.page[data-page="run"] .run-panels { min-width: 0; padding-top: 4px; }
.page[data-page="run"] .run-panel { display: grid; gap: 40px; align-content: start; min-width: 0; }
/* what a tab's charts are made of, said under them, close */
.page[data-page="run"] .run-panel > .note { margin-top: -16px; max-width: 96ch; }
/* The first section under the tab strip opens on the strip's own rule: it has no rule of ink of its own over it. */
.page[data-page="run"] .run-block[data-lead] > .panel, .page[data-page="run"] .panel[data-lead] { border-top: 0; }
.page[data-page="run"] .run-block[data-lead] > .panel > .panel-head:first-child,
.page[data-page="run"] .panel[data-lead] > .panel-head:first-child { padding-top: 6px; }

/* overview: what leads it (the cost over the run, the progress), the machine it is on, one line of what it cost, one
   quiet line of what it asked for; for a run that ended, its figures, the cost over the run, then the end of its
   output with its details beside it; one column, each part as wide as the page */
.page[data-page="run"] .run-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-content: start; }
.page[data-page="run"] .run-block { min-width: 0; }
.page[data-page="run"] .run-cost-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 40px; align-items: start; padding-top: 12px;
}
.page[data-page="run"] .run-block[data-lead] .run-cost-grid { padding-top: 6px; }
.page[data-page="run"] .run-cost-chart { min-width: 0; }
/* the reckoning starts level with the plot's top line, the budget under it */
.page[data-page="run"] .run-cost-side { display: grid; gap: 18px; align-content: start; justify-items: start; padding-top: 58px; min-width: 0; }
/* the reckoning takes the column's width, so its open Details draws its lines across it */
.page[data-page="run"] .run-cost-side .reckoning { justify-self: stretch; max-width: 480px; font-size: 14px; row-gap: 4px; }
.page[data-page="run"] .run-cost-side > .estimate-assumptions { justify-self: stretch; max-width: 480px; }
.page[data-page="run"] .run-cost-note { font-size: 12.5px; color: var(--ink-3); max-width: 44ch; }
.page[data-page="run"] .run-progress-lead .panel-body { padding-top: 6px; }
.page[data-page="run"] .run-budget-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.page[data-page="run"] .run-budget-line > .label { font-size: 13px; }
/* what it cost, where it never moved: one sentence, its budget after it */
.page[data-page="run"] .run-money { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--rule); }
.page[data-page="run"] .run-block[data-lead] .run-money { border-top: 0; padding-top: 0; }
.page[data-page="run"] .run-money-line { color: var(--ink-2); max-width: 80ch; }
.page[data-page="run"] .run-money-line .fig { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* what it asked for: labelled words on one line that wraps, quiet */
.page[data-page="run"] .run-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-2); }
.page[data-page="run"] .run-block[data-lead] .run-facts { border-top: 0; padding-top: 0; }
.page[data-page="run"] .run-fact { min-width: 0; overflow-wrap: anywhere; }
.page[data-page="run"] .run-fact > .label { margin-right: 4px; }
.page[data-page="run"] .run-fact .mono { color: var(--ink); }
/* A run that ended opens with its figures: what it cost, then what it made of its machines, each a name over its
   figure with a second figure in words under it, on one grid of six (the cost takes two, for its sentence). A reading
   is a link to its chart on System, with its small line over the run under it: ink on a hairline floor, a dashed
   hairline where the reading has a limit. */
.page[data-page="run"] .run-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 36px; align-items: start; padding-top: 8px; }
/* the row keeps its height while the samples are on their way, so nothing under it moves when they come */
.page[data-page="run"] .run-figs { min-height: 116px; }
.page[data-page="run"] .run-figs-note { margin-top: 10px; }
.page[data-page="run"] .run-fig { display: grid; gap: 4px; align-content: start; min-width: 0; color: inherit; text-decoration: none; }
.page[data-page="run"] .run-fig-cost { grid-column: span 2; }
.page[data-page="run"] .run-fig-label { font-size: 12.5px; color: var(--ink-3); }
.page[data-page="run"] .run-fig-value { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.page[data-page="run"] .run-fig-sub { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 40ch; text-wrap: pretty; font-variant-numeric: tabular-nums; }
/* a reading's second line keeps to one line, so the small lines of a row stand level at every width */
.page[data-page="run"] .run-fig-use .run-fig-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page[data-page="run"] .run-spark-floor { position: relative; display: block; height: 30px; margin-top: 10px; border-bottom: 1px solid var(--rule-2); }
.page[data-page="run"] .run-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.page[data-page="run"] .run-spark path { fill: none; vector-effect: non-scaling-stroke; }
.page[data-page="run"] .run-spark-line { stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.page[data-page="run"] .run-spark-limit { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 3 3; }

/* Waiting. What is on its way waits in its place, in the shape it will have, and moves as the console's waiting
   line does: a short piece of ink travels along a track. A reading waits as its name, a block where its figure will
   stand and its floor with the ink travelling along it; lines of output as bars of a log's uneven lengths, dimming
   in turn down the box; a chart as its title over an empty plot. When the answer lands it takes the place: figures
   rise into it one after the other, each small line is drawn from its start, and lines of output come as if
   printed. All of it stands still for a person who asked for less motion (styles.css). */
@keyframes run-ink-travel { from { transform: translateX(-100%); } to { transform: translateX(var(--travel, 500%)); } }
@keyframes run-wait-dim { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
@keyframes run-line-draw { from { clip-path: inset(-6px 100% -6px 0); } to { clip-path: inset(-6px -2px -6px 0); } }
.page[data-page="run"] .run-wait-block { display: inline-block; border-radius: var(--radius); background: var(--paper-3);
  animation: run-wait-dim 1.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms); }
.page[data-page="run"] .run-fig-value .run-wait-block { width: 84px; height: 25px; vertical-align: -4px; }
.page[data-page="run"] .run-fig-sub .run-wait-block { width: 104px; height: 9px; }
.page[data-page="run"] .run-fig-wait .run-fig-label { color: var(--ink-3); }
.page[data-page="run"] .run-spark-wait, .page[data-page="run"] .run-plot-wait { overflow: hidden; }
.page[data-page="run"] .run-spark-wait::after, .page[data-page="run"] .run-plot-wait::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 22%; height: 2px; border-radius: var(--radius-cap); background: var(--ink-2);
  --travel: 455%; animation: run-ink-travel 1.7s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i, 0) * 140ms);
}
/* arriving: the figures rise into their places, and each line is drawn along its floor */
.page[data-page="run"] .run-figs[data-arrive] .run-fig-use .run-fig-value,
.page[data-page="run"] .run-figs[data-arrive] .run-fig-use .run-fig-sub {
  animation: disclose-rise 460ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.page[data-page="run"] .run-figs[data-arrive] .run-spark { animation: run-line-draw 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
/* lines on their way, in the log's own box */
.page[data-page="run"] .run-wait-log { max-height: none; overflow: hidden; }
.page[data-page="run"] .run-wait-row { display: flex; align-items: center; height: 1.6em; padding: 0 14px; }
.page[data-page="run"] .run-wait-line { display: block; height: 7px; border-radius: var(--radius); background: var(--rule-2);
  animation: run-wait-dim 1.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 110ms); }
.page[data-page="run"] .log-wait { padding: 0; }
.page[data-page="run"] .log-wait .run-wait-log { padding: 0; background: none; }
.page[data-page="run"] .run-tail[data-arrive] .log-line { animation: disclose-rise 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
/* a chart on its way: its title over an empty plot as tall as a chart's, the ink travelling along its floor */
.page[data-page="run"] .run-chart-wait { display: grid; gap: 10px; }
.page[data-page="run"] .run-plot-wait { position: relative; display: block; height: 200px; border-bottom: 1px solid var(--rule-2);
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 50px); }
.page[data-page="run"] .run-plot-wait::after { width: 12%; --travel: 834%; }
.page[data-page="run"] .run-charts[data-arrive] > .panel { animation: disclose-rise 460ms var(--ease-out) both; }
.page[data-page="run"] .run-charts[data-arrive] > .panel:nth-child(2) { animation-delay: 60ms; }
.page[data-page="run"] .run-charts[data-arrive] > .panel:nth-child(3) { animation-delay: 120ms; }
.page[data-page="run"] .run-charts[data-arrive] > .panel:nth-child(4) { animation-delay: 180ms; }
/* The run itself on its way: the waiting line is the run's path before it is known, a rule across the page with the
   ink travelling along it, and its words under it. It stands where the path will. The shell's own words, once the
   gateway cannot be reached, are set as they are everywhere. */
.page[data-page="run"] > .loading:not([data-loading="unreachable"]) { display: grid; gap: 12px; align-items: start; justify-items: start;
  min-height: 48px; padding-top: 26px; color: var(--ink-3); font-size: 13px; }
.page[data-page="run"] > .loading:not([data-loading="unreachable"]) .loading-track { width: 100%; height: 3px; overflow: hidden; border-radius: var(--radius-cap); }
.page[data-page="run"] > .loading:not([data-loading="unreachable"]) .loading-track::before { top: 0; width: 100%; height: 3px; }
.page[data-page="run"] > .loading:not([data-loading="unreachable"]) .loading-track::after {
  top: 0; width: 16%; height: 3px; background: var(--ink); --travel: 625%; animation: run-ink-travel 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
.page[data-page="run"] .run-fig-use:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (hover: hover) {
  .page[data-page="run"] .run-fig-use:hover .run-fig-label { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}
/* What its program said of its result, first on the page: each name over its value on one grid. A number, and true
   or false, is a figure; a string is the words it is, and a long one takes the room of two. Under it the run's own
   figures open on a hairline, since they no longer open on the tab strip's rule. */
.page[data-page="run"] .run-result .panel-body { padding-top: 8px; }
.page[data-page="run"] .run-result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 36px; margin: 0; }
.page[data-page="run"] .run-result-item { display: grid; gap: 4px; align-content: start; min-width: 0; }
.page[data-page="run"] .run-result-item[data-wide] { grid-column: span 2; }
.page[data-page="run"] .run-result-item dt { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.page[data-page="run"] .run-result-item dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.page[data-page="run"] .run-result-item[data-kind="figure"] dd { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.012em;
  font-variant-numeric: tabular-nums; }
.page[data-page="run"] .run-result-item[data-kind="text"] dd { font-size: 14px; line-height: 1.5; padding-top: 3px; }
.page[data-page="run"] .run-block-record:not([data-lead]) .run-figs { padding-top: 28px; border-top: 1px solid var(--rule); }
@media (max-width: 599px) {
  .page[data-page="run"] .run-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .page[data-page="run"] .run-result-item[data-kind="figure"] dd { font-size: 20px; }
}
/* the end of its output, as the log draws it, and the way to the whole log on the title's line */
.page[data-page="run"] .run-tail { max-height: none; overflow: visible; }
.page[data-page="run"] .run-tail .log-text { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.page[data-page="run"] .run-last .panel-body { padding-top: 2px; }
.page[data-page="run"] .run-last .meta a { color: var(--ink-2); font-size: 13px; }
.page[data-page="run"] .run-tail-none { padding: 4px 0; }
/* The end of its output and, beside it, its details: two columns where the page has the room, the output the wider;
   one under the other below that. With no output to show, the details stand alone at their own measure. */
.page[data-page="run"] .run-after { display: grid; grid-template-columns: minmax(0, 5fr) minmax(300px, 3fr); gap: 36px 48px; align-items: start; }
.page[data-page="run"] .run-after[data-alone] { grid-template-columns: minmax(0, 560px); }
.page[data-page="run"] .run-details .panel-body { padding-top: 2px; }
/* One list on one grid: a label, what it says, and for a time how long after the moment before. Its times first,
   then, under a hairline, its facts, whose values take the room of both columns. */
.page[data-page="run"] .run-rows { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 8px 16px;
  margin: 0; font-size: 13.5px; }
.page[data-page="run"] .run-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.page[data-page="run"] .run-row dt { color: var(--ink-3); font-stretch: var(--label-stretch); font-weight: 500; white-space: nowrap; }
.page[data-page="run"] .run-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.page[data-page="run"] .run-moment dd.fig { white-space: nowrap; }
.page[data-page="run"] .run-row dd.run-row-note { color: var(--ink-3); font-size: 12.5px; }
.page[data-page="run"] .run-fact-row dd { grid-column: 2 / -1; }
.page[data-page="run"] .run-fact-row[data-first] { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
/* its files: the archive to download and, under it, the line that unpacks it behind its disclosure, which opens in
   place (the button over it does not move); a run on several machines has a button for each, side by side */
.page[data-page="run"] .run-files { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.page[data-page="run"] .run-files-each { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.page[data-page="run"] .run-unpack { min-width: 0; max-width: 100%; font-size: 13px; color: var(--ink-2); }
.page[data-page="run"] .run-unpack > summary { width: fit-content; cursor: pointer; }
.page[data-page="run"] .run-unpack[open] > summary { margin-bottom: 6px; }
.page[data-page="run"] .run-unpack > p { margin: 0 0 4px; font-size: 12.5px; }
.page[data-page="run"] .run-unpack .cmd-box { width: auto; max-width: 100%; }
/* (an archive is named after its run, and a run's ID is longer than a narrow rail: the name breaks where it must) */
.page[data-page="run"] .run-unpack .cmd-word { white-space: normal; overflow-wrap: anywhere; }
/* under 1280px the output has the page's width, a log's lines being long, and the details come under it */
@media (max-width: 1279px) {
  .page[data-page="run"] .run-after { grid-template-columns: minmax(0, 1fr); }
  .page[data-page="run"] .run-after .run-details { max-width: 560px; }
}
@media (max-width: 1099px) {
  .page[data-page="run"] .run-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; min-height: 0; }
  .page[data-page="run"] .run-fig-cost { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .page[data-page="run"] .run-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
  .page[data-page="run"] .run-fig-value { font-size: 24px; }
}
/* the machine's readings are as old as the last answer while the console cannot reach the gateway, or its daemon
   does not answer */
.page[data-page="run"][data-stale] .run-now .panel-body, .page[data-page="run"] .run-now[data-unseen] .run-now-use { opacity: .5; }
.page[data-page="run"] .run-now-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-weight: 600; }
.page[data-page="run"] .run-now-rate { font-weight: 400; color: var(--ink-2); }
.page[data-page="run"] .run-now-use { margin-top: 14px; gap: 6px 28px; }
.page[data-page="run"] .run-now-node { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; font-size: 13.5px; }
.page[data-page="run"] .run-now-fact { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; }
.page[data-page="run"] .run-now-fact .label { font-size: 13px; }
.page[data-page="run"] .run-node { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
/* a run of several ranks and its checkpoints: a line of figures as the machine's, then one sentence of what a failure
   now does (in the warning's ink before the first checkpoint, when that is the work lost); suspended on its last one,
   what to do under labels, each sentence held to a measure */
.page[data-page="run"] .run-ckpt-figs { gap: 6px 28px; }
.page[data-page="run"] .run-ckpt-say { margin-top: 12px; max-width: 76ch; font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="run"] .run-ckpt-say[data-tone="warn"] { color: var(--warn); }
.page[data-page="run"] .run-ckpt-failed { margin-top: 6px; max-width: 76ch; overflow-wrap: anywhere; }
/* what sending a checkpoint costs: a note under what a failure does, set as the section's other note is */
.page[data-page="run"] .run-ckpt-sending { margin-top: 6px; max-width: 76ch; overflow-wrap: anywhere; text-wrap: pretty; }
.page[data-page="run"] .run-ckpt-flag { color: var(--warn); font-weight: 600; }
.page[data-page="run"] .run-ckpt .kv { margin-top: 18px; max-width: 92ch; gap: 10px 28px; }
.page[data-page="run"] .run-ckpt .kv dd { overflow-wrap: break-word; text-wrap: pretty; color: var(--ink-2); }
/* Stop and Suspend ask before they act: what happens in ink, a line of figures, then what is billed until when */
.run-ask .dialog-body { gap: 12px; }
.run-ask .run-ask-lead { text-wrap: pretty; }
.run-ask .run-ask-lead code { font-size: 13px; }
.run-ask .run-ask-figures .facts { gap: 4px 24px; }
.run-ask .run-ask-figures .cell-fact { font-variant-numeric: tabular-nums; font-weight: 550; }
.run-ask .run-ask-billed { font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
/* Run again: where to run it, the command, and what a run does not keep */
.run-again .dialog-body { gap: 12px; }
.run-again .cmd-box { width: auto; max-width: 100%; }
.run-again .run-again-note { font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
/* the notes a resume opens with: what it asks after out of memory, a checkpoint that is not confirmed */
.run-dialog .run-resume-notes { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="run"] .run-error { color: var(--bad); overflow-wrap: anywhere; }
.page[data-page="run"] .run-budget { display: inline-flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-width: 0; margin: -3px 0; }
.page[data-page="run"] .run-budget .progress { min-width: 0; }
.page[data-page="run"] .run-budget .btn-sm { margin-left: -6px; }

/* charts and system: the grid's halves, each chart under its rule */
.page[data-page="run"] .run-charts { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 44px 40px; }
.page[data-page="run"] .chart-panel { display: flex; flex-direction: column; }
.page[data-page="run"] .chart-panel .panel-body { flex: 1; padding: 12px 0 0; }
/* a move's time down in its row of the list: a bar on the scale of the run's longest, the paused part in ink inside
   it (the row's facts say the figures) */
.page[data-page="run"] .run-pause-bar { position: relative; display: block; width: min(100%, 320px); height: 6px; margin: 6px 0 4px; }
.page[data-page="run"] .run-pause-bar > i { position: absolute; left: 0; top: 0; bottom: 0; display: block; }
.page[data-page="run"] .run-pause-down { background: var(--rule-2); }
.page[data-page="run"] .run-pause-paused { background: var(--ink); }
.page[data-page="run"] .run-pause-bar[data-off] .run-pause-paused { background: var(--bad); }

.page[data-page="run"] .log-toolbar {
  position: sticky; top: var(--topbar-h); z-index: 12;
  gap: 8px 16px; padding: 10px 0; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.page[data-page="run"] .log-search { flex: 1 1 200px; max-width: 360px; display: flex; align-items: center; gap: 10px; }
.page[data-page="run"] .log-search input { flex: 1; min-width: 0; }
.page[data-page="run"] .log-clear { flex: none; font-size: 12.5px; color: var(--ink-2); }
.page[data-page="run"] .log-tools,
.page[data-page="run"] .log-navigation,
.page[data-page="run"] .log-view-tools { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.page[data-page="run"] .log-tools { margin-left: auto; }
.page[data-page="run"] .log-toolbar .btn { min-height: 30px; height: 30px; padding: 0 10px; font-size: 12.5px; }
.page[data-page="run"] .log-toolbar .word-toggle { font-size: 12.5px; }
.page[data-page="run"] .log-status { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.page[data-page="run"] .run-log {
  flex: 1 1 0; min-height: var(--log-least); max-height: none; overflow: auto; border: 1px solid var(--rule);
}
.page[data-page="run"] .run-log:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The output is read in a box of its own, which takes what the window has left under the run's head: opening it
   moves the box to its place and leaves the page where it is. Every box from the page's down to it hands its spare
   height on; the box itself asks for none, so a long log makes no page longer. In a window too short for its least
   height the page scrolls that much, and the controls stay beside the lines being read. */
.content:has(> .page[data-page="run"] > .run-panels > .run-panel[data-tab="logs"]:not([hidden])) {
  display: flex; flex-direction: column; padding-bottom: 24px;
}
.page[data-page="run"]:has(> .run-panels > .run-panel[data-tab="logs"]:not([hidden])) {
  --log-least: 320px;
  flex: 1 1 auto; display: flex; flex-direction: column;
}
.page[data-page="run"] .run-panels:has(> .run-panel[data-tab="logs"]:not([hidden])),
.page[data-page="run"] .run-panel[data-tab="logs"]:not([hidden]),
.page[data-page="run"] .run-log-block { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.page[data-page="run"] .log-foot { scroll-margin-bottom: 16px; }
.page[data-page="run"] .log-block {
  content-visibility: auto;
  contain-intrinsic-block-size: auto calc(var(--log-block-lines, 250) * 20px);
}
.page[data-page="run"] .run-log .log-text { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* When a line arrived: off until asked for, never part of a selection or a copy. A line from stderr says so on its
   number, the one place a log wears the error colour. */
.page[data-page="run"] .run-log .lt {
  display: none; flex: none; width: 8ch; color: var(--ink-3); font-variant-numeric: tabular-nums; user-select: none;
}
.page[data-page="run"] .run-log[data-times="true"] .lt { display: inline-block; }
.page[data-page="run"] .run-log .log-line[data-stream="stderr"] .ln { color: var(--bad); }
/* A line's number is the link to the line: quiet, as it was, until it is pointed at or has the keyboard. The line
   an address names wears an ink edge and the tint of a selection; what the filter matched is marked in its line,
   in the same tint over a line of ink. One Copy serves every line: at the end of the line it is on, over that line's
   own ground, never part of a selection or a copy. */
.page[data-page="run"] .run-log .log-line { position: relative; }
.page[data-page="run"] .run-log a.ln { text-decoration: none; }
.page[data-page="run"] .run-log a.ln:focus-visible { outline-offset: 0; }
@media (hover: hover) {
  .page[data-page="run"] .run-log a.ln:hover { text-decoration: underline; text-decoration-color: currentColor; }
  .page[data-page="run"] .run-log .log-line:hover { --line-tint: var(--wash); background: var(--wash); }
}
.page[data-page="run"] .run-log .log-line[data-here] { --line-tint: var(--select); background: var(--select); box-shadow: inset 2px 0 0 var(--ink); }
.page[data-page="run"] .run-log .log-line[data-here] .ln { font-weight: 600; }
.page[data-page="run"] .run-log .log-line[data-here]:not([data-stream]) .ln { color: var(--ink); }
.page[data-page="run"] .run-log mark { background: var(--select); color: inherit; box-shadow: inset 0 -1.5px 0 var(--ink); }
.page[data-page="run"] .log-line-tools {
  position: absolute; top: 0; right: 6px; display: inline-flex; align-items: center; height: 1.6em; padding-left: 6px;
  background: linear-gradient(var(--line-tint, transparent), var(--line-tint, transparent)), var(--paper-2); user-select: none;
}
.page[data-page="run"] .log-line-tools .copy-btn {
  position: relative; height: 18px; min-height: 0; min-width: 0; padding: 0 6px; font-family: var(--font-sans); font-size: 12px;
}
.page[data-page="run"] .log-line-tools .copy-btn::after { content: ""; position: absolute; inset: -11px -4px; }
@media (hover: hover) { .page[data-page="run"] .log-line-tools .copy-btn:hover { background: var(--select); } }
.page[data-page="run"] .run-log[data-wrap="false"] .log-line { min-width: max-content; white-space: pre; }
.page[data-page="run"] .run-log[data-wrap="false"] .log-text { flex: none; white-space: pre; overflow-wrap: normal; }
.page[data-page="run"] .run-log[data-wrap="false"] .ln {
  position: sticky; left: 0; background: linear-gradient(var(--line-tint, transparent), var(--line-tint, transparent)), var(--paper-2);
}
/* lines that run on to the side: the line's Copy keeps to the screen's edge, as its number does, and nothing of the
   line shows past it */
.page[data-page="run"] .run-log[data-wrap="false"] .log-line-tools {
  position: sticky; top: auto; right: 0; flex: none; margin-left: auto; padding-right: 6px;
}
.page[data-page="run"] .log-none { padding: 0 14px; color: var(--ink-3); font-family: var(--font-sans); font-size: 13.5px; }
.page[data-page="run"] .log-foot { font-variant-numeric: tabular-nums; }
.page[data-page="run"] .log-error { color: var(--bad); }
.page[data-page="run"][data-log-focus] .run-head,
.page[data-page="run"][data-log-focus] .run-banner { display: none; }
@media (max-width: 599px) {
  .page[data-page="run"] .log-toolbar { gap: 6px 12px; padding: 8px 0; }
  .page[data-page="run"] .log-search { flex-basis: 100%; max-width: none; }
  .page[data-page="run"] .log-status { order: 3; flex: 1 1 90px; min-width: 0; }
  .page[data-page="run"] .log-tools { order: 4; gap: 4px; }
  .page[data-page="run"] .run-log .log-line { gap: 8px; padding: 0 8px; }
  .page[data-page="run"] .run-log .ln { width: 4ch; }
}

/* machines: the map, then the machines and the attempts without Fluid. Where a section is narrower than its table,
   the table keeps the machine (its name breaking between its parts) and its cost and reads the rest under it. */
.page[data-page="run"] .run-map { padding: 14px 0 20px; }
.page[data-page="run"] .run-machine { display: inline-flex; align-items: flex-start; gap: 10px; }
.page[data-page="run"] .run-machine .pline { margin-top: calc(.75em - 1.5px); }
.page[data-page="run"] .run-machine-words { white-space: normal; }
.page[data-page="run"] .run-allocation { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.move-comparison { display: grid; gap: 4px; min-width: 0; margin: 5px 0; font-size: 12.5px; font-weight: 400; }
.move-comparison p { margin: 0; overflow-wrap: anywhere; }
.move-endpoints { color: var(--ink-2); }
.move-changes { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.move-changes dt { color: var(--ink-3); }
.move-changes dd { display: flex; flex-wrap: wrap; gap: 0 7px; margin: 0; color: var(--ink); }
.move-before, .move-shared, .move-unknown { color: var(--ink-3); }
.move-changes strong { font-weight: 550; }
.move-readout { margin-top: 4px; min-width: 0; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.move-readout summary { cursor: pointer; width: fit-content; }
.move-readout code { display: block; margin: 4px 0; overflow-wrap: anywhere; }
/* a move's ID to copy, on its line under its disclosure */
.move-readout .copy-id { display: block; margin: 4px 0; }
.move-readout .copy-id code { display: inline; margin: 0; }
/* How this is reckoned: each term in the label face beside its sentence, under hairlines; a phone stacks them */
.estimate-assumptions { font-size: 12.5px; }
.estimate-terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; margin: 10px 0 0;
  border-top: 1px solid var(--rule); }
.estimate-terms > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.estimate-terms dt { color: var(--ink-2); font-weight: 550; font-stretch: var(--label-stretch); }
.estimate-terms dd { margin: 0; color: var(--ink-3); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 599px) {
  .estimate-terms { grid-template-columns: minmax(0, 1fr); }
  .estimate-terms > div { row-gap: 3px; }
}
.page[data-page="run"] .run-fold-box { container: run-fold / inline-size; }
@container run-fold (max-width: 819px) {
  .page[data-page="run"] .table td.col-fold, .page[data-page="run"] .table th.col-fold { display: none; }
  .page[data-page="run"] .cell-fold {
    display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; margin-top: 2px;
    font: 400 12.5px/1.45 var(--font-sans); color: var(--ink-2); white-space: normal;
  }
  .page[data-page="run"] .table td:has(.cell-fold) { padding-top: 7px; padding-bottom: 7px; height: auto; white-space: normal; }
}
/* The saving's table has nine columns, which need more room than the machines' over it: under 1040px the machine
   and what it paid stay, and who chose it, its standard and reference prices and its times read under the machine,
   each fact whole where the line has the room and wrapped where it has not (a phone). */
.page[data-page="run"] .run-saved-box { container: run-saved / inline-size; }
@container run-saved (max-width: 1039px) {
  .page[data-page="run"] .table td.col-fold, .page[data-page="run"] .table th.col-fold { display: none; }
  .page[data-page="run"] .cell-fold {
    display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 1px; margin-top: 2px;
    font: 400 12.5px/1.45 var(--font-sans); color: var(--ink-2); white-space: normal;
  }
  .page[data-page="run"] .cell-fold .cell-fact { white-space: normal; }
  .page[data-page="run"] .table td:has(.cell-fold) { padding-top: 7px; padding-bottom: 7px; height: auto; white-space: normal; }
}

/* what happened, under the run's machines: one list, newest first, along the run's line turned on its side. Each row's stretch of the rail is in the
   colour of the machine the run was on then (dotted while it waited, none before it began or after it ended); an
   interchange marks a move, a cross a move that did not land, a small stop anything else. */
.page[data-page="run"] .timeline { display: grid; min-width: 0; }
.page[data-page="run"] .tl-row {
  display: grid; grid-template-columns: 92px 18px minmax(112px, 156px) minmax(0, 1fr); gap: 0 16px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid var(--rule); line-height: 20px;
}
.page[data-page="run"] .tl-row:last-child { border-bottom: 0; }
/* a row's time is its hour, with the day before it where the day is new: set to the right, so the hours stand in a column */
.page[data-page="run"] .tl-time { color: var(--ink-3); font-size: 13px; white-space: nowrap; text-align: right; }
.page[data-page="run"] .st-day { margin-right: 3px; }
.page[data-page="run"] .tl-kind { font-size: 13.5px; font-weight: 550; font-stretch: var(--label-stretch); color: var(--ink-2); overflow-wrap: anywhere; }
.page[data-page="run"] .tl-kind[data-tone="bad"] { color: var(--bad); }
.page[data-page="run"] .tl-kind[data-tone="warn"] { color: var(--warn); }
.page[data-page="run"] .tl-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.page[data-page="run"] .tl-move { color: var(--ink-3); }
.page[data-page="run"] .tl-sub { display: grid; justify-items: start; font-size: 12.5px; color: var(--ink-3); line-height: 18px; }
.page[data-page="run"] .tl-why { display: block; color: var(--ink-2); }
.page[data-page="run"] .tl-kept { display: block; color: var(--ink-2); }
.page[data-page="run"] .run-happened > .note { margin: 12px 0 0; max-width: 96ch; }
/* the rail spans the row's whole height, through its hairline, so the line runs on from row to row */
.page[data-page="run"] .tl-rail { position: relative; align-self: stretch; margin: -10px 0 -11px; }
.page[data-page="run"] .tl-rail::before, .page[data-page="run"] .tl-rail::after { content: ""; position: absolute; left: 7.5px; width: 3px; }
.page[data-page="run"] .tl-rail::before { top: 0; height: 20px; background: var(--above, var(--ink-4)); }
.page[data-page="run"] .tl-rail::after { top: 20px; bottom: 0; background: var(--below, var(--ink-4)); }
.page[data-page="run"] .tl-rail[data-above="wait"]::before, .page[data-page="run"] .tl-rail[data-below="wait"]::after {
  background: radial-gradient(circle, var(--ink-4) 1.2px, transparent 1.7px) 50% 1px / 3px 6px repeat-y;
}
.page[data-page="run"] .tl-rail[data-above="none"]::before, .page[data-page="run"] .tl-rail[data-below="none"]::after { display: none; }
.page[data-page="run"] .tl-rail > i { position: absolute; left: 9px; top: 20px; transform: translate(-50%, -50%); display: block; box-sizing: border-box; }
.page[data-page="run"] .tl-rail[data-mark="stop"] > i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-2); }
.page[data-page="run"] .tl-rail[data-mark="move"] > i { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); }
.page[data-page="run"] .tl-rail[data-mark="spur"] > i { width: 12px; height: 12px; }
.page[data-page="run"] .tl-rail[data-mark="spur"] > i::before, .page[data-page="run"] .tl-rail[data-mark="spur"] > i::after {
  content: ""; position: absolute; left: 5px; top: -1px; width: 2px; height: 14px; border-radius: var(--radius-cap); background: var(--bad);
  transform: rotate(45deg);
}
.page[data-page="run"] .tl-rail[data-mark="spur"] > i::after { transform: rotate(-45deg); }

/* A compute job's list is the states it was in, oldest first (run-story.js): when each began, what happened in a
   few words, how long it lasted, then what the words cannot say. The lengths stand in a column of their own, so the
   eye runs down them. The rail is the job's line turned on its side: solid in ink while the program computed, dotted
   while it did not, which is the time that was not billed. Three weights: a change of region and the end are the
   moments, the stretches computed are the body, and a start or a plain pause recedes. */
.page[data-page="run"] .st-row { position: relative; grid-template-columns: 92px 18px minmax(0, 15rem) 6.5rem minmax(0, 1fr); padding: 11px 0; }
.page[data-page="run"] .st-title { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.page[data-page="run"] .st-len { text-align: right; color: var(--ink-2); white-space: nowrap; }
.page[data-page="run"] .st-note { color: var(--ink-3); font-size: 13px; min-width: 0; overflow-wrap: anywhere; padding-left: 12px; }
.page[data-page="run"] .st-row[data-state="running"] :is(.st-title, .st-len) { color: var(--ink); }
.page[data-page="run"] .st-row[data-state="ended"] .st-title { color: var(--ink); font-weight: 600; }
.page[data-page="run"] .st-row[data-state="carried"] .st-title { color: var(--ink); font-weight: 550; }
.page[data-page="run"] .st-lead { color: var(--ink-2); }
/* its row under the pointer, and the row whose part of the line over the list is under it */
.page[data-page="run"] .st-row::before {
  content: ""; position: absolute; inset: 0 -10px; border-radius: var(--radius); background: var(--ink); opacity: 0;
  transition: opacity 120ms ease; pointer-events: none;
}
.page[data-page="run"] .st-row:not(.st-fold):hover::before, .page[data-page="run"] .st-row[data-lit]::before { opacity: 0.045; }
/* The rail's marks stand only where the line changes: a dot where the job started, a ring where the program paused or
   the job was suspended, a diamond where it continued in another region, and at the end the glyph the state wears (a bar
   for a run that finished, a square for one stopped, a cross for one that failed). A stretch computed has none: the
   solid line begins at its row. The state the job is in wears the disc a live run's path ends in. */
.page[data-page="run"] .st-row .tl-rail { margin: -11px 0 -12px; }
.page[data-page="run"] .st-row .tl-rail::before { height: 21px; }
.page[data-page="run"] .st-row .tl-rail::after { top: 21px; }
.page[data-page="run"] .st-row .tl-rail > i { top: 21px; }
.page[data-page="run"] .tl-rail[data-mark="starting"] > i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px var(--paper); }
.page[data-page="run"] .tl-rail:is([data-mark="paused"], [data-mark="suspended"]) > i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-2); }
.page[data-page="run"] .tl-rail[data-mark="carried"] > i { width: 9px; height: 9px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); transform: translate(-50%, -50%) rotate(45deg); }
.page[data-page="run"] .tl-rail[data-mark="running"][data-live] > i { width: 11px; height: 11px; border-radius: 50%; background: var(--below, var(--ink)); box-shadow: 0 0 0 2px var(--paper); }
.page[data-page="run"] .tl-rail[data-mark^="end-"] > i { width: 13px; height: 3px; border-radius: var(--radius-cap); background: var(--ink); }
.page[data-page="run"] .tl-rail[data-mark="end-stopped"] > i { width: 9px; height: 9px; border-radius: 0; }
.page[data-page="run"] .tl-rail[data-mark="end-failed"] > i, .page[data-page="run"] .tl-rail[data-mark="end-lost"] > i { width: 12px; height: 12px; background: none; }
.page[data-page="run"] .tl-rail:is([data-mark="end-failed"], [data-mark="end-lost"]) > i::before,
.page[data-page="run"] .tl-rail:is([data-mark="end-failed"], [data-mark="end-lost"]) > i::after {
  content: ""; position: absolute; left: 5px; top: -1px; width: 2px; height: 14px; border-radius: var(--radius-cap); background: var(--bad);
  transform: rotate(45deg);
}
.page[data-page="run"] .tl-rail:is([data-mark="end-failed"], [data-mark="end-lost"]) > i::after { transform: rotate(-45deg); }
.page[data-page="run"] .st-row[data-state="ended"]:has([data-mark="end-failed"], [data-mark="end-lost"]) .st-title { color: var(--bad); }
/* An own-cloud run's list has the same rows, with its machines by name, so its words get more room. Between its
   states stand what its policies decided and what else happened, each one quiet line: its kind as a label before its
   sentence (or as the sentence's own first word where the two are the same), a small dot on the rail. Under a row,
   what there is more to know of it (a move's machines compared, its figures, its why). */
.page[data-page="run"] .timeline.own .st-row { grid-template-columns: 92px 18px minmax(0, 24rem) 6.5rem minmax(0, 1fr); }
.page[data-page="run"] .st-row > .tl-text { grid-column: 3 / -1; display: block; color: var(--ink-2); font-size: 13.5px; }
.page[data-page="run"] .st-row > .tl-sub { grid-column: 3 / -1; margin-top: 3px; }
.page[data-page="run"] .st-row .tl-kind { margin-right: 10px; font-size: 12.5px; color: var(--ink-3); }
.page[data-page="run"] .st-row .tl-kind[data-tone="bad"] { color: var(--bad); }
.page[data-page="run"] .st-row .tl-kind[data-tone="warn"] { color: var(--warn); }
.page[data-page="run"] .st-row .tl-kind[data-lead] { margin-right: 0; font: inherit; color: inherit; }
.page[data-page="run"] .st-row .tl-kind[data-lead][data-tone="bad"] { color: var(--bad); }
.page[data-page="run"] .st-row .tl-kind[data-lead][data-tone="warn"] { color: var(--warn); }
.page[data-page="run"] .st-row[data-state="moved"] .st-title { color: var(--ink); font-weight: 600; }
.page[data-page="run"] .st-row:is([data-state="suspended"], [data-state="failed"]) .st-title { color: var(--ink); font-weight: 550; }
.page[data-page="run"] .st-row[data-state="ended"][data-tone="bad"] .st-title { color: var(--bad); }
/* a move that landed says where to in its title, and the row over it where from: its two machines are not said again */
.page[data-page="run"] .st-row[data-state="moved"] .move-endpoints { display: none; }
.page[data-page="run"] .tl-rail[data-mark="none"] > i { display: none; }
.page[data-page="run"] .tl-rail[data-mark="tick"] > i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 2px var(--paper); }
/* what a long list folds, as one row: the line there is left out, three dots in its place, beside the press that
   unfolds it */
.page[data-page="run"] .tl-rail[data-mark="fold"]:not([data-through])::before, .page[data-page="run"] .tl-rail[data-mark="fold"]:not([data-through])::after { display: none; }
.page[data-page="run"] .tl-rail[data-mark="fold"] > i {
  width: 4px; height: 18px; background: radial-gradient(circle, var(--ink-2) 1.6px, transparent 2px) 50% 0 / 4px 7px repeat-y;
}
/* (an own-cloud run's fold is of what was said while it ran on a machine: the dots stand on the paper, in the line) */
.page[data-page="run"] .tl-rail[data-mark="fold"][data-through] > i { background-color: var(--paper); box-shadow: 0 0 0 3px var(--paper); }
.page[data-page="run"] .st-fold-kinds { margin-left: 12px; color: var(--ink-3); font-size: 13px; }
.page[data-page="run"] .st-row[data-unfolded] { animation: disclose-rise 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
.page[data-page="run"] .st-row:focus { outline: none; }
/* the state the job is in: its line runs on past its row's end and fades, and a ring leaves its mark twice as the
   list arrives, then rests (a mark that moved for hours would be motion nobody can stop) */
.page[data-page="run"] .st-row[data-open] .tl-rail::after { bottom: 6px; mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.page[data-page="run"] .story[data-arrive] .st-row[data-open] .tl-rail > i::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink-3); opacity: 0;
  animation: st-breathe 2.4s var(--ease-out) 420ms 2;
}
@keyframes st-breathe { 0% { transform: scale(.55); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
/* the list as it arrives: each row rises in its turn, once */
.page[data-page="run"] .story[data-arrive] > .st-row { animation: disclose-rise 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .page[data-page="run"] .story[data-arrive] > .st-row, .page[data-page="run"] .st-row[data-unfolded],
  .page[data-page="run"] .story[data-arrive] .st-row[data-open] .tl-rail > i::after { animation: none; }
}

/* the run's dialogs, here and on the Runs page: a machine is named with its provider's line, the colour its
   segment of the path would wear */
.run-dialog .plan-route { display: grid; gap: 8px; }
/* a label, the machine's line, then its name and price as one run of text that wraps under itself */
.run-dialog .plan-line {
  display: grid; grid-template-columns: 56px 18px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: start;
  line-height: 20px; color: var(--ink);
}
.run-dialog .plan-line > .pline { margin-top: 8.5px; }
.run-dialog .plan-label { font-size: 13px; font-weight: 500; font-stretch: var(--label-stretch); color: var(--ink-3); }
.run-dialog .plan-what { min-width: 0; overflow-wrap: anywhere; }
.run-dialog .plan-name { font-weight: 600; }
.run-dialog .plan-rate { color: var(--ink-2); margin-left: 4px; white-space: nowrap; }
.run-dialog .plan-sub-inline { grid-column: 3; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.run-dialog .plan-pick .pline { margin-left: 2px; }
.run-dialog .plan-more[data-tone="warn"] { color: var(--warn); }
/* beside Move, the choice in figures: its machine and rate, the rate against now, what sending its state costs */
.run-dialog .plan-foot { min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.run-dialog .plan-foot[hidden] { display: none; }
.run-dialog .plan-foot .facts { gap: 0 14px; }
.run-dialog .plan-foot-name { font-weight: 600; color: var(--ink); }
.run-dialog.move-dialog .dialog-actions { flex: none; }
@media (max-width: 599px) {
  /* a phone: the figures over the buttons, each on the dialog's width */
  .run-dialog.move-dialog .dialog-foot { flex-wrap: wrap; }
  .run-dialog .plan-foot { flex: 1 1 100%; }
}
.run-dialog .plan-status { font-variant-numeric: tabular-nums; }

/* the reckoning stays beside the chart until the phone's single column */
@media (max-width: 1279px) {
  .page[data-page="run"] .run-cost-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 899px) {
  .page[data-page="run"] .run-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  /* the actions keep their desktop size and take a 40px touch past their edges: drawn 40px tall they outweighed the
     run's own name */
  .page[data-page="run"] .run-actions .btn { position: relative; height: var(--control-h); min-height: var(--control-h); }
  .page[data-page="run"] .run-actions .btn::after { content: ""; position: absolute; inset: -6px -1px; }
  .page[data-page="run"] .run-why, .page[data-page="run"] .run-said { text-align: left; }
  .page[data-page="run"] .run-charts { grid-template-columns: minmax(0, 1fr); }
  .page[data-page="run"] .run-cost-grid { grid-template-columns: minmax(0, 1fr); }
  .page[data-page="run"] .run-cost-side { padding-top: 18px; }
  .page[data-page="run"] .tl-row { grid-template-columns: 18px auto minmax(0, 1fr); gap: 2px 12px; }
  .page[data-page="run"] .tl-rail { grid-column: 1; grid-row: 1 / span 2; }
  .page[data-page="run"] .tl-time { grid-column: 2; grid-row: 1; text-align: left; }
  .page[data-page="run"] .tl-kind { grid-column: 3; grid-row: 1; }
  .page[data-page="run"] .tl-text { grid-column: 2 / -1; grid-row: 2; }
  /* a state: its word and its length on one line, then when it began and what else there is to know */
  .page[data-page="run"] .st-row { grid-template-columns: 18px auto minmax(0, 1fr) auto; gap: 2px 12px; }
  .page[data-page="run"] .st-row .tl-rail { grid-column: 1; grid-row: 1 / span 2; }
  .page[data-page="run"] .st-title { grid-column: 2 / span 2; grid-row: 1; }
  .page[data-page="run"] .st-len { grid-column: 4; grid-row: 1; }
  .page[data-page="run"] .st-row .tl-time { grid-column: 2; grid-row: 2; text-align: left; }
  .page[data-page="run"] .st-note { grid-column: 3 / -1; grid-row: 2; padding-left: 0; line-height: 20px; }
  .page[data-page="run"] .timeline.own .st-row { grid-template-columns: 18px auto minmax(0, 1fr) auto; }
  .page[data-page="run"] .st-row > .tl-text { grid-column: 2 / -1; grid-row: 1; }
  .page[data-page="run"] .st-row.tl-quiet .tl-time { grid-column: 2 / -1; grid-row: 2; }
  .page[data-page="run"] .st-row > .tl-sub { grid-column: 2 / -1; grid-row: 3; }
  .page[data-page="run"] .st-row:has(> .tl-sub) .tl-rail { grid-row: 1 / span 3; }
  .page[data-page="run"] .st-fold .tl-time { display: none; }
  .page[data-page="run"] .st-fold .st-note { grid-column: 2 / -1; }
}
@media (max-width: 599px) {
  .page[data-page="run"] .run-times { width: 100%; }
  /* a phone: where the script is in its loops is a line of its own under the runtime, so the two never share a
     line that breaks inside the time */
  .page[data-page="run"] .run-loops { display: block; margin-left: 0; white-space: normal; }
  .page[data-page="run"] .run-now-use { display: grid; gap: 2px; }
  /* a phone: each figure on a line of its own, and each label over its sentence */
  .page[data-page="run"] .run-ckpt-figs { display: grid; gap: 2px; }
  .page[data-page="run"] .run-ckpt .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .page[data-page="run"] .run-ckpt .kv dd { margin-bottom: 10px; }
  .page[data-page="run"] .run-ckpt .kv dd:last-child { margin-bottom: 0; }
}
