/* A film of one run. Its box has a fixed height: playback fills it and never resizes it. */
.player {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  /* One column no wider than the page: a long line wraps or scrolls inside, never widens the player. */
  grid-template-columns: minmax(0, 1fr);
  height: 698px;
  margin: 0 0 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--raise);
  outline: 1px solid transparent;
  /* Clipped to its corners without scrolling, so its transport can stand held at the screen's foot (holdFoot). */
  overflow: clip;
}
.player[data-bars="2"] {
  height: 776px;
}
.player[data-bars="3"] {
  height: 852px;
}
/* A film with few lines is as tall as its lines, not as tall as the longest film. */
.player[data-player="messages"] {
  height: 716px;
}
.player:focus {
  outline: none;
}
.player-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 20px 0;
}
.player-title h2 {
  margin: 0;
  font: 600 var(--text-lg) / 1.3 var(--sans);
  color: var(--ink);
}
.player-count {
  display: grid;
  justify-items: end;
  min-width: 0;
  text-align: right;
  flex-shrink: 0;
}
.player-count strong {
  font: 600 var(--text-xl) / 1.15 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.player-count.is-over strong {
  color: var(--danger);
}
.player-count span,
.player-count small {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}
/* One line at any width, so a longer detail never changes the head's height. */
.player-count small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--faint);
}

/* Settings: changing one plays the run again. */
.player-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0 0;
}
.player-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* A setting's name and its choices are labels, so they are set in the sans; monospace is for code and data. */
.player-setting code {
  font: 400 var(--text-sm) / 1 var(--sans);
  color: var(--muted);
}
/* The track does not clip its buttons, which round their own corners (stage.css), so a focused one keeps its ring. */
.player-segmented {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.player-segmented button {
  min-width: 40px;
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 400 var(--text-sm) / 1 var(--sans);
}
.player-segmented button:first-child {
  border-left: 0;
}
.player-segmented button:hover {
  background: var(--hover);
}
.player-segmented button:is([aria-pressed="true"], [aria-checked="true"]) {
  background: var(--accent);
  color: var(--on-accent);
}
/* A lean film: one line of head, with the title at the left and the setting at the right. */
.player-head.is-lean {
  align-items: center;
}
.player-head.is-lean .player-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  min-width: 0;
}
.player-head.is-lean .player-settings {
  flex: none;
  padding: 0;
}
.player-head.is-lean,
.player-head.is-lean + .player-bars {
  padding-inline: 24px;
}
/* On a phone a lean head stacks, centred; its setting keeps the head's width, so options that do not fit wrap under
   their name instead of spilling past both edges. */
@media (max-width: 720px) {
  .player-head.is-lean .player-settings {
    align-self: stretch;
    justify-content: center;
    min-width: 0;
  }
}

/* Bars: what the run holds after the current event. */
.player-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px 20px 0;
}
.player-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.player-bar-label span {
  white-space: nowrap;
}
.player-bar-label span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar-label span:last-child {
  font-variant-numeric: tabular-nums;
}
/* A lean film names each bar at its left, at reading size, and counts nothing. */
.player-bar.is-side {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}
/* The name stands right against its bar, at the size of the text the bar holds. */
.player-bar.is-side .player-bar-label {
  justify-content: flex-end;
  margin: 0;
  font: 400 var(--text-sm) / 1.3 var(--sans);
  color: var(--ink);
}
/* A Run trace names its bars at more length: a wider column, where a long name wraps instead of being cut. Where the
   trace is too narrow to leave its bars room beside that column, as on a phone, each name stands over its bar. */
