/* 5 · One call, moment by moment: the call's bar, the recording with the moments the review found, then the transcript and the review. */
.cm-call { background: var(--sage); }
.cm-call h2 { max-width: none; }
.cm-call .d-side.is-manager { background: rgb(247 246 244 / 52%); }
.cm-call h5 { margin: 0; }
.cv-main { gap: .85cqw; padding: 1.05cqw 1.5cqw 1.15cqw; }
.cv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The bar: who called whom and when; the outcome and the coaching score, each on its own. */
.cv-title { display: flex; align-items: center; gap: .85cqw; min-width: 0; }
.cv-title > div { min-width: 0; }
.cv-facts { display: flex; align-items: stretch; gap: 1.3cqw; margin: 0; }
.cv-facts > div { display: grid; justify-items: end; align-content: center; gap: .28cqw; }
.cv-facts > div + div { padding-left: 1.3cqw; box-shadow: inset 1px 0 0 var(--app-line); }
.cv-facts dt { font-size: .84cqw; font-weight: 600; color: var(--app-mute); }
.cv-facts dd { margin: 0; display: flex; align-items: center; min-height: 1.75cqw; }
.cv-facts .cm-chip { font-size: .95cqw; padding: .22cqw .75cqw; }
.cv-facts .cm-score { min-width: 3cqw; padding: .2cqw .5cqw; font-size: 1.15cqw; }

.cv-body { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: .85cqw 1cqw; min-height: 0; }

