/* A single transcript selection drives the text edit and the audio splice. */
.transcript-story.transcript-motion { --transcript-playhead: 94%; grid-template-columns: .95fr 1.05fr; }
.transcript-motion__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 57px; padding: 14px 22px; border-bottom: 1px solid #ffffff12; background: #17191a; }
.transcript-motion__title { display: inline-flex; align-items: center; gap: 9px; color: #eeece6; font-size: 18px; font-weight: 500; }
.transcript-motion__title svg { width: 20px; height: 20px; color: #acb3ae; }
.transcript-motion__file { color: #9fa6a0; font-size: 12px; }
.transcript-motion .transcript-story__photo { min-height: 340px; }
.transcript-motion .transcript-story__photo img { position: absolute; inset: 0; object-position: 20% center; }
.transcript-motion .transcript-story__subtitle { display: grid; place-items: center; left: 20px; right: 20px; bottom: 35px; font-size: clamp(16px,1.3vw,20px); font-weight: 500; line-height: 1.5; text-shadow: 0 2px 8px #000b; }
.transcript-motion .transcript-story__subtitle > span { grid-area: 1 / 1; padding: 2px 7px; background: #10131482; border-radius: 3px; transition: opacity .35s; }
.transcript-motion .transcript-story__photo-time { font-size: 12px; }
.transcript-motion .transcript-story__words { padding: 27px 31px 24px; }
.transcript-motion .transcript-story__speaker { font-size: 13px; }
.transcript-motion .transcript-story__speaker > span:last-child { font-size: 12px; }
.transcript-motion__excerpt { display: grid; flex: 1; align-items: start; margin-block: 25px; }
.transcript-motion__excerpt p { grid-area: 1 / 1; margin: 0; color: #e6e5df; font-size: clamp(23px,2.1vw,29px); line-height: 1.5; letter-spacing: -.4px; transition: opacity .35s, transform .4s; }
.transcript-motion .transcript-filler { padding: 1px 2px; color: #bac0b9; background: linear-gradient(#d7bd9d,#d7bd9d) 0 0 / 0 100% no-repeat; text-decoration: none; transition: background-size .5s ease, color .25s, opacity .3s; }
.transcript-motion .transcript-story__last { color: #aaa69e; }
.transcript-motion .transcript-story__action { gap: 12px; min-height: 36px; }
.transcript-motion__cut { display: inline-flex; align-items: center; position: relative; gap: 7px; flex-shrink: 0; padding: 8px 0; border: 0; color: #c3bfb6; background: transparent; font-size: 12px; line-height: 1.3; transition: color .3s, border-color .3s, background .3s, transform .2s; }
.transcript-motion__cut > svg { width: 15px; height: 15px; }
.transcript-motion__cut .transcript-motion__check { position: absolute; left: 0; opacity: 0; }
.transcript-motion__status { display: grid; min-width: 0; color: #aaa79f; font-size: 12px; line-height: 1.4; }
.transcript-motion__status > span { grid-area: 1 / 1; opacity: 0; transition: opacity .2s; }
.transcript-motion[data-phase='0'] .transcript-motion__status > span:nth-child(1),
.transcript-motion[data-phase='1'] .transcript-motion__status > span:nth-child(2),
.transcript-motion[data-phase='2'] .transcript-motion__status > span:nth-child(3),
.transcript-motion[data-phase='3'] .transcript-motion__status > span:nth-child(4),
.transcript-motion[data-phase='4'] .transcript-motion__status > span:nth-child(5) { opacity: 1; }
.transcript-motion .transcript-story__audio { gap: 20px; padding: 19px 22px; }
.transcript-motion .transcript-story__audio-label, .transcript-motion .transcript-story__audio-time { font-size: 12px; }
.transcript-motion .transcript-story__audio-time { display: grid; width: 53px; }
.transcript-motion .transcript-story__audio-time > span { grid-area: 1 / 1; transition: opacity .3s; }
.transcript-motion .transcript-story__wave { height: 34px; overflow: visible; }
.transcript-motion .transcript-story__wave-part { background-color: #aaa79d16; }
.transcript-motion .transcript-story__wave-part--filler { width: 11.111%; background: #aaa79d16; border-inline: 1px solid transparent; transition: width .8s cubic-bezier(.3,.7,.2,1), opacity .4s, background .4s, border-color .4s; }
.transcript-motion .transcript-story__wave-part:before { background:repeating-linear-gradient(90deg,transparent 0 3px,#bbb8ad9b 3px 4px,transparent 4px 6px,#aaa89e69 6px 7px); }
.transcript-motion .transcript-story__wave-part--filler:before { opacity: 1; }
.transcript-motion .transcript-story__splice { height: 34px; transition: opacity .3s .55s; }
.transcript-motion__playhead { position: absolute; z-index: 1; top: -4px; bottom: -4px; left: var(--transcript-playhead); width: 1px; background: #e7e8de; }
.transcript-motion__playhead:before { content: ''; position: absolute; top: 0; left: -3px; width: 7px; height: 5px; background: inherit; clip-path: polygon(0 0,100% 0,100% 40%,50% 100%,0 40%); }
.transcript-motion .transcript-motion__clean { opacity: 0; }
.transcript-motion[data-phase='0'] .transcript-motion__lead { background: #d4dccc15; border-radius: 2px; }
.transcript-motion:is([data-phase='1'],[data-phase='2']) .transcript-filler { background-size: 100% 100%; color: #252721; }
.transcript-motion:is([data-phase='1'],[data-phase='2']) .transcript-story__wave-part--filler { background: #d7bd9d40; border-color: #d7bd9d9c; }
.transcript-motion:is([data-phase='1'],[data-phase='2']) .transcript-motion__cut { color: #f0e4d4; border-color: #c4a98688; }
.transcript-motion[data-phase='2'] .transcript-motion__cut { color: #f0e4d4; }
.transcript-motion[data-phase='2'] .transcript-filler { text-decoration: line-through; text-decoration-color: #6b483b; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-motion__clean { opacity: 1; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-motion__uncut { opacity: 0; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-story__wave-part--filler { width: 0; opacity: 0; border-width: 0; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-story__splice { opacity: 1; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-motion__cut > svg:first-child { opacity: 0; }
.transcript-motion:is([data-phase='3'],[data-phase='4']) .transcript-motion__cut .transcript-motion__check { opacity: 1; }
@media (max-width: 1050px) {
 .transcript-motion .transcript-story__words { padding: 24px; }
 .transcript-motion__excerpt p { font-size: 25px; }
 .transcript-motion .transcript-story__action { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 760px) {
 .transcript-story.transcript-motion { grid-template-columns: 1fr; }
 .transcript-motion .transcript-story__photo { min-height: 0; aspect-ratio: 16 / 9; }
 .transcript-motion .transcript-story__words { padding: 24px; }
 .transcript-motion__excerpt { margin-block: 20px; }
 .transcript-motion__excerpt p { font-size: 25px; }
 .transcript-motion .transcript-story__audio-label { display: block; }
 .transcript-motion .transcript-story__audio { gap: 14px; padding-inline: 24px; }
 .transcript-motion .transcript-story__subtitle { font-size: 16px; bottom: 27px; }
}
@media (max-width: 420px) {
 .transcript-motion__top { padding-inline: 17px; }
 .transcript-motion .transcript-story__words { padding: 22px 18px; }
 .transcript-motion__excerpt p { font-size: 23px; line-height: 1.45; }
 .transcript-motion .transcript-story__audio { padding-inline: 18px; }
 .transcript-motion .transcript-story__subtitle { left: 12px; right: 12px; font-size: 15px; }
 .transcript-motion .transcript-story__action { gap: 10px; }
}
@media (max-width: 350px) {
 .transcript-motion__file { display: none; }
 .transcript-motion__excerpt p { font-size: 22px; }
 .transcript-motion .transcript-story__audio-label { display: none; }
 .transcript-motion .transcript-story__subtitle { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .transcript-motion *, .transcript-motion *:before, .transcript-motion *:after { transition: none !important; }
}
.transcript-motion__actions { display:flex; align-items:center; gap:12px; }

/* A readable transcript within the desktop feature window; phone type stays unchanged. */
@media(min-width:761px) {
 .transcript-motion .transcript-story__words { padding:22px; }
 .transcript-motion__excerpt { margin-block:20px; }
 .transcript-motion__excerpt p { font-size:23px; line-height:1.45; }
 .transcript-motion .transcript-story__action { flex-wrap:wrap; gap:8px 12px; }
}

/* The completed edit is the default, including no-JavaScript and reduced-motion views. */
.transcript-story.transcript-editing { --transcript-playhead:88%; }
.transcript-editing .transcript-motion__file { display:inline; }
.transcript-editing .transcript-story__photo img { object-position:50% center; }
.transcript-editing .transcript-motion__cut-label { display:grid; }
.transcript-editing .transcript-motion__cut-label > span { grid-area:1 / 1; transition:opacity .2s; }
.transcript-editing .transcript-story__wave-part--b { flex:0 0 64.889%; }
.transcript-editing .transcript-story__wave-part--filler { flex-shrink:0; }
.transcript-editing .transcript-motion__excerpt .transcript-motion__clean { transition:none; }
.transcript-editing .transcript-motion__excerpt .transcript-motion__uncut { transition:opacity .18s; }
.transcript-editing .transcript-motion__word { display:inline-block; }
.transcript-editing[data-phase='0'] .transcript-motion__lead { background:transparent; }
.transcript-editing[data-phase='2'] .transcript-motion__cut { transform:translateY(1px); }
.transcript-editing[data-phase='3'] .transcript-motion__clean .transcript-motion__word { will-change:transform; }
@media(min-width:761px) and (max-width:900px) {
 .transcript-story.transcript-editing { grid-template-columns:1fr; }
 .transcript-editing .transcript-story__photo { min-height:0; aspect-ratio:16/9; }
}

/* Each heading belongs to its own panel, including when the panels stack. */
.transcript-panel { display:flex; flex-direction:column; min-width:0; }
.transcript-panel__header { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:12px 20px; color:#e5e5e7; font-size:13px; font-weight:500; border-bottom:1px solid #ffffff0c; }
.transcript-panel__header > span { color:#818187; font-size:11px; font-weight:400; }
.transcript-panel--text { border-left:1px solid #ffffff0a; }
.transcript-editing .transcript-story__photo { min-height:0; aspect-ratio:3 / 2; flex:1; }
.transcript-editing .transcript-story__photo img { object-position:center; }
.transcript-panel .transcript-story__words { flex:1; }
@media(max-width:900px) {
 .transcript-panel--text { border-left:0; }
 .transcript-editing .transcript-story__photo { flex:none; aspect-ratio:3 / 2; }
 .transcript-panel__header { padding-inline:18px; }
}
