/* A scripted replay: a real SlateboxJS canvas inside a quiet copy of the editor's frame.
   Everything is sized by the figure's own width, so the same replay works as a 320px card
   and as a 1200px hero. docs/replay.md explains the markup and the custom properties. */
.replay {
  --rp-ink: var(--ink, #21392f);
  --rp-rule: #cfd5c4;
  --rp-paper: #fffdf4;
  --rp-board: #f3f1e4;
  --rp-soft: #5a6a5e;
  --rp-bar: 2.75rem;
  --rp-chat-on: 1;
  --rp-controls-on: 1;
  --rp-controls-row: calc(4rem + 1px);
  --rp-controls-tall: calc(7.25rem + 1px);
  --rp-status: 2.35rem;
  --rp-status-narrow: 3.5rem;
  --rp-label: 1.02rem;
  --rp-label-narrow: 2.04rem;
  container: replay / inline-size;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #b9c2b3;
  border-radius: 10px;
  background: var(--rp-board);
  color: var(--rp-ink);
  font: 500 .86rem/1.4 "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}
.replay, .replay *, .replay ::before, .replay ::after, .rp-controls, .rp-controls * { box-sizing: border-box }
.replay[data-chat="off"] { --rp-chat-on: 0 }
.replay[data-controls="outside"], .replay[data-controls="none"] { --rp-controls-on: 0 }
/* One scene: no chips, so the controls are one row at every width. Under reduced motion Play and Replay
   are hidden too, nothing is left to press, and the row goes. data-steps="one" in the markup reserves
   the right box before the script runs; the runner sets it either way. */
.replay[data-steps="one"] { --rp-controls-tall: calc(4rem + 1px) }
@media (prefers-reduced-motion: reduce) {
  .replay[data-steps="one"] { --rp-controls-on: 0 }
  .replay[data-steps="one"] > .rp-controls { display: none }
}
.replay :is(p, ul, ol) { margin: 0 }

/* The written account. It is the whole figure without scripting, the description a screen reader
   gets with it, and what is left if the engine cannot start. */
.rp-account { margin: 0; padding: 1rem 1.1rem; background: var(--rp-paper); font-size: .95rem; line-height: 1.5 }
.replay[data-built]:not([data-failed]) > .rp-account { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.replay[data-failed] > :is(.rp-body, .rp-foot, .rp-controls) { display: none }
/* Before the script has built the frame, the same box is held open so nothing below it moves. */
@media (scripting: enabled) {
  .replay:not([data-built])::before { content: ""; display: block; aspect-ratio: var(--rp-ratio, 16 / 9); margin: var(--rp-bar) 0 calc(var(--rp-status) + var(--rp-label) + 1.4rem + 1px + var(--rp-controls-on) * var(--rp-controls-row)) }
  .replay:not([data-built]) > .rp-account { position: absolute; inset: 0 0 auto; max-height: 100%; overflow: hidden }
  .replay[data-fit="fill"]:not([data-built])::before { aspect-ratio: auto; min-height: var(--rp-min, 350px) }
}

/* Bar */
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: var(--rp-bar); padding: 0 .9rem; overflow: hidden; background: var(--rp-paper); border-bottom: 1px solid var(--rp-rule); font: 600 .78rem/1 "Helvetica Neue", Arial, sans-serif; white-space: nowrap; cursor: default }
.rp-title, .rp-tools, .rp-huddle, .rp-people { display: inline-flex; align-items: center; min-width: 0 }
.rp-title { gap: .5rem }
.rp-tools { gap: .45rem; flex: none }
.rp-title img { flex: none; width: 1.4rem; height: 1.4rem; padding: .22rem; border-radius: 3px; background: var(--rp-ink) }
.rp-title b { overflow: hidden; text-overflow: ellipsis; font-size: .9rem }
.rp-title em { flex: none; padding: .16rem .5rem; border: 1px solid #b9c2b3; border-radius: 99px; font: 500 .75rem/1.3 ui-monospace, Menlo, monospace }
.rp-who { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--rp-paper); color: #fff; font: 700 .75rem/1 Arial, sans-serif }
.rp-who + .rp-who { margin-left: -.25rem }
.rp-huddle { position: relative; gap: .32rem; height: 1.75rem; padding: 0 .5rem; border: 1px solid #c3cabb; border-radius: 99px }
.rp-huddle-icon { display: grid; width: .85rem; height: .85rem; color: #6c7a6e }
.rp-huddle-icon svg, .rp-tile-tools svg { width: 100%; height: 100%; fill: currentColor }
.rp-switch { position: relative; width: 1.35rem; height: .78rem; border-radius: 99px; background: #c3cabb }
.rp-switch::after { content: ""; position: absolute; top: .11rem; left: .11rem; width: .56rem; height: .56rem; border-radius: 50%; background: #fff; transition: transform .25s }
.rp-huddle[data-count]:not([data-count=""])::after { content: attr(data-count); position: absolute; top: -.42rem; right: -.4rem; min-width: 1.05rem; height: 1.05rem; border-radius: 99px; background: var(--rp-ink); color: #fff; font: 700 .75rem/1.05rem Arial, sans-serif; text-align: center }
.replay[data-call] .rp-huddle { border-color: #2f6e4f; background: #e4f0e3 }
.replay[data-call] .rp-huddle-icon { color: #2f6e4f }
.replay[data-call] .rp-switch { background: #2f8a57 }
.replay[data-call] .rp-switch::after { transform: translateX(.57rem) }
.rp-tool { flex: none; padding: .42rem .68rem; border: 1px solid #c3cabb; border-radius: 4px }
.rp-present { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff }
.rp-present[data-on], .rp-share[data-on] { box-shadow: 0 0 0 3px #f0cd7f }

/* Stage */
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; aspect-ratio: var(--rp-ratio, 16 / 9) }
.replay[data-chat="on"] .rp-body { grid-template-columns: minmax(0, 1fr) clamp(214px, 29cqi, 300px) }
.replay[data-fit="fill"] { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto }
.replay[data-fit="fill"] .rp-body { aspect-ratio: auto; min-height: var(--rp-min, 350px) }
/* In a hero the conversation never sets the height of the stage; the column beside it does. */
.replay[data-fit="fill"] .rp-chat { contain: size }
.rp-board { position: relative; min-width: 0; min-height: 0; overflow: hidden; pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: pan-y }
.rp-canvas { position: absolute; inset: 0 }
.rp-canvas > svg { background: transparent !important }
.rp-canvas .connector-handle { display: none }
.rp-view { position: absolute; top: .6rem; left: .6rem; max-width: calc(100% - 1.2rem); padding: .3rem .65rem; overflow: hidden; border-radius: 99px; background: var(--rp-ink); color: #fff; font: 600 .75rem/1.2 "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap }
/* A state line on the canvas, as the app shows while presenting or after publishing. */
.rp-banner { position: absolute; top: .6rem; right: .6rem; max-width: calc(100% - 1.2rem); padding: .3rem .65rem; overflow: hidden; border: 1px solid var(--rp-ink); border-radius: 99px; background: var(--rp-paper); color: var(--rp-ink); font: 600 .75rem/1.2 "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap }
.rp-banner[hidden] { display: none }
.rp-view:not([hidden]) ~ .rp-banner { top: 2.6rem; left: .6rem; right: auto }

/* A staged call: the app's strip of small tiles over the bottom of the canvas, with drawn figures. */
.rp-call { display: none; position: absolute; inset: auto 0 0; align-items: flex-start; gap: 8px; height: 100px; padding: 9px 10px 0; background: rgb(255 253 244 / .94); border-top: 1px solid var(--rp-ink) }
.replay[data-call] .rp-call { display: flex }
.replay[data-call="voice"] .rp-call { height: 72px }
.rp-tile { flex: none; display: grid; justify-items: start; gap: 3px; color: #44574b }
.rp-face { position: relative; display: grid; place-items: center; width: 120px; height: 64px; overflow: hidden; border-radius: 4px; background: #2d4147; color: #fff; outline: 2px solid transparent; outline-offset: 0 }
.rp-face svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: color-mix(in srgb, var(--who) 62%, #fff) }
.rp-face b { position: absolute; left: 0; bottom: 0; padding: 1px 6px; background: rgb(0 0 0 / .6); font: 500 12px/1.4 "Helvetica Neue", Arial, sans-serif }
.replay[data-call="voice"] .rp-face { width: 84px; height: 32px; box-shadow: inset 4px 0 var(--who) }
.replay[data-call="voice"] .rp-face b { position: static; padding: 0 0 0 4px; background: none }
.rp-tile[data-speaking] .rp-face { outline-color: #73c49f }
.rp-tile-tools { display: flex; gap: 5px; height: 13px; padding-left: 2px }
.rp-tile-tools svg { width: 13px; height: 13px }
.rp-tile[data-speaking] .rp-tile-tools { color: #2f8a57 }
.rp-call-tag { align-self: center; margin-left: auto; padding-bottom: 9px; color: #44574b; font: 500 .75rem/1.4 ui-monospace, Menlo, monospace; text-align: right }
.rp-plan { display: inline-block; padding: .08rem .42rem; border: 1px solid #b89a45; border-radius: 99px; background: #fbf0cf; color: #5e4a0f; font: 600 .75rem/1.4 ui-monospace, Menlo, monospace; white-space: nowrap }

/* Conversation */
.rp-chat { display: flex; flex-direction: column; gap: .7rem; min-width: 0; min-height: 0; padding: .9rem 1rem 1rem; overflow: hidden; background: var(--rp-paper); border-left: 1px solid var(--rp-rule); font-size: .82rem; line-height: 1.42; cursor: default }
.rp-chat-head { flex: none; font: 700 1.1rem/1 "Archivo Narrow", "Arial Narrow", Arial, sans-serif }
.rp-turns { flex: 1; display: flex; flex-direction: column; gap: .7rem; min-height: 0; overflow: hidden }
.rp-turn { flex: none }
.rp-turn small { display: block; margin-bottom: .2rem; color: var(--rp-soft); font: 500 .75rem/1.5 ui-monospace, Menlo, monospace }
.rp-turn.you p { padding: .55rem .7rem; border-radius: 8px 8px 8px 2px; background: #eef1e4 }
.rp-turn ul { margin: .35rem 0 .45rem; padding-left: 1.05rem; color: #3e5145 }
.rp-note { margin-bottom: .45rem; color: #3e5145 }
.rp-keep { display: inline-block; padding: .38rem .7rem; border-radius: 4px; background: var(--rp-ink); color: #fff; font-weight: 600 }
.rp-keep[data-pressed] { box-shadow: 0 0 0 3px #f0cd7f; transform: scale(.97) }
.rp-discard { margin-left: .35rem; color: var(--rp-soft); font-size: .75rem }
.rp-discard[data-pressed] { color: var(--rp-ink); text-decoration: underline }
.rp-starters { flex: none; margin-top: auto; color: #3e5145 }
.rp-starters p { margin-bottom: .4rem }
.rp-starters span[data-pressed] { border-color: var(--rp-ink); background: var(--rp-ink); color: #fff }
.rp-starters span { display: inline-block; margin: 0 .3rem .3rem 0; padding: .22rem .55rem; border: 1px solid #c3cabb; border-radius: 99px; color: #44574b; font-size: .75rem }
.rp-input { flex: none; min-height: 2.35rem; max-height: 7.2em; padding: .55rem .7rem; overflow: hidden; border: 1px solid #c3cabb; border-radius: 6px; color: #7b877c }
.rp-input[data-typing] { border-color: var(--rp-ink); color: var(--rp-ink) }
.rp-input[data-typing]::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: currentColor; vertical-align: -.12em }

/* Foot: what is happening now, and the label every replay carries. */
.rp-foot { display: grid; align-content: start; gap: .25rem; margin: 0; color: var(--rp-ink); min-height: calc(var(--rp-status) + var(--rp-label) + 1.4rem + 1px); padding: .55rem .9rem .6rem; background: var(--rp-paper); border-top: 1px solid var(--rp-rule) }
.rp-status { min-height: var(--rp-status); font: 500 .86rem/1.36 "Helvetica Neue", Arial, sans-serif }
.rp-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: #a84d25 }
.rp-label { min-height: var(--rp-label); color: var(--rp-soft); font: 500 .75rem/1.36 ui-monospace, Menlo, monospace }

/* Controls. They sit under the stage, or in any element the page names (a hero's side column). */
.rp-controls { container: rp-controls / inline-size; min-width: 0; color: var(--ink, #21392f); font: 500 .86rem/1.4 "Helvetica Neue", Arial, sans-serif }
.rp-set { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .5rem }
.replay > .rp-controls { background: var(--rp-paper); border-top: 1px solid var(--rp-rule) }
.replay > .rp-controls .rp-set { padding: .55rem .9rem .7rem }
/* With room, the chips and the play buttons share one row. */
@container rp-controls (min-width: 560px) {
  .rp-controls[data-shape="chips"] .rp-set { grid-template-columns: minmax(0, 1fr) auto; align-items: center }
}
.rp-controls[hidden] { display: none }
.rp-steps { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0 }
.rp-steps li { flex: 1 1 0; min-width: 0 }
.rp-steps button { display: block; width: 100%; height: 2.75rem; padding: 0 .5rem; overflow: hidden; border: 1px solid #c3cabb; border-radius: 99px; background: none; color: #3d5246; font: 600 .8rem/1 "Helvetica Neue", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; cursor: pointer }
.rp-steps b { font: inherit }
.rp-steps b i { margin-right: .1rem; font: 600 .75rem/1 ui-monospace, Menlo, monospace; opacity: .72 }
.rp-steps .rp-long, .rp-steps .rp-what { display: none }
.rp-steps button:hover { border-color: var(--ink, #21392f); color: var(--ink, #21392f) }
.rp-steps button[aria-pressed="true"] { border-color: var(--ink, #21392f); background: var(--ink, #21392f); color: #fff }
.rp-controls button:focus-visible { outline: 3px solid #b36919; outline-offset: 2px }
.rp-controls button:disabled { opacity: .55; cursor: default }
@container rp-controls (max-width: 430px) {
  .rp-steps[data-many] button[aria-pressed="false"] .rp-short { display: none }
  .rp-steps[data-many] li:has([aria-pressed="true"]) { flex-grow: 3 }
  .rp-steps[data-many] button { padding: 0 .2rem }
}
.rp-transport { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; min-height: 2.75rem }
.rp-transport button { min-width: 2.75rem; height: 2.75rem; padding: 0 .95rem; border: 1px solid var(--ink, #21392f); border-radius: 99px; background: none; color: inherit; font: 600 .84rem/1 "Helvetica Neue", Arial, sans-serif; cursor: pointer }
.rp-transport button:hover:not(:disabled) { background: var(--ink, #21392f); color: #fff }
.rp-transport button[hidden] { display: none }
.rp-views { flex: 1 1 15rem; display: flex; align-items: center; gap: .45rem; min-width: 0 }
.rp-views button { padding: 0; font: 400 1.25rem/1 Arial, sans-serif }
.rp-readout { flex: 1; min-width: 0; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap }
@container rp-controls (max-width: 559px) { .rp-views { flex-basis: 100% } }

/* The list shape: one row per step with its caption, for a wide side column. */
.rp-controls[data-shape="list"] .rp-steps { position: relative; display: grid; grid-template-columns: repeat(var(--rp-columns, 1), minmax(0, 1fr)); gap: 0 1rem; padding-bottom: 4.9rem; border-bottom: 1px solid var(--line, #bac5b9) }
.rp-controls[data-shape="list"] .rp-steps button { display: grid; grid-template-columns: 1.9rem 1fr; height: auto; padding: .5rem 0 .55rem; border: 0; border-top: 1px solid var(--line, #bac5b9); border-radius: 0; background: none; color: #3d5246; text-align: left; white-space: normal }
.rp-controls[data-shape="list"] .rp-steps b { display: contents; font: 700 1.36rem/1.1 "Archivo Narrow", "Arial Narrow", sans-serif; letter-spacing: -.025em }
.rp-controls[data-shape="list"] .rp-steps b i { font: 600 .75rem/1.9 ui-monospace, Menlo, monospace; letter-spacing: 0; opacity: 1 }
.rp-controls[data-shape="list"] .rp-long { display: inline }
.rp-controls[data-shape="list"] .rp-short { display: none }
.rp-controls[data-shape="list"] .rp-steps button:hover, .rp-controls[data-shape="list"] .rp-steps button[aria-pressed="true"] { color: var(--ink, #21392f) }
.rp-controls[data-shape="list"] .rp-steps button[aria-pressed="true"] { padding-left: .75rem; box-shadow: inset 3px 0 var(--ink, #21392f) }
.rp-controls[data-shape="list"] .rp-steps button[aria-pressed="true"] .rp-what { display: block; position: absolute; left: 0; right: 0; bottom: .7rem; height: 3.6rem; padding-left: .85rem; overflow: hidden; border-left: 3px solid var(--ink, #21392f); color: #33483c; font: 500 .9rem/1.34 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0 }
.rp-controls[data-shape="list"] .rp-transport { justify-content: flex-start }
.rp-controls[data-shape="list"] .rp-views { flex-basis: 100% }
/* "auto" is the list where there is room beside the stage and chips on a phone. */
@media (min-width: 801px) {
  .rp-controls[data-shape="auto"] .rp-steps { position: relative; display: grid; grid-template-columns: repeat(var(--rp-columns, 1), minmax(0, 1fr)); gap: 0 1rem; padding-bottom: 4.9rem; border-bottom: 1px solid var(--line, #bac5b9) }
  .rp-controls[data-shape="auto"] .rp-steps button { display: grid; grid-template-columns: 1.9rem 1fr; height: auto; padding: .5rem 0 .55rem; border: 0; border-top: 1px solid var(--line, #bac5b9); border-radius: 0; background: none; color: #3d5246; text-align: left; white-space: normal }
  .rp-controls[data-shape="auto"] .rp-steps b { display: contents; font: 700 1.36rem/1.1 "Archivo Narrow", "Arial Narrow", sans-serif; letter-spacing: -.025em }
  .rp-controls[data-shape="auto"] .rp-steps b i { font: 600 .75rem/1.9 ui-monospace, Menlo, monospace; letter-spacing: 0; opacity: 1 }
  .rp-controls[data-shape="auto"] .rp-long { display: inline }
  .rp-controls[data-shape="auto"] .rp-short { display: none }
  .rp-controls[data-shape="auto"] .rp-steps button:hover, .rp-controls[data-shape="auto"] .rp-steps button[aria-pressed="true"] { color: var(--ink, #21392f) }
  .rp-controls[data-shape="auto"] .rp-steps button[aria-pressed="true"] { padding-left: .75rem; box-shadow: inset 3px 0 var(--ink, #21392f) }
  .rp-controls[data-shape="auto"] .rp-transport { justify-content: flex-start }
  .rp-controls[data-shape="auto"] .rp-views { flex-basis: 100% }
  .rp-controls[data-shape="auto"] .rp-steps button[aria-pressed="true"] .rp-what { display: block; position: absolute; left: 0; right: 0; bottom: .7rem; height: 3.6rem; padding-left: .85rem; overflow: hidden; border-left: 3px solid var(--ink, #21392f); color: #33483c; font: 500 .9rem/1.34 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0 }
}

/* Narrower than a hero: the conversation becomes one row above the board. */
@container replay (max-width: 719px) {
  .rp-body { aspect-ratio: auto }
  .replay:not([data-built])::before { aspect-ratio: var(--rp-ratio-narrow, 1 / 1); margin: calc(var(--rp-bar) + var(--rp-chat-on) * 3.7rem) 0 calc(var(--rp-status-narrow) + var(--rp-label-narrow) + 1.4rem + 1px + var(--rp-controls-on) * var(--rp-controls-row)) }
  .rp-foot { min-height: calc(var(--rp-status-narrow) + var(--rp-label-narrow) + 1.4rem + 1px) }
  .rp-status { min-height: var(--rp-status-narrow) }
  .rp-label { min-height: var(--rp-label-narrow) }
  .rp-board { aspect-ratio: var(--rp-ratio-narrow, 1 / 1) }
  /* A stage that fills a hero column on a wide page goes back to its own ratio here. */
  .replay[data-fit="fill"] .rp-body { min-height: 0 }
  .replay[data-fit="fill"] .rp-chat { contain: none }
  .replay[data-fit="fill"]:not([data-built])::before { aspect-ratio: var(--rp-ratio-narrow, 1 / 1); min-height: 0 }
  .rp-body { grid-template-rows: auto }
  .replay[data-chat="on"] .rp-body { grid-template-columns: minmax(0, 1fr) }
  .rp-chat { order: -1; flex-direction: row; align-items: center; gap: .6rem; height: 3.7rem; padding: .35rem .8rem; border-left: 0; border-bottom: 1px solid var(--rp-rule); font-size: .78rem; line-height: 1.3 }
  .rp-turns { display: contents }
  .rp-chat :is(.rp-chat-head, .rp-starters, .rp-turn:not([data-latest]), .rp-turn small, .rp-turn ul, .rp-note, .rp-actions) { display: none }
  /* The plan label always shows. In this one row it takes the place of the preview's detail. */
  .rp-preview-head:has(.rp-plan) .rp-preview-what { display: none }
  .rp-preview-head .rp-plan { display: block; width: fit-content; margin-top: .15rem }
  .rp-turn.you { flex: 1; min-width: 0; padding: .32rem .55rem; border-radius: 8px 8px 8px 2px; background: #eef1e4 }
  .rp-turn.you p, .rp-input { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 0; background: none }
  .rp-turn.bot { flex: none; max-width: 40%; color: #3e5145; font: 600 .75rem/1.3 ui-monospace, Menlo, monospace }
  .rp-turn.bot p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden }
  .rp-input { display: none; flex: 1; min-height: 0; padding: .32rem .55rem; border-radius: 8px }
  .rp-turns:empty ~ .rp-input, .rp-input[data-typing] { display: -webkit-box }
  .rp-chat:has(.rp-input[data-typing]) .rp-turn { display: none }
  .rp-share { display: none }
  .rp-tile-tools { display: none }
  .rp-call { height: 64px; padding-top: 8px }
  .replay[data-call="voice"] .rp-call { height: 48px }
  .rp-face { width: 84px; height: 46px }
  .replay[data-call="voice"] .rp-face { width: 72px; height: 30px }
  .rp-call-tag { padding-bottom: 8px }
}
@container replay (max-width: 559px) {
  .replay:not([data-built])::before { margin-bottom: calc(var(--rp-status-narrow) + var(--rp-label-narrow) + 1.4rem + 1px + var(--rp-controls-on) * var(--rp-controls-tall)) }
}
@container replay (max-width: 420px) {
  .rp-bar { gap: .5rem; padding: 0 .65rem }
  .rp-title em, .rp-huddle > span { display: none }
  .rp-title b { font-size: .82rem }
  .rp-tool { padding: .38rem .55rem }
  .rp-foot, .replay > .rp-controls .rp-set { padding-inline: .65rem }
  .rp-chat { padding-inline: .65rem }
}

@media (prefers-reduced-motion: no-preference) {
  .rp-turn { animation: rp-turn .28s ease-out both }
  .rp-input[data-typing]::after { animation: rp-blink 1s steps(2, start) infinite }
  .replay[data-state="playing"] .rp-tile[data-speaking] .rp-face svg { animation: rp-nod 1.6s ease-in-out infinite; transform-origin: 50% 100% }
  .rp-view { animation: rp-turn .28s ease-out both }
}
@keyframes rp-turn { from { opacity: 0; transform: translateY(6px) } }
@keyframes rp-blink { to { visibility: hidden } }
@keyframes rp-nod { 50% { transform: translateY(1.5px) rotate(-1.5deg) } }