/* The recording: play, the time, the wave with its marks, and under it the moments, each pinned to its time. */
.cv-player { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 1cqw; row-gap: .55cqw; padding: .95cqw 1.5cqw .95cqw 1.1cqw; border-radius: 1.1cqw; background: var(--ink); color: var(--paper); box-shadow: 0 1.2cqw 2.4cqw -1.6cqw rgb(15 26 21 / 55%); }
.cv-player .cm-play { width: 2.8cqw; height: 2.8cqw; background: var(--paper); color: var(--ink); transition: transform .15s; }
.cv-player .cm-play .ic { width: 1.15cqw; height: 1.15cqw; }
.cv-player .cm-play:hover { transform: scale(1.06); }
.cv-player .cm-play:focus-visible, .cv-chip:focus-visible, .cv-marks button:focus-visible { outline: .18cqw solid #ffb9a8; outline-offset: .15cqw; }
.cv-time { display: grid; gap: .05cqw; min-width: 4.4cqw; font-size: .9cqw; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-time b { font-size: 1.3cqw; font-weight: 700; color: #ffb9a8; }
.cv-time > span { color: rgb(247 246 244 / 58%); }
.cv-track { position: relative; }
.cv-wave { height: 3cqw; gap: 0; }
/* Each bar takes exactly 1/N of the width (its gap is a clear border), so a bar's middle sits at (i + .5) / N.
   The kit sets the bars' colour with the background shorthand, so the clip is set again for every state. */
.cv-wave i { border-inline: .125cqw solid transparent; }
.cm-call .cv-wave i, .cm-call .cv-wave i.is-played, .cm-call .cv-wave i.is-mark { background-clip: padding-box; }
.cv-head { position: absolute; z-index: 2; top: -.45cqw; bottom: -.45cqw; left: calc(var(--x, 0) * 100%); width: .2cqw; margin-left: -.1cqw; border-radius: 1cqw; background: #ffb9a8; pointer-events: none; }
.cv-head::before { content: ""; position: absolute; top: -.35cqw; left: 50%; width: .8cqw; height: .8cqw; margin-left: -.4cqw; border-radius: 50%; background: #ffb9a8; box-shadow: 0 0 0 .18cqw var(--ink); }
.cv-marks button { position: absolute; z-index: 1; top: -.35cqw; bottom: -.35cqw; left: calc(var(--x) * 100%); width: 1.25cqw; margin-left: -.625cqw; padding: 0; border: 0; border-radius: .45cqw; background: transparent; transition: background .2s, box-shadow .2s; }
.cv-marks button:hover { background: rgb(247 246 244 / 13%); }
.cv-marks button.is-on { background: rgb(240 98 74 / 20%); }

.cv-lanes { grid-column: 3; position: relative; height: calc(3 * 2.05cqw - .3cqw); }
.cv-pin { position: absolute; top: -.6cqw; left: calc(var(--x) * 100%); width: 1px; height: calc(.75cqw + var(--lane) * 2.05cqw); background: rgb(247 246 244 / 26%); transition: background .2s; }
.cv-pin.is-on { width: .14cqw; margin-left: -.05cqw; background: #ffb9a8; }
.cv-chip { position: absolute; top: calc(var(--lane) * 2.05cqw); left: max(0%, calc(var(--x) * 100% - .8cqw)); display: inline-flex; align-items: center; gap: .42cqw; height: 1.75cqw; padding: 0 .75cqw 0 .6cqw; border: 0; border-radius: 99cqw; background: #3b4d45; box-shadow: inset 0 0 0 1px rgb(247 246 244 / 15%); color: var(--paper); font-size: .9cqw; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.cv-chip.is-end { left: auto; right: max(0%, calc((1 - var(--x)) * 100% - .8cqw)); }
.cv-chip:hover { background: #4a5d54; }
.cv-chip.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 .2cqw rgb(255 185 168 / 55%); }
.cv-dot { flex: none; width: .62cqw; height: .62cqw; border-radius: 50%; background: rgb(247 246 244 / 55%); }
.cm-call [data-v="good"] > .cv-dot { background: #7fc48f; }
.cm-call [data-v="work"] > .cv-dot { background: #ff8f78; }
.cv-chip.is-on[data-v="good"] > .cv-dot { background: var(--good); }
.cv-chip.is-on[data-v="work"] > .cv-dot { background: var(--work); }
.cv-chip.is-on[data-v="info"] > .cv-dot { background: var(--app-mute); }
/* What the dots mean, in the free corner under the wave. */
.cv-key { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 1cqw; font-size: .82cqw; font-weight: 550; color: rgb(247 246 244 / 62%); white-space: nowrap; }
.cv-key span { display: inline-flex; align-items: center; gap: .35cqw; }

/* The two panes under the recording. */
.cv-script, .cv-review { grid-template-rows: auto minmax(0, 1fr); gap: .6cqw; padding: .85cqw 1.1cqw .9cqw; min-height: 0; overflow: hidden; }
.cv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; white-space: nowrap; }
.cv-card-head h4 { display: flex; align-items: center; gap: .5cqw; }
.cv-card-head h4 .ic { width: 1.15cqw; height: 1.15cqw; opacity: .7; }
.cv-card-head small { display: inline-flex; align-items: center; gap: .4cqw; min-width: 0; font-size: .86cqw; font-weight: 550; color: var(--app-mute); }
.cv-card-head small .cm-av { margin-left: .3cqw; }

/* The transcript: the founder's words in sage, the salesperson's in white; the selected moment's line on top. */
.cv-lines { position: relative; display: grid; align-content: start; gap: .28cqw; min-height: 0; margin: 0 -.4cqw; padding: 0 .4cqw; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent); mask-image: linear-gradient(to bottom, #000 84%, transparent); }
.cv-lines::-webkit-scrollbar { display: none; }
.cv-lines::after { content: ""; display: block; height: 6cqw; }
.cv-line { display: grid; grid-template-columns: 2.4cqw auto minmax(0, 1fr); align-items: start; gap: .55cqw; padding: .28cqw .4cqw; border-radius: .7cqw; transition: background .35s, box-shadow .35s; }
.cv-line time { padding-top: .42cqw; font-size: .82cqw; font-weight: 650; color: var(--app-mute); font-variant-numeric: tabular-nums; transition: color .35s; }
.cv-line .cm-av { margin-top: .22cqw; }
.cv-fav { --c: #5e625f; }
.cv-line p { justify-self: start; padding: .36cqw .75cqw .4cqw; border-radius: .25cqw .85cqw .85cqw .85cqw; background: var(--sage-paper); font-size: .97cqw; font-weight: 600; line-height: 1.38; text-wrap: pretty; transition: box-shadow .25s; }
.cv-line.is-rep p { background: #fff; box-shadow: inset 0 0 0 1px var(--app-line); font-weight: 450; }
.cv-tag { display: inline-block; margin-right: .45cqw; padding: 0 .45cqw; border-radius: .35cqw; background: rgb(41 59 51 / 8%); font-size: .78cqw; font-weight: 650; line-height: 1.45; color: var(--app-mute); vertical-align: .06em; transition: background .35s, color .35s; }
.cv-line.is-in { background: rgb(150 70 78 / 5%); }
.cv-line.is-on { background: var(--app-accent-soft); box-shadow: inset .22cqw 0 0 var(--app-accent); }
.cv-line.is-on time { color: var(--app-accent); }
.cv-line.is-on .cv-tag { background: var(--app-accent); color: #fff; }
.cv-line.is-live p { box-shadow: 0 0 0 .16cqw var(--ink); }
.cv-line.is-live time { color: var(--ink); }
.cv-fold, .cv-end { display: flex; align-items: center; gap: .6cqw; padding: .25cqw .4cqw .25cqw 3.35cqw; font-size: .82cqw; font-weight: 550; color: var(--app-mute); }
.cv-fold::after, .cv-end::after { content: ""; flex: 1; border-top: 1px dashed rgb(41 59 51 / 22%); }
.cv-after { display: flex; align-items: center; gap: .55cqw; margin: .1cqw 0 0 3.35cqw; padding: .45cqw .75cqw; border-radius: .7cqw; background: var(--app-bg); box-shadow: inset 0 0 0 1px var(--app-line); font-size: .9cqw; line-height: 1.35; color: var(--app-mute); }
.cv-after .ic { width: 1cqw; height: 1cqw; }
.cv-after b { font-weight: 650; color: var(--ink); }

/* The review: all the moments, or what it says about the selected one. */
.cv-pane { display: flex; flex-direction: column; gap: .65cqw; min-height: 0; }
.cv-pane.is-in > * { animation: d-rise .4s ease-out both; }
.cv-pane.is-in > :nth-child(2) { animation-delay: .06s; }
.cv-pane.is-in > :nth-child(3) { animation-delay: .12s; }
.cv-pane.is-in > :nth-child(4) { animation-delay: .18s; }
.cv-intro { font-size: .95cqw; color: var(--app-mute); }
.cv-list { display: grid; }
.cv-list li + li { box-shadow: 0 -1px 0 var(--app-line); }
.cv-list button { display: grid; grid-template-columns: .62cqw 2.6cqw minmax(0, 1fr) auto; align-items: center; gap: .55cqw; width: 100%; padding: .4cqw .45cqw; border: 0; border-radius: .6cqw; background: none; font-size: 1cqw; font-weight: 600; text-align: left; transition: background .2s; }
.cv-list button:hover { background: var(--app-bg); }
.cv-list .cv-dot { background: var(--app-mute); opacity: .5; }
.cv-list [data-v="good"] > .cv-dot { background: var(--good); opacity: 1; }
.cv-list [data-v="work"] > .cv-dot { background: var(--work); opacity: 1; }
.cv-list time { font-size: .88cqw; font-weight: 650; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.cv-list b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cv-moment { display: grid; justify-items: start; gap: .5cqw; }
.cv-moment h5 { font: 750 1.75cqw/1.05 var(--display); letter-spacing: -.035em; }
.cv-meta { display: flex; align-items: center; gap: .5cqw; }
.cv-at { display: inline-flex; align-items: center; gap: .35cqw; padding: .16cqw .65cqw .16cqw .45cqw; border: 0; border-radius: 99cqw; background: var(--ink); color: var(--paper); font-size: .86cqw; font-weight: 650; line-height: 1.35; font-variant-numeric: tabular-nums; }
.cv-at .ic { width: .8cqw; height: .8cqw; }
.cv-at:hover { background: var(--deep-ink); }
.cv-note { font-size: 1.22cqw; line-height: 1.42; text-wrap: pretty; }
.cv-aside { display: flex; align-items: center; gap: .5cqw; padding: .45cqw .7cqw; border-radius: .7cqw; background: var(--app-accent-soft); color: var(--app-accent); font-size: .9cqw; font-weight: 600; line-height: 1.35; }
.cv-aside .ic { width: 1.05cqw; height: 1.05cqw; }
.cv-aside.is-info { background: rgb(41 59 51 / 6%); color: var(--app-mute); }
.cv-foot { display: flex; align-items: center; justify-content: space-between; gap: .6cqw; margin-top: auto; padding-top: .6cqw; border-top: 1px solid var(--app-line); }
.cv-foot .d-btn { gap: .45cqw; padding: .4cqw .85cqw; border-radius: .7cqw; font-size: .92cqw; }
.cv-foot .d-btn .ic { width: .95cqw; height: .95cqw; }
.cv-foot .is-back .ic { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .cv-pane.is-in > * { animation: none; }
}
