/* Small timed indicators, with one stable play/pause control per gallery. */
.timed-choice-progress{display:block;height:2px;border-radius:2px;overflow:hidden;background:#e0d7eb;opacity:0;pointer-events:none}
.timed-choice-progress i{display:block;width:100%;height:100%;background:#6940ab;transform:scaleX(0);transform-origin:left;border-radius:inherit}
.timed-gallery :is([aria-pressed="true"],[aria-selected="true"])>.timed-choice-progress{opacity:1}
.timed-gallery :is([aria-pressed="true"],[aria-selected="true"])>.timed-choice-progress i{transform:scaleX(var(--gallery-progress,0))}
.timed-gallery-controls{display:flex;justify-content:flex-end;align-items:center;gap:14px;min-width:0}
.timed-gallery-controls>span{font-size:12px;line-height:1.6;color:#7b7283}
.timed-gallery .timed-gallery-controls :is(button.media-toggle,button.media-replay){display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;font-size:0;line-height:1;white-space:nowrap;cursor:pointer;background:#eae3f2;color:#59486d;transition:background .18s}
.timed-gallery .timed-gallery-controls button:hover{background:#dfd3ed}
.timed-gallery-controls button:focus-visible{outline:2px solid #6940ab;outline-offset:3px}
.data-overview>.timed-gallery-controls,.training-overview>.timed-gallery-controls{grid-column:1/-1;padding:0 10px 18px;margin-top:-14px}
.data-source-options [data-data-source]>.timed-choice-progress{margin-top:10px}
.training-modes [data-training-mode]{position:relative}
.training-modes .timed-choice-progress{position:absolute;bottom:6px;left:18px;right:18px}
.research-study.timed-gallery{row-gap:30px}
.timed-gallery .research-case-controls{position:relative;top:auto;z-index:auto;align-items:center;gap:8px}
.research-case-controls [data-case]{position:relative}
.research-case-controls .timed-choice-progress{position:absolute;bottom:4px;left:17px;right:17px}
.research-case-controls .timed-gallery-controls{margin-left:auto;gap:10px}
.method-gallery .timed-gallery-controls{justify-content:space-between}
/* Match the original cropped panel's ratio rather than stretching it to the stage. */
.method-gallery .recording>a.loop-field-window{flex:0 0 auto;align-self:center;width:min(100%,298px);height:auto;aspect-ratio:660/488;margin:auto}
.method-gallery .recording .loop-field-window>img.recording-image{position:absolute;left:-32.575758%;top:-14.754098%;width:160%;height:174.590164%;max-width:none;max-height:none;object-fit:fill;padding:0}
.method-gallery .recording-options{padding:5px 0 8px;gap:6px;background:transparent;border:0;justify-content:center;min-height:36px}
.method-gallery .recording-options button{font:12px/1.5 var(--font);padding:6px 13px;min-height:32px}
.method-slide-art:has(#preview-num-defects){height:340px}
.method-gallery .recording:has(.recording-options)>a.loop-field-window{width:min(100%,333px)}
.method-gallery .recording:has(.recording-options) img.recording-image{height:178px;max-height:178px}
.method-gallery .recording:has(.recording-options) .loop-field-window>img.recording-image{height:174.590164%;max-height:none}
.method-gallery .recording:has([data-recording-choice="numerics-solute-edge"][aria-pressed="true"])>a.loop-field-window{width:100%;aspect-ratio:1000/330}
.method-gallery .recording:has([data-recording-choice="numerics-solute-edge"][aria-pressed="true"]) .loop-field-window>img.recording-image{left:-5%;top:-28.787879%;width:110.4%;height:200%;max-height:none}
@media(max-width:800px){.research-case-controls .timed-gallery-controls>span{display:none}.research-study.timed-gallery{row-gap:24px}}
@media(max-width:520px){.data-overview>.timed-gallery-controls,.training-overview>.timed-gallery-controls{padding:0 0 14px;margin-top:-8px}.research-case-controls .timed-gallery-controls{width:100%;margin-top:3px;justify-content:flex-end}.research-case-controls .timed-gallery-controls>span{display:block;margin-right:auto}.research-case-controls [data-case]{padding-bottom:13px}.method-slide-art:has(#preview-num-defects){height:300px}.method-gallery .recording>a.loop-field-window,.method-gallery .recording:has(.recording-options)>a.loop-field-window{width:min(100%,270px)}}
@media(prefers-reduced-motion:reduce){.timed-gallery .timed-gallery-controls button{transition:none}}
/* Case narratives can cycle; analytical fields and parameter controls stay manual. */
.characterization-case-layout.timed-gallery .characterization-case-options{padding-bottom:0}
.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]{display:block;padding:18px 16px;text-align:left}
.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]>span:first-child{font-size:16px;line-height:1.6;color:inherit}
.characterization-case-layout .timed-choice-progress{margin-top:12px}
.characterization-case-options>.timed-gallery-controls{padding:20px 12px 8px;justify-content:space-between}
@media(max-width:800px){.characterization-case-layout.timed-gallery .characterization-case-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.characterization-case-options>.timed-gallery-controls{grid-column:1/-1;justify-content:space-between}.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]>span:first-child{font-size:14px}.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]>.timed-choice-progress{display:block}}
@media(max-width:520px){.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]{padding:13px 10px}.characterization-case-layout.timed-gallery .characterization-case-options>[data-test-case]>span:first-child{font-size:12px}.characterization-case-options>.timed-gallery-controls{padding:12px 8px 0}}