.player[data-run-trace] {
  container-type: inline-size;
}
.player[data-run-trace] .player-bar.is-side {
  grid-template-columns: 240px minmax(0, 1fr);
}
.player[data-run-trace] .player-bar.is-side .player-bar-label span:first-child {
  white-space: normal;
  text-align: right;
}
@container (width < 640px) {
  .player[data-run-trace] .player-bar.is-side {
    display: block;
  }
  .player[data-run-trace] .player-bar.is-side .player-bar-label {
    justify-content: flex-start;
    margin-bottom: 4px;
  }
  .player[data-run-trace] .player-bar.is-side .player-bar-label span:first-child {
    text-align: left;
  }
}
.player-bar.is-side .player-legend {
  grid-column: 2;
}
/* The next request's readout stands at the bar's right in a lean film, in the Context element's words. */
.player-bar.is-side.has-usage {
  grid-template-columns: 116px minmax(0, 1fr) auto;
}
.player-bar.is-side .player-usage {
  grid-row: 1;
  grid-column: 3;
}
.player-bar-label .player-usage {
  white-space: nowrap;
}
.player-usage .ae-usage-count {
  text-align: right;
}
.player-track {
  position: relative;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}
.player-segs {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.player-seg {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: var(--actor-fill);
  color: var(--series-ink);
  font: 400 var(--text-xs) / 1 var(--mono);
  box-shadow: inset -1px 0 0 var(--surface);
  transition:
    width 340ms ease,
    background-color 240ms ease;
}
.player-seg.is-growing {
  color: transparent;
}
.player-seg.is-pending {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--actor);
  background-image: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--actor-fill) var(--hatch, 100%), transparent) 0 3px, transparent 3px 7px);
}
/* In dark a fill is light, as the name over it is: its stripes are thinned, so the name keeps 4.5:1 on them. */
:root[data-theme="dark"] .player-seg.is-pending {
  --hatch: 45%;
}
.player-seg.actor-reserve {
  background: repeating-linear-gradient(135deg, var(--line-strong) 0 3px, transparent 3px 7px);
  color: var(--muted);
}
/* Under a bar, the names of parts too narrow to carry them: one line, or more where they do not fit, so a name is
   shown whole. The player keeps the height of the most lines any event gives it (player.mjs), so the legend keeps
   its height when empty and as names come and go. */
.player-legend {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 12px;
  height: 18px;
  padding-top: 4px;
  overflow: hidden;
  font: 400 var(--text-xs) / 14px var(--mono);
  color: var(--muted);
}
/* A name stands on one line where the line holds it; one longer than the whole line, as a reply quoted as the name
   of its part, wraps at its spaces under its own start, its swatch beside its first line. */
.player-legend span {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
}
.player-swatch {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--actor-fill);
}
.player-legend .actor-reserve .player-swatch {
  background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 4px);
}
.player-swatch.is-pending {
  background: repeating-linear-gradient(135deg, var(--actor-fill) 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1px var(--actor);
}
/* What a request read from its provider's cache, as Prompt Caching plays it: a bracket under the track from its start
   to the end of the cached run, in the accent, as the still figure draws it. The parts keep their own colours. */
.player-track:is(.has-cache, .can-cache) {
  margin-bottom: 12px;
}
.player-track.has-cache::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: var(--cached);
  height: 7px;
  border: 1.5px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  transition: width 360ms ease-out;
}

.player-seen {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.player-seen .icon,
.player-row .icon {
  width: 14px;
  height: 14px;
  color: var(--actor-you);
}

/* Each actor sets the two colours its marks read. */
.actor-you {
  --actor: var(--actor-you);
  --actor-fill: var(--actor-you-fill);
}
.actor-loop,
.actor-runtime {
  --actor: var(--actor-runtime);
  --actor-fill: var(--actor-runtime-fill);
}
.actor-model {
  --actor: var(--actor-model);
  --actor-fill: var(--actor-model-fill);
}
.actor-tool {
  --actor: var(--actor-tool);
  --actor-fill: var(--actor-tool-fill);
}
.actor-session {
  --actor: var(--actor-session);
  --actor-fill: var(--actor-session-fill);
}
.actor-error {
  --actor: var(--actor-error);
  --actor-fill: var(--actor-error-fill);
}

.player-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 12px 20px 14px;
}
.player-log-box {
  position: relative;
  min-height: 0;
  container: player-log / inline-size;
}
/* Where the log is narrow, as beside a Run trace's panel at 1100px, a call's, an approval's or a child run's size
   and status stand under its text, as on a phone, so the text keeps the room its code needs to wrap whole. */
