/* 6 · Coaching: the quick wins from one call on the left; on the right how that call was scored, the calls with no coaching
   score and a serious concern, each a section that opens in turn. */
.cm-coach h2 { max-width: none; }
.cm-coach h5 { margin: 0; font-family: var(--body); font-size: .82cqw; font-weight: 650; letter-spacing: 0; color: var(--app-mute); }
.qc-main { gap: .85cqw; padding: 1.05cqw 1.5cqw 1.15cqw; }
.qc-title { display: flex; align-items: center; gap: .85cqw; min-width: 0; }
.qc-title > div { min-width: 0; }
.qc-stay { padding: .26cqw .8cqw .26cqw .6cqw; font-size: .88cqw; color: var(--app-mute); background: #fff; box-shadow: inset 0 0 0 1px var(--app-line); }
.qc-body { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); gap: 1cqw; min-height: 0; }

/* ── The quick wins ─────────────────────────────────────────────────────────────────────── */
.qc-wins { display: grid; align-content: start; gap: .75cqw; min-height: 0; }
.qc-win { display: grid; gap: .65cqw; padding: .85cqw 1.05cqw .95cqw; border-radius: 1cqw; background: var(--card); box-shadow: 0 0 0 1px var(--app-line); cursor: pointer; transition: box-shadow .3s; }
.qc-win:hover:not(.is-open) { box-shadow: 0 0 0 1px rgb(41 59 51 / 30%); }
.qc-win.is-open { cursor: default; box-shadow: 0 0 0 .14cqw var(--app-accent), 0 1cqw 2cqw -1.2cqw rgb(150 70 78 / 45%); }
.qc-win-head { display: flex; align-items: center; gap: .55cqw; min-width: 0; }
.qc-win-head .cm-chip .ic { width: .85cqw; height: .85cqw; }
.qc-win-head h4 { font-size: 1.12cqw; white-space: nowrap; }
.qc-hear { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: .45cqw; padding: .2cqw .8cqw .2cqw .22cqw; overflow: hidden; border: 0; border-radius: 99cqw; background: var(--app-bg); box-shadow: inset 0 0 0 1px var(--app-line); font-size: .88cqw; font-weight: 650; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .2s, box-shadow .2s; }
.qc-hear:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(41 59 51 / 35%); }
.qc-pb { display: inline-grid; place-items: center; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--ink); color: var(--paper); }
.qc-pb .ic { width: .7cqw; height: .7cqw; }
.qc-pb use[href="#i-play"] { fill: currentColor; }
.qc-prog { position: absolute; left: 0; bottom: 0; height: .16cqw; width: 100%; background: var(--app-accent); transform: scaleX(0); transform-origin: left; }
.qc-win.is-playing .qc-hear { background: var(--app-accent-soft); box-shadow: inset 0 0 0 1px rgb(150 70 78 / 30%); color: var(--app-accent); }
.qc-win.is-playing .qc-pb { background: var(--app-accent); }

