#evaluation-videos{margin:22px 0;--early:#3898ff;--late:#ff961e;--ink:#28343e;--line:#d9dfe4;--soft:#f4f6f8}
#evaluation-videos h4{margin:0;font-size:15px}
.ep-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 132px;gap:14px;align-items:start;margin-top:14px}
.ep-head{display:flex;align-items:baseline;gap:8px;margin:0 0 4px;font-size:12.5px;color:#59616a;line-height:1.3}
.ep-head+.ep-tiles+.ep-head{margin-top:10px}
.ep-key{margin-left:auto;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ep-key i{width:34px;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--early),var(--late))}
.ep-tiles{display:grid;gap:3px}
#ep-frames{grid-template-columns:repeat(8,minmax(0,1fr))}
#ep-tokens{grid-template-columns:repeat(6,minmax(0,1fr))}
#ep-tokens .ep-tile img,#ep-tokens .ep-tile.off::before{aspect-ratio:1}
.ep-tile{all:unset;box-sizing:border-box;display:block;cursor:pointer;min-width:0;border-radius:3px;outline-offset:1px}
.ep-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:top;border-radius:3px;background:#e6eaed}
.ep-tile span{display:block;font-size:11px;line-height:1.35;text-align:center;color:#59616a;font-variant-numeric:tabular-nums;white-space:nowrap}
.ep-tile:hover img{filter:brightness(1.08)}
.ep-tile:focus-visible{outline:2px solid #275d89}
.ep-tile[aria-pressed=true] img{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.ep-tile[aria-pressed=true]{background:none;color:inherit}
.ep-tile[aria-pressed=true] span{color:var(--ink);font-weight:700}
.ep-tile.off{cursor:default}
.ep-tile.off::before{content:"";display:block;aspect-ratio:4/3;border:1px dashed #c3cbd2;border-radius:3px}
.ep-tile.off span{color:#a9b2ba}
.ep-hint{font-size:12.5px;color:#59616a;margin:8px 0 0}
.ep-run video{display:block;width:100%;border-radius:4px;background:#e6eaed}
.ep-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.ep-controls button{font-size:13px;padding:4px 10px}
.ep-controls input{flex:1;min-width:70px;accent-color:#275d89}
.ep-controls output{font-size:13px;font-variant-numeric:tabular-nums}
#ep-action{font-size:12.5px;color:#59616a;margin:5px 0 0}
.ep-map{margin-top:12px;background:var(--soft);border-radius:6px;padding:8px 12px 6px}
.ep-map-head{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;line-height:1.4;margin-bottom:5px}
#ep-time{font-variant-numeric:tabular-nums;white-space:nowrap}
#ep-track{position:relative;height:42px;cursor:ew-resize;touch-action:none;border-radius:3px;background:#fff;outline-offset:2px}
#ep-track:focus-visible{outline:2px solid #275d89}
#ep-track *{position:absolute;pointer-events:none}
.ep-phase{top:0;bottom:0;right:0;background:#eaf0f5}
.ep-tick{top:5px;width:3px;height:11px;margin-left:-1px;border-radius:1px;background:var(--ink)}
.ep-tick.sel{height:15px;top:3px;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--ink)}
.ep-bar{height:6px;border-radius:3px;background:linear-gradient(90deg,var(--early),var(--late))}
.ep-bar.off{background:none;border:1px solid #bcc5cc}
.ep-bar.sel{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--ink)}
.ep-playhead{top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:#c8102e}
.ep-map-foot{display:flex;font-size:11.5px;color:#59616a;margin-top:3px}
.ep-map-foot button{all:unset;cursor:pointer;color:#35566e;text-decoration:underline;text-underline-offset:2px}
.ep-map-foot span{margin-left:auto;display:flex;gap:12px}
.ep-map-foot b{font-weight:400;display:inline-flex;align-items:center;gap:4px}
.ep-map-foot b::before{content:"";display:inline-block}
.ep-map-foot .k-frame::before{width:3px;height:10px;background:var(--ink)}
.ep-map-foot .k-motion::before{width:22px;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--early),var(--late))}
#ep-inspector{margin-top:10px;border:1px solid var(--line);border-radius:6px;padding:10px 12px 12px}
.ep-insp-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.ep-insp-head p{margin:0;font-size:13px;color:#59616a;flex:1}
#ep-close{font-size:12px;padding:2px 9px}
.ep-pair{display:grid;grid-template-columns:repeat(3,minmax(0,184px));gap:10px}
.ep-pair figure,.ep-one figure{margin:0}
.ep-pair img,.ep-pair canvas{display:block;width:100%;aspect-ratio:1;border-radius:3px;background:#e6eaed}
.ep-pair figcaption,.ep-one figcaption{font-size:12.5px;line-height:1.4;margin-top:3px}
.ep-one{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:16px;align-items:center}
.ep-one img{display:block;width:100%;border-radius:3px}
.ep-one p{font-size:14.5px;margin:0}
@media(max-width:650px){
  .ep-grid{grid-template-columns:1fr;gap:10px}
  .ep-run{order:-1;position:sticky;top:44px;z-index:2;background:#fff;padding-bottom:4px}
  .ep-key{display:none}
  .ep-map-head{flex-direction:column;gap:0}
  .ep-one{grid-template-columns:110px 1fr;gap:10px}
}

.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}
.tabs button{font-size:13px;padding:4px 11px}
.tabpanel>h3:first-child,.tabpanel>h4:first-child{margin-top:8px}
.ep-goal{font-size:14.5px;margin:0 0 4px}
.ep-main{margin:0}
.ep-main figcaption,.ep-others figcaption{font-size:12.5px;line-height:1.4;margin-top:3px}
.ep-others{display:flex;flex-direction:column;gap:8px}
.ep-others figure{margin:0}
.ep-others video,.ep-others .ep-ph{display:block;width:100%;aspect-ratio:2/1;border-radius:4px;background:#e6eaed}
.ep-others p{font-size:12.5px;line-height:1.3;color:#59616a;margin:0}
.ep-ph{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12.5px;color:#59616a;border:1px dashed #c3cbd2;border-radius:4px}
#ep-pending{padding:48px 16px;margin:10px 0}
#ep-pending[hidden],#ep-live[hidden]{display:none}
.rc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:12px}
.rc-pair figure{margin:0}
.rc-pair img,.rc-pair canvas{display:block;width:100%;aspect-ratio:1;border-radius:3px;background:#e6eaed;image-rendering:auto}
.rc-pair figcaption{font-size:12.5px;margin-top:3px}
#analysis{padding-bottom:48px}
@media(max-width:650px){.ep-others{flex-direction:row;flex-wrap:wrap}.ep-others p{width:100%}.ep-others figure{width:calc(50% - 4px)}}
#reconstruction{padding-bottom:0}
.gallery-select{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;margin:10px 0}
.gallery-select label{display:flex;align-items:center;gap:6px}
.gallery-select select{max-width:100%;font:inherit;border:1px solid #c3cbd2;border-radius:4px;padding:5px 8px;background:#fff;color:#28343e}
.gallery-select span,.gallery-note{color:#59616a;font-size:12.5px}
.ep-grid{grid-template-columns:minmax(230px,.85fr) minmax(0,2fr)}
.ep-comparisons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.ep-comparisons>.ep-model:first-child{grid-column:1/-1}
.ep-model{margin:0;min-width:0}
.ep-model video,.ep-model .ep-ph{display:block;width:100%;aspect-ratio:2/1;background:#e6eaed;border-radius:4px}
.ep-model .ep-ph{display:flex}
.ep-model figcaption{font-size:12px;line-height:1.4;margin-top:5px}
[hidden]{display:none!important}
#rc-source-video{width:100%;aspect-ratio:2/1;object-fit:contain;background:#e6eaed}
.ep-memory{min-width:0;container-type:inline-size}
#ep-frames,#ep-tokens{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;border:1px solid var(--line);border-radius:5px;padding:4px;box-sizing:border-box}
#ep-frames{height:calc(38cqw + 44px)}
#ep-tokens{height:clamp(175px,calc(75cqw + 56px),280px)}
.ep-memory .ep-head{min-height:22px}
#ep-live{overflow-anchor:none}
#ep-live .ep-model figcaption{min-height:2.8em}
#ep-action{min-height:2.8em}
#ep-status{min-height:2.8em}
#rc-state{flex-basis:100%;min-height:1.4em}
.gallery-note{margin:8px 12px}
.clipframe>.ep-ph{min-height:0;height:100%;box-sizing:border-box}
.clips[data-count="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
.clips[data-count="5"] figcaption{font-size:12px;overflow-wrap:anywhere}
@media(max-width:1000px){.clips[data-count="5"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.clips[data-count="5"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.clips[data-count="5"]{grid-template-columns:1fr}}
@media(max-width:900px){.ep-grid{grid-template-columns:1fr}.ep-run{order:-1}}
@media(max-width:650px){.ep-run{position:static}.ep-comparisons{gap:5px}.ep-model figcaption{font-size:11px}.ep-controls{gap:4px}.gallery-select{gap:8px}.gallery-select select{max-width:240px}}
#evaluation-videos .ep-comparisons{display:block}.ep-baselines{margin-top:7px;padding:5px 0}.ep-baselines>summary{font-size:13px;color:#35566e}.ep-baseline-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}.ep-baseline-pair figure{margin:0}#evaluation-videos .ep-model figcaption{min-height:1.4em}#evaluation-videos .gallery-select{gap:7px}#ep-case-meta{min-width:14ch;font-variant-numeric:tabular-nums;text-align:center}.event-jump{font-size:14px;padding:4px 8px}
#sg-detail:not([open]) #ep-subgoals{display:none}#sg-detail{margin:8px 0}#sg-detail>summary{font-size:13px;color:#35566e}
@media(max-width:650px),(pointer:coarse){#ep-prev-case,#ep-next-case,#ep-task{min-width:44px;min-height:44px}}
#evaluation-videos .task-navigation{display:flex;justify-content:space-between;align-items:center;gap:8px 18px}.ep-task-nav,.ep-case-nav{display:flex;align-items:center;gap:5px}.ep-task-nav select{font-weight:700;color:#263c4c}.ep-task-nav button{font-size:18px}.ep-case-nav span{font-size:12px;color:#586770}.ep-case-nav button{min-width:27px;padding:4px 7px}.ep-case-nav button[aria-pressed=true]{background:#284c65;color:#fff}@media(pointer:coarse),(max-width:650px){.ep-task-nav button,.ep-case-nav button{min-height:44px;min-width:44px}}
.ep-case-id{flex-basis:100%;font-size:12px;color:#586770;text-align:right;margin-top:-5px}

#analysis-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#analysis-tabs button {min-height:44px;padding:7px 9px;line-height:1.3}
#analysis .tabpanel[hidden] {display:none}
@media(max-width:650px){#analysis-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1128 重构：rollout 浏览器——左侧大视频，右侧 episode 方格与 Memory 面板，下面一条时间轴 */
#evaluation-videos .ep-goal{display:flex;align-items:baseline;font-size:14px;line-height:1.5;margin:0 0 10px;color:#3c4650;background:var(--soft);border-radius:5px;padding:7px 12px}
.ep-card{border:1px solid var(--line);border-radius:8px;padding:12px}
#evaluation-videos .ep-grid{grid-template-columns:minmax(0,1.85fr) minmax(210px,1fr);gap:16px;margin-top:0}
.ep-methods{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ep-method{display:inline-flex;align-items:center;gap:6px;border:1px solid #cdd3d8;border-radius:999px;padding:3px 11px;font-size:12.5px;line-height:1.5;background:#fff;color:#293741}
.ep-method i{font-style:normal;font-weight:700}
.ep-method[data-outcome=success] i{color:#1f7a4d}.ep-method[data-outcome=failure] i{color:#b3261e}
span.ep-method{background:#28343e;color:#fff;border-color:#28343e}
span.ep-method[data-outcome=success] i{color:#8fe0b4}span.ep-method[data-outcome=failure] i{color:#ffa79d}
button.ep-method[aria-pressed=true]{background:#e6ecf1;color:#293741;border-color:#7e909d}
#evaluation-videos .ep-model{position:relative}
.ep-model-name{position:absolute;left:6px;top:6px;font-size:11px;line-height:1.5;background:#ffffffe6;border-radius:3px;padding:0 6px}
#evaluation-videos .ep-baseline-pair{margin-top:8px}
#evaluation-videos .ep-controls{flex-wrap:nowrap;gap:10px;margin-top:8px}
#evaluation-videos #ep-play{min-width:58px}
#ep-action{flex:1;min-width:0;min-height:0;margin:0;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#293741}
#evaluation-videos #ep-time{font-size:12.5px;color:#59616a}
.ep-memory .ep-head{justify-content:space-between;margin:0 0 6px;min-height:0}
#evaluation-videos .ep-case-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:16px}
#evaluation-videos .ep-case-nav button{min-width:0;padding:5px 0;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}
#evaluation-videos .ep-case-nav button[data-outcome=success]{border-color:#1f7a4d;color:#1f7a4d}
#evaluation-videos .ep-case-nav button[data-outcome=failure]{border-color:#b3261e;color:#b3261e}
#evaluation-videos .ep-case-nav button[data-outcome=success][aria-pressed=true]{background:#1f7a4d;color:#fff}
#evaluation-videos .ep-case-nav button[data-outcome=failure][aria-pressed=true]{background:#b3261e;color:#fff}
.ep-sub{display:flex;justify-content:space-between;font-size:12px;line-height:1.4;color:#59616a;margin:8px 0 3px;font-variant-numeric:tabular-nums}
#evaluation-videos #ep-frames,#evaluation-videos #ep-tokens{border:0;border-radius:0;padding:0;gap:3px;scrollbar-gutter:auto}
#evaluation-videos #ep-frames{height:auto;min-height:calc(37.5cqw + 1px)}
#evaluation-videos #ep-tokens{height:calc(50cqw + 1px)}
#evaluation-videos .ep-map{margin-top:12px;padding:6px 12px}
#evaluation-videos #ep-inspector{margin-top:12px}
#evaluation-videos .ep-pair figcaption{margin:0 0 3px}
@media(max-width:700px){#evaluation-videos .ep-grid{grid-template-columns:1fr}}
#evaluation-videos .ep-grid{grid-template-columns:minmax(0,2.4fr) minmax(200px,1fr)}
@media(max-width:700px){#evaluation-videos .ep-grid{grid-template-columns:1fr}#evaluation-videos .ep-controls{flex-wrap:wrap}#ep-action{order:3;flex-basis:100%;white-space:normal}#evaluation-videos #ep-time{margin-left:auto}}