@container player-log (max-width: 440px) {
  .player-row:is(.is-call, .is-approval, .is-child) .player-size {
    grid-row: 2;
    grid-column: 2 / 4;
    justify-self: start;
  }
}
/* Narrower still, as a 360px phone leaves the log, a message's or a step's size ("+1 msg") stands under its text too,
   so its code has the row's width to wrap whole ("fetch_contacts", `r["message"])`). */
@container player-log (max-width: 320px) {
  .player-row .player-size:not(:empty) {
    grid-row: 2;
    grid-column: 2 / 4;
    justify-self: start;
  }
}
.player-log {
  height: 100%;
  margin: 0;
  padding: 0 6px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.player-log:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.player-phase {
  padding: 10px 6px 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}
.player-phase:first-child {
  padding-top: 0;
}
/* A trace's heading stands from its phase's first event, faint and with only the words before its colon, until its
   last, when it is said whole. The two lie in one cell, so the row keeps its height. */
.player-phase {
  display: grid;
}
.player-phase > span {
  grid-area: 1 / 1;
}
/* Seen, where the page's own `.is-later` keeps a thing's room unseen. */
.player-phase.is-later {
  visibility: visible;
  color: var(--faint);
}
.player-phase.is-later .player-phase-whole,
.player-phase:not(.is-later) .player-phase-lead {
  visibility: hidden;
}
.player-row button {
  display: grid;
  /* The tag column fits nine monospace characters: `assistant`. A film's own tag is held to eight. */
  grid-template-columns: 84px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
/* A row that is not a message, such as the app's own work between two of them. */
.player-row.is-aside button {
  background: color-mix(in srgb, var(--actor-runtime) 10%, transparent);
}
.player-row button:hover {
  background: var(--hover);
}
.player-row button[aria-current="step"] {
  background: var(--accent-pale);
}
/* A row is as wide as the log that scrolls it, so its ring stands just inside its edge, where the log cannot cut it. */
.player-row button:focus-visible {
  outline-offset: -2px;
}
/* A new row fades in once the page has glided to it on a phone (`--player-wait`, followEvent in player.mjs). */
.player-row.is-new {
  animation: player-in 260ms ease-out var(--player-wait, 0ms) backwards;
}
@keyframes player-in {
  from {
    opacity: 0;
  }
}
/* A role chip: its word in the actor's colour a step towards `ink`, darker in light and lighter in dark, on a tint of
   the actor. A chip often stands on a row with a fill of its own (a selected row, a failed one, a sunken lead-in row),
   and the word keeps 4.5:1 on every one of them in both themes. */
.player-chip {
  justify-self: start;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--actor) 13%, transparent);
  color: color-mix(in srgb, var(--actor) 80%, var(--ink));
  font: 400 var(--text-xs) / 1.2 var(--mono);
}
/* A label may hold a line break, when an event carries two things. It wraps where rowLabel lets code wrap, and
   breaks a word only where the word alone is wider than the row. */
.player-label {
  font: 400 var(--text-xs) / 1.45 var(--mono);
  overflow-wrap: break-word;
  white-space: pre-line;
}
.player-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 var(--text-xs) / 1 var(--mono);
  color: var(--faint);
}
/* A Tool, Confirmation or Subagent line: in the chip's column, the icon of what it is and who it is, in the actor's
   colour with no fill, so it reads apart from a message; its status stands at the row's end. */
.player-who {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--actor);
  font: 400 var(--text-xs) / 1.2 var(--mono);
}
.player-who .ae-icon {
  width: 14px;
  height: 14px;
  color: inherit;
}
.player-who[data-tone="warn"] .ae-icon { color: var(--warn); }
.player-who[data-tone="ok"] .ae-icon { color: var(--ok); }
.player-who[data-tone="bad"] .ae-icon { color: var(--danger); }
.player-row.actor-error .player-label {
  color: var(--danger);
}
.player-row.is-skipped .player-label {
  color: var(--faint);
  text-decoration: line-through;
}