.qc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9cqw; }
.qc-col { display: grid; align-content: start; gap: .55cqw; min-width: 0; }
.qc-block { display: grid; gap: .22cqw; border-radius: .7cqw; }
.qc-block p { font-size: .98cqw; line-height: 1.4; text-wrap: pretty; }
.qc-saw { padding: .5cqw .1cqw 0; }
.qc-saw p { font-weight: 550; }
.qc-do { padding: .5cqw .75cqw .58cqw; background: var(--app-accent-soft); box-shadow: inset .2cqw 0 0 var(--app-accent); }
.qc-do h5 { display: flex; align-items: center; gap: .35cqw; color: var(--app-accent); }
.qc-do h5 .ic { width: .9cqw; height: .9cqw; }
.qc-do p { font-weight: 650; }
.qc-why { padding: 0 .1cqw; }
.qc-why p { font-size: .92cqw; color: #3f4743; }
/* The moment's words, as said: shown when the quick win is open, lit line by line as they play. */
.qc-words { display: grid; gap: .3cqw; }
.qc-words .cm-q { justify-self: start; padding: .36cqw .7cqw .4cqw; font-size: .9cqw; line-height: 1.34; opacity: .28; transition: opacity .35s, box-shadow .25s; }
.qc-words .cm-q small { font-size: .76cqw; }
.qc-words .cm-q.is-rep q { font-weight: 450; }
.qc-words .cm-q.is-heard { opacity: 1; }
.qc-words .cm-q.is-live { box-shadow: 0 0 0 .14cqw var(--ink); }
.qc-win:not(.is-open) :is(.qc-words, .qc-why) { display: none; }
.qc-win.is-open:not(.is-full) .qc-why { display: none; }
.qc-do { transition: opacity .4s; }
.qc-win.is-open:not(.is-full) .qc-do { opacity: .45; }
.qc-win.is-open .qc-words { animation: d-rise .35s ease-out both; }
.qc-win.is-full .qc-why { animation: d-rise .4s ease-out both; }
.qc-win.is-folded { padding-block: .62cqw; }
.qc-win.is-folded .qc-cols { display: none; }

/* ── The sections on the right: one open at a time, the scoring first ────────────────────── */
.qc-side { display: flex; flex-direction: column; gap: .7cqw; min-height: 0; }
.qc-box { flex: none; display: block; gap: 0; padding: 0; overflow: hidden; transition: box-shadow .3s; }
.qc-head { margin: 0; }
.qc-head button { display: flex; align-items: center; gap: .55cqw; width: 100%; padding: .6cqw 1.05cqw; border: 0; background: none; text-align: left; font-size: 1.08cqw; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; }
.qc-head button:hover { background: rgb(41 59 51 / 3%); }
.qc-head .ic { width: 1.1cqw; height: 1.1cqw; opacity: .7; }
.qc-head .qc-hint { margin-left: auto; font-size: .84cqw; font-weight: 550; color: var(--app-mute); }
.qc-head .cm-score, .qc-head .cm-chip { margin-left: auto; }
.qc-head .qc-chev { width: .9cqw; height: .9cqw; opacity: .45; transform: rotate(90deg); transition: transform .3s; }
.qc-box.is-open .qc-chev { transform: rotate(-90deg); }
.qc-box:not(.is-open) .qc-when-open, .qc-box.is-open .qc-when-shut { display: none; }
.qc-in { display: none; padding: 0 1.05cqw .95cqw; }
.qc-box.is-open > .qc-in { display: grid; align-content: start; }
.qc-box.is-open:not(.qc-score) > .qc-in > * { animation: d-rise .4s ease-out both; }
.qc-box.is-open:not(.qc-score) > .qc-in > :nth-child(2) { animation-delay: .08s; }
.qc-box.is-open:not(.qc-score) > .qc-in > :nth-child(3) { animation-delay: .16s; }
.qc-box.is-open:not(.qc-score) > .qc-in > :nth-child(4) { animation-delay: .24s; }
.qc-box.is-focus { box-shadow: 0 0 0 .14cqw rgb(41 59 51 / 60%), 0 1cqw 2cqw -1.2cqw rgb(15 26 21 / 35%); }
.qc-score .qc-mini { min-width: 0; padding: .14cqw .55cqw; font-size: .9cqw; }

/* How the call was scored: five criteria, 1 to 5 each, the total, and the outcome apart from it. */
.qc-crits { display: grid; }
.qc-crit { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.1cqw; align-items: center; column-gap: .7cqw; row-gap: .04cqw; margin: 0 -.5cqw; padding: .24cqw .5cqw .28cqw; border-radius: .6cqw; transition: background .35s, box-shadow .35s; }
.qc-crit + .qc-crit { border-top: 1px solid var(--app-line); }
.qc-cl { min-width: 0; font-size: .96cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-pips { display: flex; gap: .18cqw; }
.qc-pips i { width: .95cqw; height: .48cqw; border-radius: 1cqw; background: rgb(41 59 51 / 12%); transition: background .25s; }
.qc-pips i:nth-child(2) { transition-delay: .05s; } .qc-pips i:nth-child(3) { transition-delay: .1s; }
.qc-pips i:nth-child(4) { transition-delay: .15s; } .qc-pips i:nth-child(5) { transition-delay: .2s; }
.qc-crit[data-tone="work"] .qc-pips i.is-on { background: #d4523f; }
.qc-crit[data-tone="amber"] .qc-pips i.is-on { background: #d39a2c; }
.qc-crit[data-tone="good"] .qc-pips i.is-on { background: #3f8a52; }
.qc-pt { font-size: .98cqw; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.qc-cn { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .45cqw; min-width: 0; font-size: .82cqw; line-height: 1.32; color: var(--app-mute); }
.qc-tag { display: none; flex: none; align-items: center; gap: .25cqw; padding: 0 .45cqw; border-radius: 99cqw; background: var(--app-accent); color: #fff; font-size: .72cqw; font-weight: 650; line-height: 1.5; }
.qc-tag .ic { width: .7cqw; height: .7cqw; }
.qc-crit.is-mark { background: var(--app-accent-soft); box-shadow: inset .2cqw 0 0 var(--app-accent); }
.qc-crit.is-mark .qc-tag { display: inline-flex; animation: d-rise .35s ease-out both; }
.qc-crit.is-mark + .qc-crit, .qc-crit.is-mark { border-top-color: transparent; }
.qc-score.is-scoring .qc-crit:not(.is-filled) .qc-pt { color: rgb(41 59 51 / 30%); }

.qc-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 1cqw; margin-top: .35cqw; padding-top: .55cqw; border-top: 1px solid var(--app-line); }
.qc-total { display: grid; align-content: start; gap: .3cqw; }
.qc-total p { display: flex; align-items: baseline; gap: .4cqw; }
.qc-total b { font: 750 2.05cqw/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.qc-total span { font-size: .92cqw; font-weight: 600; color: var(--app-mute); }
.qc-total small { font-size: .82cqw; line-height: 1.3; color: var(--app-mute); text-wrap: pretty; }
.qc-out { display: grid; justify-items: start; align-content: start; gap: .28cqw; padding-left: 1cqw; border-left: 1px solid var(--app-line); }
.qc-out small { font-size: .8cqw; line-height: 1.3; color: var(--app-mute); }
.qc-out .cm-chip { font-size: .9cqw; padding: .18cqw .7cqw; }
.qc-foot.is-wait > * { opacity: 0; }
.qc-foot.is-in > .qc-total { animation: d-rise .4s ease-out both; }
.qc-foot.is-in > .qc-out { animation: d-rise .4s .55s ease-out both; }

/* Compact, while the sections under it are open: the criteria without their notes, the total beside the outcome. */
.qc-score.is-compact :is(.qc-cn, .qc-total small, .qc-out small:last-child) { display: none; }
.qc-score.is-compact .qc-out { grid-auto-flow: column; align-items: center; gap: .5cqw; }
.qc-score.is-compact .qc-total { align-content: center; }
.qc-score.is-compact .qc-total b { font-size: 1.7cqw; }

/* No coaching score */
.qc-intro { margin-bottom: .35cqw !important; font-size: .88cqw; line-height: 1.35; color: var(--app-mute); }
.qc-rows { display: grid; }
.qc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .6cqw; padding: .42cqw 0; }
.qc-row + .qc-row { border-top: 1px solid var(--app-line); }
.qc-row > div { display: grid; min-width: 0; line-height: 1.3; }
.qc-row b { font-size: .96cqw; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-row small { font-size: .8cqw; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.qc-row .cm-score { min-width: 0; padding: .12cqw .55cqw; border-radius: 99cqw; font-size: .84cqw; box-shadow: inset 0 0 0 1px var(--app-line); }
.qc-none.is-open .qc-row .cm-score { animation: d-rise .35s .5s ease-out both; }

/* A serious concern: the exact words, for the manager to check */
.qc-flag .qc-head .ic:first-child { color: var(--work); opacity: 1; }
.qc-flag.is-open { box-shadow: 0 0 0 .14cqw rgb(163 38 28 / 55%), 0 1cqw 2cqw -1.2cqw rgb(163 38 28 / 40%); }
.qc-flag .qc-in { gap: .5cqw; }
.qc-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6cqw; }
.qc-who p { display: grid; min-width: 0; font-size: .95cqw; line-height: 1.3; }
.qc-who p > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-who b { font-weight: 650; }
.qc-who small { font-size: .8cqw; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.qc-who .d-btn { gap: .4cqw; padding: .36cqw .8cqw; border-radius: .65cqw; font-size: .88cqw; }
.qc-who .d-btn .ic { width: .9cqw; height: .9cqw; }
.qc-said { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55cqw; }
.qc-said .cm-play { margin-top: .3cqw; }
.qc-said .cm-play use[href="#i-play"] { fill: currentColor; }
.qc-said .cm-q { font-size: .95cqw; transition: box-shadow .25s; }
.qc-said .cm-q q { font-weight: 600; }
.qc-said .cm-q.is-live { box-shadow: 0 0 0 .14cqw var(--work); }
.qc-flagged { display: flex; align-items: flex-start; gap: .45cqw; padding: .42cqw .65cqw; border-radius: .6cqw; background: var(--work-soft); color: var(--work); font-size: .88cqw; font-weight: 600; line-height: 1.35; }
.qc-flagged .ic { width: .95cqw; height: .95cqw; margin-top: .12cqw; }
.qc-flag.is-checked .qc-who .d-btn { background: var(--good-soft); border-color: transparent; color: var(--good); }

@media (prefers-reduced-motion: reduce) {
  .qc-win.is-open .qc-words, .qc-win.is-full .qc-why, .qc-box.is-open > .qc-in > *, .qc-crit.is-mark .qc-tag,
  .qc-foot.is-in > *, .qc-none.is-open .qc-row .cm-score { animation: none !important; }
}
