/* The listening controls form one group, independent of the trial action. */
#proof { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr); align-items:center; margin-inline:auto; border-bottom:1px solid var(--line); }
#proof .room-visual { position:relative; grid-column:1; grid-row:1; width:100%; aspect-ratio:86/48; margin:0; justify-self:stretch; align-self:center; overflow:hidden; border-radius:var(--ui-media-radius); background:transparent; isolation:isolate; }
.room-visual .room-clip { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
/* The dry take is the floor and never fades -- crossfading both dips dark at
   the midpoint over this dark picture. Only the wet clip animates, over the
   already-opaque dry frame. */
.room-visual .room-clip[data-room="wet"] { opacity:0; visibility:hidden; transition:opacity 220ms ease, visibility 0s linear 220ms; }
.room-visual .room-clip[data-room="wet"].on { opacity:1; visibility:visible; transition-delay:0s; }
/* The loop returns through the first frame, like the section films. */
.room-visual .room-first-frame { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; opacity:0; pointer-events:none; transition:opacity 180ms ease-out; }
.room-visual.is-returning .room-first-frame { opacity:1; transition-duration:650ms; transition-timing-function:ease-in-out; }
#proof .proof-inner { grid-column:2; grid-row:1; width:100%; max-width:30rem; margin:0; padding:0; }
#proof .proof-heading > p:last-child { max-width:29ch; margin:0; }
#proof .comparison-player { width:min(100%,25rem); gap:.8rem; --player-surface:rgb(63 57 40 / .06); --player-surface-hover:rgb(63 57 40 / .1); --wave-rest:#c7c8bd; --wave-played:#486d52; }
#proof .comparison-controls { flex-direction:row; justify-content:start; gap:.75rem; width:100%; }
#proof .audio-switch { flex:1; width:auto; padding:2px; background:var(--player-surface); border:1px solid rgb(63 57 40 / .05); box-shadow:none; }
#proof .audio-switch button { min-height:44px; padding:.5rem .75rem; }
#proof .audio-switch::before { top:2px; bottom:2px; left:var(--rl,2px); background:var(--action-fill); box-shadow:0 1px 3px rgb(24 40 29 / .07); }
#proof .audio-switch button[aria-checked="true"] { background:transparent; color:var(--action-ink); box-shadow:none; }
#proof .audio-switch button:not([aria-checked="true"]):hover { background:rgb(63 57 40 / .06); }
#proof .transport-play { display:inline-flex; justify-content:center; align-items:center; flex:none; padding:0; border:1px solid transparent; background:var(--player-surface); color:var(--ink); box-shadow:none; }
#proof .transport-play[data-playing="true"] { background:var(--player-surface); color:var(--ink); }
#proof .transport-play:is(:hover,:active) { background:var(--player-surface-hover); box-shadow:none; transform:none; }
#proof .transport-play .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#proof .transport-play svg { flex:none; width:1rem; height:1rem; margin:0; }
#proof .transport { margin:0; }
#proof .transport-timeline { gap:.2rem; }
#proof .take-waveform { position:relative; height:48px; width:100%; isolation:isolate; }
#proof .take-waveform svg { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; }
#proof .waveform-unplayed { fill:var(--wave-rest); }
#proof .waveform-played { fill:var(--wave-played); clip-path:inset(0 calc(100% - var(--played)) 0 0); }
#proof .waveform-cursor { position:absolute; top:2px; bottom:2px; left:clamp(0px,var(--played),calc(100% - 2px)); width:2px; border-radius:2px; background:var(--wave-played); pointer-events:none; }
#proof .take-waveform > input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; touch-action:pan-y; }
#proof .take-waveform > input::-webkit-slider-thumb { width:2px; height:48px; margin:0; }
#proof .take-waveform > input::-webkit-slider-runnable-track { height:48px; }
#proof .take-waveform > input::-moz-range-thumb { width:2px; height:48px; }
#proof .take-waveform > input::-moz-range-track { height:48px; }
#proof .transport-meta { justify-content:space-between; gap:.75rem; }
#proof .transport-time { display:flex; align-items:center; gap:.4rem; }
#proof .transport-meta [data-current-time] { margin:0; }
#proof .transport-volume { gap:.25rem; margin:0; }
#proof .comparison-state { display:none; }
#proof .volume-slider { width:4rem; height:44px; margin:0; }
#proof .volume-toggle { color:var(--ink-soft); }
#proof .volume-slider::-webkit-slider-runnable-track { height:2px; background:var(--wave-rest); }
#proof .volume-slider::-webkit-slider-thumb { width:10px; height:10px; margin-top:-4px; background:var(--ink-soft); }
#proof .volume-slider::-moz-range-track { height:2px; background:var(--wave-rest); }
#proof .volume-slider::-moz-range-thumb { width:10px; height:10px; background:var(--ink-soft); }
#proof .comparison-player :is(button,input):is(:focus,:focus-visible) { outline:none; outline-offset:0; }
#proof .transport-timeline input:focus-visible::-webkit-slider-thumb { outline:none; }
#proof .transport-timeline input:focus-visible::-moz-range-thumb { outline:none; }
@media (max-width:35rem) {
  #proof { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
  #proof .room-visual { border-radius:var(--ui-media-radius); }
  #proof .comparison-controls { gap:.5rem; flex-wrap:wrap; }
  #proof .audio-switch { width:100%; flex:none; }
  #proof .audio-switch button { padding:.5rem .25rem; }
  #proof .take-waveform { height:44px; }
  #proof .transport-meta { gap:.25rem; }
  #proof .volume-slider { width:2rem; }
}