/* Before the run plays, its events show faintly behind the play button. */
.player-log.is-preview {
  opacity: 0.38;
  overflow: hidden;
}
.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.player-start .button {
  box-shadow: 0 0 0 10px var(--surface);
}
.player-start[hidden] {
  display: none;
}

/* The panel: what just happened, the line of code that did it, and the point of this phase. */
.player-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--sunken);
}
.player-panel > * {
  flex-shrink: 0;
}
/* The note and the key point stand whole at every width. The code gives up height to them, down to four lines and
   its link, and its own box scrolls to the line that ran (lineScroll in player.mjs), so no fade lies on a sentence. */
.player-panel > .player-code {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  min-height: calc(var(--text-xs) * 1.6 * 4 + 46px);
}
.player-code > * {
  flex-shrink: 0;
}
.player-code a {
  align-self: flex-start;
}
/* A panel or a log that holds more than its height scrolls, and fades the edge past which there is more
   (player.mjs). While the log has a keyboard's focus the fade gives way, so its ring is drawn whole. */
.player-panel[data-more="below"],
.player-log[data-more="below"] {
  mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent);
}
.player-panel[data-more="above"],
.player-log[data-more="above"] {
  mask-image: linear-gradient(to top, black calc(100% - 32px), transparent);
}
.player-panel[data-more="above below"],
.player-log[data-more="above below"] {
  mask-image: linear-gradient(to bottom, transparent, black 32px, black calc(100% - 32px), transparent);
}
.player-log:focus-visible {
  mask-image: none;
}
/* The code's box fades the same way over a line's height, so a line scrolled past is never cut through its letters. */
.player-code pre[data-more="below"] { mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent); }
.player-code pre[data-more="above"] { mask-image: linear-gradient(to top, black calc(100% - 20px), transparent); }
.player-code pre[data-more="above below"] {
  mask-image: linear-gradient(to bottom, transparent, black 20px, black calc(100% - 20px), transparent);
}
/* Three lines of note are reserved, so the key point below keeps its place from event to event. */
.player-now {
  min-height: calc(var(--text-sm) * 1.5 * 3 + 28px);
}
.player-now-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.player-now-head > :is(.player-who, .ae-status) {
  align-self: center;
}
.player-now-head > .ae-status {
  margin-left: auto;
}
/* Each line of the label stays one line: the log row beside it shows the whole label. */
.player-now-head code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
  font: 600 var(--text-xs) / 1.45 var(--mono);
  color: var(--ink);
}
.player-now p,
.player-key p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.player-key p {
  color: var(--ink);
}
.player[data-run-trace] .player-now-head strong {
  min-width: 0;
}
.player[data-run-trace] .player-now-head code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-weight: 600;
}
.player[data-run-trace] .player-key strong {
  display: block;
}
.player-code pre {
  flex-shrink: 1;
  min-height: 0;
  margin: 0;
  padding: 8px 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.player-code code {
  display: block;
  min-width: 0;
  font: 400 var(--text-xs) / 1.6 var(--mono);
}
.player-code > .label:not([hidden]) {
  display: block;
  margin-bottom: 6px;
}
.player-inspection code {
  min-width: 0;
}
.player-inspection .player-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* A line too long for the pane wraps two places in from its own start (`--hang`, hangStyle), so the line a phase is
   about is never cut at the pane's edge and what wraps never reads as a line of its own. */
.player-line {
  --hang-at: calc((var(--hang, 0) + 2) * 1ch);
  display: block;
  padding: 0 8px 0 calc(8px + var(--hang-at));
  text-indent: calc(-1 * var(--hang-at));
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.player-line.is-current {
  background: var(--accent-pale);
  color: var(--ink);
}
.player-code a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font: 400 var(--text-xs) / 1.4 var(--mono);
  color: var(--faint);
}
.player-code a:hover {
  color: var(--accent-ink);
}
/* After the file, the lines that hold the code or "in outline": a label, in the sans, kept whole with the link's
   mark, on the next line where the two do not fit beside the file's name. */
.player-code a {
  flex-wrap: wrap;
}
.player-code-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  white-space: nowrap;
}
.player-key {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}
.player-key .label {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* The film's transport is every figure's (stage.css); "shown to the user" stands after the track. */
.player-controls .player-seen { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .player-seg,
  .player-track.has-cache::after {
    transition: none;
  }
}

/* A film's code line may have 52 characters. Below a wide screen the log and the panel share the width, which
   gives such a line more room. The code keeps its size; where a line is still too long, it wraps under its own start,
   at a bracket or a dot between names (codeMarkup in player.mjs). */
@media (min-width: 1024px) and (max-width: 1463px) {
  .player-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Under 1024px the log stands over the panel and each keeps a fixed height: on a phone, and where the sidebar
   leaves the player under 720px, so that split in two a log row's text would have no room beside its tag and size. */
@media (max-width: 1023px) {
  .player,
  .player[data-bars="2"],
  .player[data-bars="3"] {
    height: auto;
    grid-template-rows: none;
  }
  .player-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .player-log-box {
    height: 300px;
  }
  /* The note and the key point come first; the code stands under them, its box scrolled to the line that ran. */
  .player-panel {
    height: 420px;
  }
  /* A Run trace's notes and completed phases are longer, so its panel is taller. */
  .player[data-run-trace] .player-panel {
    height: 480px;
  }
  .player-now {
    order: 1;
  }
  .player-key {
    order: 2;
  }
  .player-code {
    order: 3;
  }
}

/* A phone also stacks the head and leaves out the legend. */
@media (max-width: 720px) {
  .player-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 14px 0;
  }
  .player-count {
    justify-items: start;
    text-align: left;
  }
  .player-bars {
    padding-left: 14px;
    padding-right: 14px;
  }
  /* A setting with long options puts them under its name, and where they still do not fit on one line they wrap,
     each option whole and the rows filled, on a track rounded as a figure's tabs are. */
  .player-setting {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  .player-head .player-segmented {
    flex-wrap: wrap;
    min-width: 0;
    border-radius: 14px;
  }
  .player-segmented button {
    flex: 1 0 auto;
  }
  .player-seen {
    display: none;
  }
  .player-body {
    padding: 12px 14px;
  }
  .player-row button {
    grid-template-columns: 84px minmax(0, 1fr) auto 14px;
    gap: 8px;
  }
  /* A call's, an approval's or a child run's size and status go under its text, which keeps the row's width. */
  .player-row:is(.is-call, .is-approval, .is-child) .player-size {
    grid-row: 2;
    grid-column: 2 / 4;
    justify-self: start;
  }
  /* The next request's name and readout share a line over its bar. */
  .player-bar.is-side.has-usage {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }
  .player-bar.is-side.has-usage .player-bar-label {
    justify-content: flex-start;
  }
  .player-bar.is-side.has-usage .player-usage {
    grid-column: 2;
  }
  .player-bar.is-side.has-usage :is(.player-track, .player-legend) {
    grid-column: 1 / -1;
  }
}

/* A short call in a row's label stays whole on one line (rowLabel); the row breaks between calls. A call wider than
   the row breaks inside it, where rowLabel lets code break, so it never runs over the row's status. */
.player-label .player-call { display: inline-block; max-width: 100%; }
/* A hyphenated name, such as a task's or a file's, is one word: it never breaks at its hyphen. */
.player-label .player-word { white-space: nowrap; }
/* A Run trace's panel names its event the same way, so a call breaks after its bracket, never inside a name. */
.player[data-run-trace] .player-now-head .player-call { display: inline-block; max-width: 100%; }
.player[data-run-trace] .player-now-head .player-word { white-space: nowrap; }
/* So does the code: a flag or a hyphenated name in it never breaks after its dashes (codeMarkup). */
.player-code .player-word { white-space: nowrap; }
/* On a phone the event's status stands under its label, so the label keeps the panel's width beside the actor and a
   name as long as `aws_access_key_id` stands whole on its line (R6-03). */
@media (max-width: 600px) {
  .player[data-run-trace] .player-now-head { display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .player[data-run-trace] .player-now-head > .ae-status { grid-column: 2; justify-self: start; margin-left: 0; }
}
