/* A run, played: the camera video with the task, what the model said as it went, the action under way and the
   speed, and its own play, scrub and full-screen controls. A stage: dark in both themes. Contract: runplay.js.
   On the figure rules (.claude/skills/fastrua-design/FIGURES.md): the ground is pure black with no tinted bar,
   radii 12 (the player) and 8 (labels on the picture, buttons), IBM Plex Sans at 13.5 and 15 px, weights 400, 600. */
.runplay{--rp-bg:#000000;--rp-line:#2A2D31;--rp-text:#F2F3F5;--rp-text-2:#B4B8BE;--rp-text-3:#7F858D;--rp-teal:#17888C;--rp-teal-hi:#48B0B4;
  position:relative;margin:0;border:1px solid var(--rp-line);border-radius:12px;overflow:hidden;background:var(--rp-bg);color:var(--rp-text);
  font:400 15px/1.45 var(--sans,inherit);letter-spacing:0;container-type:inline-size}
.runplay video{display:block;width:100%;height:auto;margin:0!important;border-radius:0!important;background:#000}
.runplay-view{position:relative}
.runplay-data{display:none}
.runplay-task,.runplay-say,.runplay-act,.runplay-speed{position:absolute;margin:0!important;background:rgba(0,0,0,.82);border:1px solid var(--rp-line);border-radius:8px}
.runplay-task{top:14px;left:14px;max-width:min(54%,30rem);padding:9px 12px;font-size:13.5px;line-height:1.45;color:var(--rp-text)}
.runplay-task b,.runplay-say b{display:block;margin-bottom:2px;font:400 13.5px/1.3 var(--sans,inherit);color:var(--rp-text-2)}
.runplay-act{top:14px;right:14px;padding:7px 10px;font:400 13.5px/1.3 var(--sans,inherit);color:var(--rp-text-2);font-variant-numeric:tabular-nums}
.runplay-act i{font-style:normal;color:var(--rp-teal-hi)}
.runplay-act:empty{display:none}
.runplay-speed{right:14px;bottom:14px;padding:5px 9px;font:400 13.5px/1.2 var(--sans,inherit);color:var(--rp-text-2)}
.runplay-say{left:14px;bottom:14px;max-width:min(64%,36rem);padding:10px 13px;font-size:15px;line-height:1.45;color:var(--rp-text)}
.runplay-say[hidden]{display:none}
.runplay-bar{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--rp-line);background:var(--rp-bg)}
.runplay-bar button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:1px solid var(--rp-line);
  border-radius:8px;font:400 13.5px/1 var(--sans,inherit);color:var(--rp-text)}
.runplay-bar button:hover{border-color:var(--rp-text-3)}
.runplay-bar button:focus-visible{outline:2px solid var(--rp-text);outline-offset:2px}
.runplay-bar svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.runplay-bar .runplay-full{padding:0 9px}
.runplay-seek{flex:1;min-width:0;height:18px;margin:0;accent-color:var(--rp-teal);cursor:pointer}
.runplay-time{font:400 13.5px/1 var(--sans,inherit);color:var(--rp-text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.runplay:fullscreen{border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center}
.runplay:fullscreen .runplay-view{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#000}
.runplay:fullscreen video{width:auto;max-width:100%;height:100%;max-height:100%}
/* a narrow player: the task and the model's words stand under the picture, not on it */
@container (max-width:560px){
  .runplay-task,.runplay-say{position:static;max-width:none;border:0;border-top:1px solid var(--rp-line);border-radius:0;background:var(--rp-bg);padding:10px 12px}
  .runplay-say{min-height:4.4em}
  .runplay-act{top:8px;right:8px;padding:5px 8px}
  .runplay-speed{position:absolute;right:8px;top:auto;bottom:auto;left:8px;right:auto;top:8px}
  .runplay-view{display:flex;flex-direction:column}
  .runplay-time{display:none}
}
