/* 4 · One salesperson: her month across the top, her profile on the left, her calls on the right. The list on the right turns from
   her call history into the calls behind a pattern; each call opens on the founder's words and her reply, and an exchange can play. */
.cm-rep h2 { max-width: none; }
.rp-main { gap: .85cqw; padding: 1.05cqw 1.5cqw 1.1cqw; }

/* Her month: who she is, then her results as compact numbers */
.rp-bar { gap: 2cqw; }
.rp-id { display: flex; align-items: center; gap: .9cqw; }
.rp-id h3 { font-size: 1.7cqw; }
.rp-id p { margin-top: .1cqw; }
.rp-stats { display: flex; align-items: stretch; }
.rp-stats p { display: grid; align-content: center; gap: .22cqw; padding: .1cqw 1.25cqw; }
.rp-stats p + p { box-shadow: -1px 0 0 var(--app-line); }
.rp-stats p:last-child { padding-right: .2cqw; }
.rp-stats b { font: 750 1.95cqw/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.rp-stats small { font-size: .82cqw; font-weight: 550; line-height: 1.2; color: var(--app-mute); white-space: nowrap; }
.rp-stats p.is-rank b { color: var(--app-accent); }
.rp-stats p.is-new { border-radius: .6cqw; }

.rp-body { display: grid; grid-template-columns: 30cqw minmax(0, 1fr); gap: 1.1cqw; min-height: 0; }
.cm-rep h4 { display: flex; align-items: center; gap: .5cqw; font-size: 1.02cqw; }
.cm-rep h4 .ic { width: 1.1cqw; height: 1.1cqw; opacity: .7; }
.cm-rep h4 small { margin-left: auto; font-size: .8cqw; font-weight: 600; color: var(--app-mute); }

/* Her profile: strengths, coaching priorities and the patterns the review found this month */
.rp-prof { gap: 0; align-content: stretch; grid-template-rows: auto auto minmax(0, 1fr); padding: .35cqw 1.15cqw .55cqw; }
.rp-sec { display: grid; align-content: start; gap: .5cqw; padding: .7cqw 0 .75cqw; }
.rp-sec + .rp-sec { box-shadow: 0 -1px 0 var(--app-line); }
.rp-strengths { display: grid; gap: .3cqw; }
.rp-strengths li { display: flex; align-items: center; gap: .5cqw; font-size: .98cqw; font-weight: 550; }
.rp-strengths .ic { width: 1.05cqw; height: 1.05cqw; color: var(--good); stroke-width: 2.4; }
.rp-prios { display: grid; gap: .6cqw; }
.rp-prios li { display: grid; justify-items: start; gap: .28cqw; font-size: .98cqw; font-weight: 550; line-height: 1.3; }
.rp-pats { display: grid; gap: .25cqw; margin: 0 -.55cqw; }
.rp-pat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .9cqw; width: 100%; padding: .42cqw .55cqw .44cqw; border: 0; border-radius: .7cqw; background: none; text-align: left; transition: background .2s, box-shadow .2s; }
.rp-pat:hover { background: rgb(41 59 51 / 5%); }
.rp-pat:focus-visible { outline: .2cqw solid var(--rose); outline-offset: .1cqw; }
.rp-pat > span { display: grid; gap: .1cqw; min-width: 0; }
.rp-pat b { font-size: .96cqw; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.rp-pat small { font-size: .8cqw; font-weight: 550; color: var(--app-mute); }
.rp-n { display: inline-grid; place-items: center; min-width: 2.5cqw; padding: .14cqw .5cqw; border-radius: 99cqw; background: rgb(41 59 51 / 8%); font-size: .98cqw; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.rp-pat[aria-pressed="true"] { background: var(--app-accent-soft); box-shadow: inset .22cqw 0 0 var(--app-accent); }
.rp-pat[aria-pressed="true"] .rp-n { background: var(--app-accent); color: #fff; }

/* The list on the right: her call history, or the calls that match a pattern */
.rp-list { gap: .6cqw; padding: .85cqw 1.1cqw .8cqw; overflow: hidden; }
.rp-list.is-hist { grid-template-rows: auto auto minmax(0, 1fr); align-content: stretch; }
.rp-head { display: flex; align-items: center; gap: .8cqw; min-width: 0; white-space: nowrap; }
.rp-head h4 { flex: none; }
.rp-head > small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .86cqw; font-weight: 550; color: var(--app-mute); text-align: right; }
.rp-x { flex: none; display: grid; place-items: center; width: 1.8cqw; height: 1.8cqw; padding: 0; border: 0; border-radius: 50%; background: rgb(41 59 51 / 8%); }
.rp-x .ic { width: .9cqw; height: .9cqw; stroke-width: 2.4; }
.rp-x:hover { background: rgb(41 59 51 / 15%); }

.rp-cols, .rp-row { display: grid; grid-template-columns: 6.4cqw minmax(0, 1fr) 3.3cqw 8.9cqw 5cqw; align-items: center; gap: .9cqw; }
.rp-cols { padding: 0 0 .4cqw; border-bottom: 1px solid var(--app-line); white-space: nowrap; font-size: .8cqw; font-weight: 600; color: var(--app-mute); }
.rp-cols span:last-child, .rp-row > :last-child { justify-self: end; }
.rp-hist { display: grid; grid-auto-rows: minmax(0, 1fr); min-height: 0; }
.rp-row { padding: .2cqw 0; border-bottom: 1px solid var(--app-line); font-size: .98cqw; }
.rp-row:last-child { border-bottom: 0; }
.rp-at, .rp-co { display: grid; gap: .05cqw; min-width: 0; line-height: 1.3; }
.rp-at b, .rp-co b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-at small, .rp-co small { font-size: .82cqw; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.rp-len { font-variant-numeric: tabular-nums; color: var(--app-mute); font-weight: 550; }
.cm-rep .cm-score { white-space: nowrap; }
.cm-rep .cm-score.is-high { background: var(--good-soft); color: var(--good); }

/* A call that matches the pattern: what call it was at the left, the exchange at the right */
.rp-calls { display: grid; align-content: start; gap: .5cqw; }
.rp-call { display: grid; grid-template-columns: 12.2cqw minmax(0, 1fr); align-items: start; gap: 1cqw; padding: .55cqw .75cqw; border-radius: .85cqw; background: var(--card); box-shadow: 0 0 0 1px var(--app-line); cursor: pointer; transition: box-shadow .3s; }
.rp-call.is-open:not(.is-fold) { cursor: default; }
.rp-call.is-morph { overflow: hidden; }
.rp-meta { display: grid; justify-items: start; gap: .22cqw; min-width: 0; }
.rp-meta > b { max-width: 100%; font-size: 1cqw; font-weight: 650; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-when { font-size: .84cqw; line-height: 1.3; color: var(--app-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-tags { display: flex; align-items: center; gap: .4cqw; margin-top: .1cqw; }
.rp-tags .cm-score { min-width: 2.3cqw; font-size: .86cqw; }

.rp-ex { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .7cqw; min-width: 0; min-height: 100%; }
.rp-open { grid-column: 1 / -1; align-self: center; display: inline-flex; align-items: center; justify-self: start; gap: .45cqw; padding: .42cqw .85cqw .42cqw .55cqw; border: 0; border-radius: .7cqw; background: var(--sage-paper); font-size: .92cqw; font-weight: 600; transition: background .2s; }
.rp-open .ic { width: 1cqw; height: 1cqw; stroke-width: 2.4; opacity: .7; }
.rp-open:hover { background: #e1eadd; }
.rp-pc { display: grid; justify-items: center; gap: .2cqw; padding-top: .1cqw; }
.rp-pc small { font-size: .78cqw; font-weight: 650; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.rp-play { transition: background .2s; }
.rp-play:hover { background: var(--deep-ink); }
.rp-lines { display: grid; justify-items: start; gap: .3cqw; min-width: 0; }
.rp-call:not(.is-open) .rp-pc, .rp-call:not(.is-open) .rp-lines, .rp-call.is-open .rp-open { display: none; }

/* The founder's words and her reply, as said in the call */
.rp-lines .cm-q { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .5cqw; max-width: 100%; padding: .34cqw .7cqw .36cqw; font-size: .95cqw; line-height: 1.32; transition: opacity .25s, background .25s, box-shadow .25s; }
.rp-lines .cm-q small { font-size: .76cqw; white-space: nowrap; }
.rp-lines .cm-q.is-rep { justify-self: end; max-width: 94%; }

/* The exchange, playing: a small waveform from its time, and each line lights up as it is said */
.cm-rep .rp-wave { display: none; width: 100%; height: 2.1cqw; gap: .2cqw; }
.rp-call.is-playing .rp-wave, .rp-call.is-played .rp-wave { display: flex; }
.rp-call.is-playing, .rp-call.is-played { box-shadow: 0 0 0 .12cqw var(--app-accent), 0 .8cqw 1.6cqw -1cqw rgb(150 70 78 / 45%); }
.rp-call.is-playing .rp-play { background: var(--app-accent); }
.rp-call.is-playing .rp-pc small, .rp-call.is-played .rp-pc small { color: var(--app-accent); }
.rp-call.is-playing .rp-lines > .cm-q { opacity: .42; }
.rp-call.is-playing .rp-lines > .cm-q.is-said { opacity: 1; }
.rp-lines > .cm-q.is-now { opacity: 1 !important; background: var(--sage); box-shadow: 0 .4cqw 1cqw -.5cqw rgb(15 26 21 / 45%); }
.rp-lines > .cm-q.is-rep.is-now { background: #fff; box-shadow: inset 0 0 0 .14cqw var(--ink), 0 .4cqw 1cqw -.5cqw rgb(15 26 21 / 45%); }

/* The review's note on the exchange, and what she could have said */
.rp-note { grid-column: 1 / -1; display: grid; gap: .45cqw; padding: .55cqw .8cqw .65cqw; border-radius: .75cqw; background: var(--app-accent-soft); }
.rp-note > p:first-child { display: flex; align-items: flex-start; gap: .45cqw; font-size: .93cqw; line-height: 1.35; }
.rp-note > p:first-child .ic { width: 1.05cqw; height: 1.05cqw; margin-top: .12cqw; color: var(--app-accent); }
.rp-note b { font-weight: 700; color: var(--app-accent); }
.rp-note .rp-could { justify-self: end; max-width: 94%; padding: .36cqw .75cqw .42cqw; border: 1px dashed var(--app-accent); box-shadow: none; font-size: .98cqw; }
.rp-could q { color: var(--app-accent); }

/* While one exchange plays, the other calls fold to a line each */
.rp-call.is-fold { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: .32cqw; }
.rp-call.is-fold .rp-meta { display: flex; align-items: center; gap: .8cqw; }
.rp-call.is-fold .rp-tags { margin-top: 0; }
.rp-call.is-fold .rp-ex { display: flex; min-height: 0; }
.rp-call.is-fold .rp-open, .rp-call.is-fold .rp-lines { display: none; }
.rp-call.is-fold .rp-pc { display: flex; flex-direction: row-reverse; align-items: center; gap: .45cqw; padding: 0; }
.rp-call.is-fold:hover { box-shadow: 0 0 0 1px rgb(41 59 51 / 30%); }
.rp-more { font-size: .88cqw; font-weight: 600; color: var(--app-mute); text-align: center; padding-top: .1cqw; }

/* Things arriving: her month on step 1, a list that changes, the words of a call that opens */
.rp-prof.is-in .rp-sec, .rp-list.is-in > :is(.rp-head, .rp-cols, .rp-more), .rp-list.is-in :is(.rp-row, .rp-call), .rp-call.is-in .rp-lines > *, .rp-note.is-in > * { animation: d-rise .42s ease-out both; animation-delay: var(--d, 0s); }
.rp-call.is-in .rp-lines > *, .rp-note.is-in > * { --d: 0s; }
.rp-prof.is-in .rp-sec:nth-child(2) { --d: .08s; }
.rp-prof.is-in .rp-sec:nth-child(3) { --d: .16s; }
.rp-call.is-in .rp-lines > .cm-q.is-rep, .rp-note.is-in > :nth-child(2) { --d: .14s; }
@media (prefers-reduced-motion: reduce) {
  .rp-prof.is-in .rp-sec, .rp-list.is-in > *, .rp-list.is-in :is(.rp-row, .rp-call), .rp-call.is-in .rp-lines > *, .rp-note.is-in > * { animation: none; }
}
