/* 7 · Coaching progress: the Coaching page of the manager's app, on its "Tracked behaviours" tab. Her behaviours on the left; on
   the right the tracked one: when the coaching took place, a week-by-week line, and before and after, each with an example call. */
.cm-progress h2 { max-width: none; }
.pg-main { grid-template-rows: auto auto minmax(0, 1fr); gap: .8cqw; padding: 1.05cqw 1.5cqw 1.1cqw; }
.cm-progress h4 { display: flex; align-items: center; gap: .5cqw; font-size: 1.02cqw; }
.cm-progress h4 .ic { width: 1.1cqw; height: 1.1cqw; opacity: .7; }

/* The bar: whose review it is, and the month */
.pg-ctl { display: flex; align-items: center; gap: .6cqw; }
.pg-pick, .pg-period { display: inline-flex; align-items: center; gap: .5cqw; padding: .32cqw .75cqw .32cqw .4cqw; border-radius: .75cqw; background: #fff; box-shadow: 0 0 0 1px var(--app-line); font-size: .98cqw; font-weight: 600; white-space: nowrap; }
.pg-period { padding-left: .7cqw; }
.pg-pick .ic, .pg-period .ic { width: 1.05cqw; height: 1.05cqw; opacity: .6; }
.pg-tabs { margin-top: -.15cqw; }

.cm-progress .cm-app { grid-template-rows: minmax(0, 1fr); }
.pg-body { display: grid; grid-template-columns: 21.5cqw minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 1.1cqw; min-height: 0; }

/* Her behaviours: from her quick wins and coaching priorities */
.pg-list { grid-template-rows: auto auto minmax(0, 1fr); gap: .65cqw; padding: .9cqw 1cqw 1cqw; }
.pg-lh { display: grid; gap: .1cqw; }
.pg-lh small { font-size: .82cqw; font-weight: 550; color: var(--app-mute); }
.pg-bs { display: grid; gap: .35cqw; margin: 0 -.45cqw; }
.pg-b { display: grid; gap: .3cqw; width: 100%; padding: .5cqw .6cqw .55cqw .65cqw; border: 0; border-radius: .75cqw; background: none; text-align: left; box-shadow: inset 0 0 0 1px var(--app-line); transition: background .2s, box-shadow .2s; }
.pg-b:hover { background: rgb(41 59 51 / 4%); }
.pg-b:focus-visible { outline: .2cqw solid var(--rose); outline-offset: .1cqw; }
.pg-b > b { font-size: .96cqw; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.pg-bm { display: flex; align-items: center; justify-content: space-between; gap: .6cqw; min-width: 0; }
.pg-bm small { min-width: 0; font-size: .8cqw; font-weight: 550; color: var(--app-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-st { flex: none; display: inline-flex; }
.pg-add { display: inline-flex; align-items: center; gap: .25cqw; padding: .12cqw .55cqw .12cqw .4cqw; border-radius: 99cqw; font-size: .82cqw; font-weight: 650; color: var(--app-mute); box-shadow: inset 0 0 0 1px var(--app-line); }
.pg-add .ic { width: .85cqw; height: .85cqw; stroke-width: 2.4; }
.pg-b[aria-pressed="true"] { background: var(--app-accent-soft); box-shadow: inset .22cqw 0 0 var(--app-accent), inset 0 0 0 1px rgb(150 70 78 / 22%); }
.pg-def { align-self: end; display: flex; align-items: flex-start; gap: .5cqw; padding: .6cqw .7cqw; border-radius: .75cqw; background: var(--app-bg); font-size: .84cqw; line-height: 1.38; color: var(--app-mute); text-wrap: pretty; }
.pg-def .ic { width: 1.05cqw; height: 1.05cqw; margin-top: .1cqw; opacity: .8; }

/* The tracked behaviour */
.pg-track { grid-template-rows: auto auto auto minmax(0, 1fr); gap: .65cqw; align-content: stretch; padding: .75cqw 1.1cqw .85cqw; }
.pg-th { display: flex; align-items: center; gap: 1cqw; min-height: 2.1cqw; }
.pg-tt { display: grid; gap: .05cqw; min-width: 0; }
.pg-tt h4 { font-size: 1.18cqw; font-weight: 650; line-height: 1.25; }
.pg-tt h4 .ic { width: 1.25cqw; height: 1.25cqw; color: var(--app-accent); opacity: 1; }
.pg-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pg-n { margin-left: auto !important; display: flex; align-items: center; gap: .55cqw; padding-left: 1cqw; box-shadow: -1px 0 0 var(--app-line); }
.pg-n b { font: 750 1.75cqw/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pg-n span { font-size: .8cqw; font-weight: 550; line-height: 1.25; color: var(--app-mute); white-space: nowrap; }
.pg-none { display: flex; align-items: center; gap: .6cqw; font-size: .98cqw; color: var(--app-mute); }
.pg-none .ic { width: 1.25cqw; height: 1.25cqw; opacity: .7; }
.pg-none b { color: var(--ink); font-weight: 650; }

/* When the coaching took place: a small form row, then the saved record */
.pg-rec { display: flex; align-items: center; gap: .6cqw; min-height: 2.45cqw; padding: .3cqw .35cqw .3cqw .8cqw; border-radius: .8cqw; background: var(--app-bg); box-shadow: inset 0 0 0 1px var(--app-line); transition: opacity .3s; }
.pg-track:not(.is-picked) .pg-rec { opacity: .5; }
.pg-rl { flex: none; display: inline-flex; align-items: center; gap: .45cqw; font-size: .92cqw; font-weight: 650; white-space: nowrap; }
.pg-rl .ic { width: 1.05cqw; height: 1.05cqw; opacity: .65; }
.pg-in { display: flex; align-items: center; min-width: 0; height: 1.85cqw; padding: 0 .65cqw; border-radius: .5cqw; background: #fff; box-shadow: inset 0 0 0 1px rgb(41 59 51 / 20%); font-size: .92cqw; font-weight: 550; white-space: nowrap; overflow: hidden; cursor: text; }
.pg-date { flex: none; width: 9.4cqw; }
.pg-how { flex: 1; }
.pg-in:empty::before { content: attr(data-ph); color: rgb(41 59 51 / 42%); }
.pg-in.is-typing { box-shadow: inset 0 0 0 .14cqw var(--app-accent); }
.pg-in.is-typing::after { content: ""; flex: none; width: 1px; height: 1.1cqw; margin-left: 1px; background: var(--ink); animation: pg-caret .8s steps(1) infinite; }
@keyframes pg-caret { 50% { opacity: 0; } }
.pg-save { flex: none; padding: .34cqw .95cqw; border-radius: .6cqw; font-size: .95cqw; }
.pg-save.is-press { transform: scale(.95); transition: transform .12s; }
.pg-track:not(.is-picked) .pg-save { pointer-events: none; }
.pg-rec.is-saved { background: var(--good-soft); box-shadow: none; padding-right: .8cqw; }
.pg-saved { flex: 1; display: flex; align-items: center; gap: .55cqw; min-width: 0; font-size: .95cqw; line-height: 1.3; }
.pg-saved > .ic { flex: none; width: 1.5cqw; height: 1.5cqw; padding: .25cqw; border-radius: 50%; background: var(--good); color: #fff; stroke-width: 2.8; }
.pg-saved b { font-weight: 650; }
.pg-ok { flex: none; font-size: .84cqw; font-weight: 650; color: var(--good); }

/* Week by week: four weeks on a line, and the day of the coaching between the first and the second */
.pg-tl { position: relative; display: flex; align-items: center; gap: .7cqw; }
.pg-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .14cqw; border-radius: 1cqw; background: rgb(41 59 51 / 14%); }
.pg-wk { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .5cqw; padding: .3cqw .8cqw .34cqw; border-radius: .75cqw; background: #fff; box-shadow: 0 0 0 1px var(--app-line); }
.pg-wk small { grid-column: 1 / -1; font-size: .8cqw; font-weight: 600; color: var(--app-mute); white-space: nowrap; }
.pg-wk b { font: 750 1.45cqw/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgb(41 59 51 / 35%); }
.pg-wk span { font-size: .8cqw; font-weight: 550; color: var(--app-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-wk.is-on b { color: var(--ink); }
.pg-wk.is-on.is-after { background: color-mix(in srgb, var(--good) 7%, #fff); box-shadow: 0 0 0 1px rgb(47 107 58 / 22%); }
.pg-wk.is-on.is-after b { color: var(--good); }
.pg-mk { position: relative; flex: none; display: grid; place-items: center; }
.pg-mk > span { display: inline-flex; align-items: center; gap: .35cqw; padding: .3cqw .7cqw .3cqw .5cqw; border-radius: 99cqw; background: var(--app-accent); color: #fff; font-size: .84cqw; font-weight: 650; white-space: nowrap; box-shadow: 0 .4cqw .9cqw -.4cqw rgb(150 70 78 / 70%); }
.pg-mk > span .ic { width: .95cqw; height: .95cqw; }
.pg-mk:not(.is-on) > span { visibility: hidden; }
.pg-mk:not(.is-on)::after { content: ""; position: absolute; width: .7cqw; height: .7cqw; border-radius: 50%; background: var(--app-bg); box-shadow: inset 0 0 0 .14cqw rgb(41 59 51 / 22%); }
.pg-mk.is-on > span { animation: d-rise .4s ease-out both; }

/* Before and after, side by side */
.pg-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: .9cqw; min-height: 0; }
.pg-side { display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: .5cqw; min-width: 0; min-height: 0; overflow: hidden; padding: .65cqw 1cqw .7cqw; border-radius: .9cqw; background: var(--app-bg); box-shadow: inset 0 0 0 1px var(--app-line); transition: background .4s, box-shadow .4s; }
.pg-track.is-compared .pg-side.is-after { background: color-mix(in srgb, var(--good) 6%, var(--app-bg)); box-shadow: inset 0 0 0 1px rgb(47 107 58 / 20%); }
.pg-sum { display: grid; gap: .15cqw; min-width: 0; }
.pg-side header { display: flex; align-items: baseline; gap: .55cqw; }
.pg-side header b { font-size: 1cqw; font-weight: 650; }
.pg-side header small { font-size: .84cqw; font-weight: 600; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.pg-up { margin-left: .2cqw; padding-block: 0; font-size: .8cqw; line-height: 1.3; vertical-align: .05cqw; }
.pg-stat { display: flex; align-items: center; gap: .9cqw; min-height: 3.6cqw; }
.pg-pct { flex: none; min-width: 5.4cqw; font: 750 3cqw/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: rgb(41 59 51 / 30%); }
.pg-track.is-compared .pg-pct { color: var(--ink); }
.pg-track.is-compared .is-after .pg-pct { color: var(--good); }
.pg-of { font-size: .9cqw; line-height: 1.32; color: var(--app-mute); text-wrap: pretty; }
.pg-of b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-of i, .pg-meta i { display: block; height: .55cqw; border-radius: 1cqw; background: rgb(41 59 51 / 9%); }
.pg-of i { width: 13cqw; margin: .45cqw 0 .3cqw; }
.pg-meta i { width: 10cqw; margin: .25cqw 0 .15cqw; }

/* One example call from the period */
.pg-ex { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .45cqw; min-height: 0; padding-top: .5cqw; box-shadow: 0 -1px 0 var(--app-line); }
.pg-pl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65cqw; }
.pg-play { transition: background .2s, opacity .2s; }
.pg-play:hover:not(:disabled) { background: var(--deep-ink); }
.pg-play:disabled { opacity: .3; cursor: default; }
.pg-pw { display: grid; gap: .1cqw; min-width: 0; }
.pg-meta { font-size: .78cqw; font-weight: 600; color: var(--app-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-progress .pg-wave { height: 1.8cqw; gap: .2cqw; }
.pg-t { font-size: .84cqw; font-weight: 650; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.pg-side.is-playing .pg-play { background: var(--app-accent); }
.pg-side.is-playing .pg-t { color: var(--app-accent); }
.pg-side.is-playing .pg-wave i.is-played { background: var(--app-accent); }
.pg-lines { display: flex; flex-direction: column; align-items: flex-start; gap: .3cqw; min-width: 0; min-height: 0; }
.pg-lines .cm-q { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .5cqw; max-width: 96%; padding: .28cqw .6cqw .32cqw; font-size: .88cqw; line-height: 1.3; animation: d-rise .25s ease-out both; }
.pg-lines .cm-q small { font-size: .74cqw; white-space: nowrap; }
.pg-lines .cm-q.is-rep { align-self: flex-end; }
.pg-side.is-before .pg-lines .cm-q:not(.is-rep) { background: var(--work-soft); }
.pg-hint { display: flex; align-items: center; justify-content: center; gap: .45cqw; flex: 1; align-self: stretch; min-height: 3cqw; border-radius: .7cqw; border: 1px dashed rgb(41 59 51 / 20%); font-size: .86cqw; font-weight: 550; color: var(--app-mute); }
.pg-track:not(.is-compared) .pg-hint { color: rgb(41 59 51 / 45%); }
.pg-pct.is-ph i { display: block; width: 4.6cqw; height: 2.3cqw; border-radius: .6cqw; background: rgb(41 59 51 / 8%); }
.pg-hint .ic { width: .8cqw; height: .8cqw; }

/* Things arriving */
.pg-th.is-in > *, .pg-rec.is-in > *, .pg-side.is-in > :is(.pg-stat, .pg-ex), .pg-track.is-in > *, .pg-n.is-in, .pg-up.is-in, .pg-side header small.is-in { animation: d-rise .42s ease-out both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .pg-th.is-in > *, .pg-rec.is-in > *, .pg-side.is-in > *, .pg-track.is-in > *, .pg-n.is-in, .pg-up.is-in, .pg-mk.is-on > span, .pg-lines .cm-q, .pg-side header small.is-in { animation: none; }
  .pg-in.is-typing::after { animation: none; }
}
