.rs-block{padding:0;margin:14px 0 24px}.rs-block-title{font-size:18px;margin:0 0 8px}.rs-short{--rs-ink:#28343e;--rs-line:#d9dfe4;color:var(--rs-ink);font-family:inherit;line-height:1.4}.rs-short *{box-sizing:border-box}.rs-short [hidden]{display:none!important}.rs-short button,.rs-condition{font:inherit;font-size:12px;border:1px solid #ccd4db;border-radius:4px;background:#fff;color:var(--rs-ink);padding:4px 7px}.rs-short button{cursor:pointer}.rs-short button:disabled{opacity:.45;cursor:default}.rs-short button[aria-pressed=true]{background:#28343e;color:#fff}.rs-short button:focus-visible,.rs-short input:focus-visible,.rs-condition:focus-visible{outline:3px solid #d18334;outline-offset:2px}.rs-header{display:flex;align-items:center;gap:6px}.rs-title{flex:1;min-width:0;font-size:14px}.rs-condition{max-width:140px}.rs-count{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.rs-change,.rs-effect{font-size:12px;margin:6px 0;overflow-wrap:anywhere}.rs-effect{color:#334b5f}.rs-workspace{display:grid;grid-template-columns:124px minmax(0,1fr);gap:12px;align-items:start;margin-top:8px}.rs-main-column{min-width:0}.rs-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rs-pair>figure{margin:0;min-width:0}.rs-video-frame{position:relative;background:#edf0f2;aspect-ratio:1;border-radius:4px;overflow:hidden}.rs-main-video{display:block;width:100%;height:100%;object-fit:contain}.rs-pair figcaption{font-size:11px;line-height:1.3;margin-top:4px;min-height:2.6em;overflow-wrap:anywhere}.rs-frozen{position:absolute;top:5px;right:5px;padding:2px 5px;border-radius:3px;background:#ffffffe8;font-size:10px}.rs-press{position:absolute;top:5px;left:5px;font:600 11px Arial,sans-serif;color:#333;background:#ffffffe8;border:1px solid #9aa8b2;border-radius:3px;padding:3px 5px}.rs-press[data-pressed=true]{background:#006e73;color:white;border-color:#006e73}
.rs-demo-inset{position:absolute;right:4px;bottom:4px;width:37%;min-width:86px;max-width:136px;border:1px solid #a7b3bb;border-radius:4px;background:#fffffff2;box-shadow:0 1px 5px #0002;overflow:hidden}.rs-demo-header{display:flex;justify-content:space-between;gap:5px;padding:2px 4px;font-size:9px;line-height:1.2;white-space:nowrap}.rs-demo-clock{font-variant-numeric:tabular-nums;color:#526778;margin-left:3px}.rs-demo-video{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#e8edef}.rs-demo-controls{display:flex;gap:3px;align-items:center;padding:2px 3px}.rs-demo-controls .rs-demo-toggle{font-size:10px;width:22px;height:20px;min-width:22px;padding:0;line-height:18px}.rs-demo-seek{flex:1;min-width:0;width:25px;height:16px;margin:0;accent-color:#547b92}.rs-unavailable .rs-demo-video{opacity:.35}.rs-controls{display:flex;align-items:center;gap:7px;margin:6px 0}.rs-controls input{flex:1;min-width:40px;accent-color:#376d98}.rs-controls output{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:117px;text-align:right}.rs-cuts,.rs-status{font-size:10px;color:#5b6872;margin:4px 0;overflow-wrap:anywhere}.rs-cuts:empty{display:none}.rs-marks{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}.rs-marks button{font-size:10px;padding:3px 5px;border-color:#b6c6d4}
.rs-memory{min-width:0;background:#f3f6f8;border:1px solid #dce3e8;border-radius:4px;padding:7px}.rs-rail-title{display:block;font-size:11px;line-height:1.2}.rs-rail-range{display:block;font-size:10px;color:#61717e;font-variant-numeric:tabular-nums;margin:2px 0 5px}.rs-window-list{display:grid;gap:3px;max-height:243px;overflow:auto;overscroll-behavior:contain}.rs-window-list .rs-window{display:flex;gap:4px;align-items:center;padding:4px;font-size:10px;min-height:24px;width:100%;text-align:left;background:#fff;color:#344958}.rs-window-list .rs-window[aria-pressed=true]{background:#ddeaf2;border-color:#547b92;color:#243c4e}.rs-window-index{font-size:10px;width:12px;text-align:center}.rs-window-bars{display:grid;gap:3px;flex:1;min-width:0}.rs-window-track{display:block;height:5px;background:#dce4e9;position:relative;border-radius:2px;overflow:hidden}.rs-window-bar{position:absolute;top:0;height:100%;min-width:2px;border-radius:2px}.rs-receiver{background:#3d779c}.rs-donor{background:#d18636}.rs-window-selection{display:block;font-size:10px;line-height:1.35;margin-top:6px;color:#3a5263;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rs-window-status{font-size:9px;line-height:1.3;color:#6a5b42;margin:4px 0 0}.rs-window-status:empty{display:none}.rs-empty{font-size:13px;margin:0}
@media(max-width:640px){.rs-workspace{grid-template-columns:1fr;gap:7px}.rs-memory{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;padding:5px 6px}.rs-rail-title{font-size:10px}.rs-rail-range{font-size:10px;margin:0;text-align:right}.rs-window-list{grid-column:1/-1;display:flex;gap:3px;max-height:none;overflow-x:auto}.rs-window-list .rs-window{flex:0 0 34px;padding:3px;min-height:23px;width:34px;gap:2px}.rs-window-index{width:9px;font-size:9px}.rs-window-selection{grid-column:1/-1;margin:0;font-size:10px}.rs-window-status{grid-column:1/-1;margin:0}.rs-pair{gap:5px}.rs-title{font-size:12px}.rs-condition{font-size:11px;max-width:116px;padding:3px}.rs-header{gap:4px}.rs-short .rs-header button{padding:3px 5px}.rs-count{font-size:11px}.rs-change,.rs-effect{font-size:11px}.rs-pair figcaption{font-size:10px;min-height:2.6em}.rs-demo-inset{width:37%;min-width:56px;max-width:90px;right:3px;bottom:3px}.rs-demo-header{padding:2px;font-size:8px;gap:4px}.rs-demo-controls{padding:1px 2px;gap:2px}.rs-demo-controls .rs-demo-toggle{width:18px;min-width:18px;height:16px;line-height:14px;font-size:9px}.rs-demo-seek{height:13px}.rs-controls{gap:4px;flex-wrap:wrap}.rs-controls output{min-width:0;font-size:10px}.rs-press{top:3px;left:3px;font-size:9px;padding:2px 3px}.rs-frozen{top:3px;right:3px;font-size:8px;padding:2px 3px}}
.rs-demo-inset{aspect-ratio:1}.rs-demo-video{height:100%}.rs-demo-header{position:absolute;top:0;left:0;right:0;z-index:1;background:#ffffffe8}.rs-demo-controls{position:absolute;bottom:0;left:0;right:0;z-index:1;background:#ffffffe8}
@media(max-width:360px){.rs-demo-inset{min-width:48px}.rs-demo-header{font-size:7px;gap:2px}.rs-demo-clock{margin-left:2px}}
.rs-workspace{display:block}.rs-full-timeline{margin:8px 0 4px;padding:7px 9px 5px;background:#f3f6f8;border-radius:5px}.rs-timeline-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;margin-bottom:4px}.rs-timeline-time{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.rs-timeline-phases{display:flex;font-size:9px;line-height:15px;height:15px;overflow:hidden}.rs-timeline-demo{flex:none;background:#fff;text-align:center;overflow:hidden;white-space:nowrap}.rs-timeline-exec{flex:1;min-width:0;background:#e4ecf2;text-align:center;overflow:hidden;white-space:nowrap}.rs-timeline-body{position:relative;height:51px;border-radius:2px;cursor:ew-resize;touch-action:none;outline-offset:3px}.rs-timeline-body:focus-visible{outline:2px solid #275d89}.rs-timeline-track{position:absolute;left:0;right:0;height:8px}.rs-timeline-track[data-row="0"]{top:24px}.rs-timeline-track[data-row="1"]{top:36px}.rs-short .rs-timeline-window{position:absolute;top:0;height:7px;min-width:2px;padding:0;border:0;border-radius:2px;background:linear-gradient(90deg,#3898ff,#ff961e);opacity:.95;cursor:pointer;outline-offset:1px}.rs-short .rs-timeline-window.is-not-visible{background:none;border:1px solid #aebcc6;opacity:.8}.rs-short .rs-timeline-window.is-replaced{outline:2px solid #b51f43}.rs-short .rs-timeline-window.is-selected{box-shadow:0 0 0 4px #28343e55}.rs-short .rs-timeline-window:focus-visible{outline:3px solid #8b1531}.rs-timeline-call,.rs-timeline-sample,.rs-timeline-boundary,.rs-timeline-cursor{position:absolute;pointer-events:none}.rs-timeline-call{top:2px;width:2px;height:5px;background:#a4b1ba;margin-left:-1px}.rs-timeline-sample{top:11px;width:2px;height:8px;background:#334957;margin-left:-1px}.rs-timeline-samples{position:absolute;inset:0;pointer-events:none}.rs-timeline-boundary{top:0;bottom:0;width:0;border-left:1px dashed #8b9dab}.rs-timeline-cursor{top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:#c8102e;z-index:2}.rs-timeline-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:9px;color:#596a76;margin-top:4px}.rs-timeline-legend span{display:inline-flex;align-items:center;gap:5px}.rs-legend-gradient:before,.rs-legend-replaced:before{content:"";display:inline-block;width:21px;height:6px;border-radius:1px}.rs-legend-gradient:before{background:linear-gradient(90deg,#3898ff,#ff961e)}.rs-legend-replaced:before{outline:2px solid #b51f43;background:#fff}.rs-timeline-selection{display:block;margin-top:4px;font-size:10px;color:#496071}.rs-timeline-unrecorded{font-size:11px;margin:0;color:#65747e}
@media(max-width:640px){.rs-full-timeline{padding:6px;margin-top:6px}.rs-timeline-head,.rs-timeline-time{font-size:10px}.rs-timeline-head{gap:4px}.rs-timeline-legend{gap:10px;font-size:8px}.rs-timeline-selection{font-size:9px}}
.rs-timeline-eof{position:absolute;width:4px;margin-left:-2px;cursor:help;z-index:1;border-left:1px dotted #526778}.rs-timeline-eof[data-source="original"]{top:0;height:21px}.rs-timeline-eof[data-source="replacement"]{top:28px;height:20px;border-color:#85425e}.rs-timeline-eof:before{content:"";position:absolute;left:-3px;top:0;width:5px;height:5px;border-radius:50%;background:#526778}.rs-timeline-eof[data-source="replacement"]:before{background:#85425e}

/* 1128 重构：任务胶囊切换；标签在视频上方；右侧读数面板；跳剪与按压时刻画在时间轴上 */
.rs-block{margin:0}.rs-tasks{margin:4px 0 12px}
.rs-header{justify-content:space-between;min-height:30px}.rs-header .pills{margin:0}
.rs-short .pills button{border-radius:999px;padding:3px 11px}
.rs-short .pager{margin-left:auto}
.rs-short .pager button{border-radius:999px;width:28px;height:28px;padding:0;font-size:15px;line-height:1}
.rs-title{flex:none;font-size:12.5px;font-weight:400;color:#59616a;margin-right:4px}
.rs-stage{display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:16px;align-items:start;margin-top:8px}
.rs-pair figcaption{margin:0 0 4px;min-height:0;font-size:12.5px;font-weight:700;text-align:center}
.rs-pair>figure:nth-child(2) figcaption{color:#b51f43}
.rs-readout{margin-top:24px;font-size:12.5px;line-height:1.5}
.rs-readout h5{display:block;margin:0 0 3px}
.rs-readout dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 10px;margin:0 0 16px}
.rs-readout dt{color:#59616a}.rs-readout dd{margin:0;font-weight:700;overflow-wrap:anywhere}.rs-readout dd.is-donor{color:#b51f43}
.rs-ghost-note{display:none}
.rs-ghost-key{font-size:12px;color:#59616a;margin:0}
.rs-ghost-key::before{content:"";display:inline-block;width:9px;height:9px;background:#ffdc6d88;border:1.5px solid #977224;border-radius:1px;margin-right:6px}
.rs-demo-header{justify-content:center}
.rs-full-timeline{margin:12px 0 4px}
.rs-controls{gap:14px}.rs-controls output{margin-left:auto;min-width:0;font-size:12px}
.rs-timeline-legend{margin:0;font-size:11px}
.rs-timeline-cut{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,#b9c4cc 0 2px,transparent 2px 6px);cursor:help}
.rs-timeline-press{position:absolute;top:0;bottom:0;width:0;margin-left:-1px;border-left:2px solid #526778;cursor:help;z-index:1}
.rs-timeline-press::before{content:"";position:absolute;left:-5px;top:-1px;border:4px solid transparent;border-top:6px solid #526778}
.rs-timeline-press[data-role=donor]{border-color:#b51f43}.rs-timeline-press[data-role=donor]::before{border-top-color:#b51f43}
@media(max-width:640px){.rs-stage{grid-template-columns:1fr}.rs-readout{margin-top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}}
.rs-short .rs-condition{max-width:none;border:0;padding:0;background:none;flex-wrap:nowrap}
/* 1128 清理：时间轴上只剩窗口条、跳剪区、按压刻度与执行段起点，轨道相应收矮 */
.rs-timeline-body{height:30px}.rs-timeline-track[data-row="0"]{top:6px}.rs-timeline-track[data-row="1"]{top:18px}

/* 1128 项目约定：memory 时间轴全站一种画法，与 Policy rollouts 的 #ep-track 同尺寸同配色。
   底板 #f4f6f8、轨道高 42px、执行段底色 #eaf0f5、窗口条 6px 圆角 3px 两行（top 22/31px）、
   渐变 #3898ff→#ff961e、未进入记忆的窗口为 #bcc5cc 描边、播放头 #c8102e。改这里必须同时改 episode.css。 */
.rs-full-timeline{background:#f4f6f8;border-radius:6px;padding:6px 12px;margin:12px 0 4px}
.rs-timeline-phases{font-size:10px;line-height:16px;height:16px;color:#59616a}
.rs-timeline-demo,.rs-timeline-exec{background:none;text-align:left}
.rs-timeline-body{height:42px;border-radius:3px}
.rs-timeline-track{height:6px}.rs-timeline-track[data-row="0"]{top:22px}.rs-timeline-track[data-row="1"]{top:31px}
.rs-short .rs-timeline-window{height:6px;border-radius:3px;opacity:1;background:linear-gradient(90deg,#3898ff,#ff961e)}
.rs-short .rs-timeline-window.is-not-visible{background:none;border:1px solid #bcc5cc;opacity:1}
.rs-short .rs-timeline-window.is-replaced{outline:2px solid #b51f43;outline-offset:1px}
.rs-timeline-cursor{top:-3px;bottom:-3px;background:#c8102e}
.rs-timeline-legend{font-size:11.5px;color:#59616a;gap:12px}
.rs-legend-gradient:before,.rs-legend-replaced:before{width:22px;height:6px;border-radius:3px}
/* 帧刻度与图例：同 Policy rollouts 的 .ep-tick 与 .k-frame */
.rs-timeline-sample{top:5px;width:3px;height:11px;margin-left:-1px;border-radius:1px;background:#28343e}
.rs-legend-frame:before{content:"";display:inline-block;width:3px;height:10px;background:#28343e}

/* 1128 四个画面重排：左右两组（Original / Donor），每组「示范（小）→ 策略的动作（大）」，结果写在各画面正下方 */
.rs-stage{display:block}
.rs-pair.rs-main-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.rs-flow{display:grid;grid-template-columns:minmax(0,.56fr) auto minmax(0,1fr);gap:8px;align-items:center}
.rs-arrow{font-size:18px;line-height:1;color:#59616a;margin-top:-38px}
.rs-cell{min-width:0}
.rs-short .rs-demo-inset{position:static;width:auto;min-width:0;max-width:none;aspect-ratio:1;border:0;border-radius:4px;box-shadow:none;background:#edf0f2;overflow:hidden}
.rs-short .rs-demo-video{display:block;width:100%;height:100%;object-fit:contain}
.rs-value{font-size:12.5px;line-height:1.4;font-weight:700;margin:5px 0 0;text-align:center;min-height:1.4em;overflow-wrap:anywhere}
.rs-group[data-side=donor] .rs-value{color:#b51f43}
.rs-kind{display:block;margin:0;text-align:center}
.rs-readout{margin:6px 0 0}
@media(max-width:640px){.rs-pair.rs-main-pair{grid-template-columns:1fr;gap:14px}.rs-readout{display:block}}
