/* 3 · The team: totals across the top, the leaderboard on the left, the period's reading on the right. */
.cm-team h2 { max-width: none; }
.cm-team h5 { margin: 0; display: flex; align-items: center; gap: .45cqw; font-family: var(--body); font-size: .92cqw; font-weight: 650; letter-spacing: -.005em; }
.cm-team h5 .ic { width: 1cqw; height: 1cqw; }
.tm-main { gap: .85cqw; padding-top: 1cqw; padding-bottom: .9cqw; }
.tm-body { display: grid; grid-template-columns: 33.5cqw minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: .8cqw 1.1cqw; min-height: 0; }

/* The totals */
.tm-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1cqw; }
.cm-team .cm-tile { gap: .25cqw; padding: .62cqw 1.1cqw .66cqw; }
.cm-team .cm-tile p { display: flex; align-items: baseline; gap: .7cqw; min-width: 0; }
.cm-team .cm-tile b { font-size: 2.05cqw; }
.cm-team .cm-tile span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* A card's head: its name, and a line of context at the right. */
.tm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqw; white-space: nowrap; }
.tm-card-head h4 { display: flex; align-items: center; gap: .5cqw; align-self: center; }
.tm-card-head h4 .ic { width: 1.15cqw; height: 1.15cqw; opacity: .7; }
.tm-card-head small { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .86cqw; font-weight: 550; color: var(--app-mute); }

/* The leaderboard */
.tm-board { grid-template-rows: auto minmax(0, 1fr); gap: .45cqw; padding: .85cqw 1cqw .7cqw; }
.tm-rows { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); min-height: 0; }
.tm-row { position: relative; display: grid; grid-template-columns: 1.1cqw auto minmax(0, 1fr) 2.7cqw 11.4cqw; align-items: center; gap: .7cqw; padding: .2cqw .55cqw; border-radius: .7cqw; background: var(--card); transition: background .35s, box-shadow .35s; }
.tm-row + .tm-row { box-shadow: 0 -1px 0 var(--app-line); }
.tm-row.is-mark { background: var(--app-accent-soft); box-shadow: inset .22cqw 0 0 var(--app-accent); }
.tm-row.is-mark + .tm-row { box-shadow: none; }
.tm-rank { font-size: .95cqw; font-weight: 700; color: var(--app-mute); text-align: center; font-variant-numeric: tabular-nums; }
.tm-row .cm-av { width: 2.2cqw; height: 2.2cqw; font-size: .82cqw; }
.tm-name { display: grid; justify-items: start; gap: .1cqw; min-width: 0; }
.tm-name > b { font-size: 1.05cqw; line-height: 1.15; font-weight: 650; white-space: nowrap; }
.tm-tag:empty { display: none; }
.tm-tag .cm-chip { padding: 0 .45cqw; font-size: .76cqw; line-height: 1.45; animation: d-rise .35s ease-out both; }
.tm-tag .cm-chip .ic { width: .85cqw; height: .85cqw; }
.tm-big { font: 750 2.05cqw/1 var(--display); letter-spacing: -.035em; text-align: right; font-variant-numeric: tabular-nums; }
.tm-small { display: grid; font-size: .84cqw; line-height: 1.32; color: var(--app-mute); white-space: nowrap; }
.tm-small b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* The panel on the right */
.tm-read { grid-template-rows: none; align-content: start; gap: .6cqw; padding: .85cqw 1.15cqw .8cqw; overflow: hidden; }
.tm-read.is-in > * { animation: d-rise .42s ease-out both; }
.tm-read.is-in > :nth-child(2) { animation-delay: .07s; }
.tm-read.is-in > :nth-child(3) { animation-delay: .14s; }
.tm-read q { quotes: "“" "”"; }

/* Day: the end-of-day summary */
.tm-sums { display: grid; align-content: start; gap: .48cqw; }
.tm-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65cqw; align-items: start; border-radius: .6cqw; }
.tm-sum + .tm-sum { padding-top: .48cqw; box-shadow: 0 -1px 0 var(--app-line); }
.tm-sum > .cm-av { margin-top: .05cqw; }
.tm-sum > div { display: grid; gap: .3cqw; min-width: 0; }
.tm-sum p { font-size: .95cqw; line-height: 1.36; text-wrap: pretty; }
.tm-sum p b { font-weight: 650; }
.tm-links { display: grid; gap: .2cqw; }
.tm-link { padding: .14cqw .6cqw .16cqw; border-radius: .55cqw; background: var(--sage-paper); font-size: .88cqw; line-height: 1.38; }
.tm-link > span + * { margin-left: .5cqw; }
.tm-at { display: inline-flex; align-items: center; gap: .3cqw; vertical-align: -.08em; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-at .ic { width: .8cqw; height: .8cqw; }
.tm-at use[href="#i-play"] { fill: currentColor; }
.tm-co { font-weight: 600; color: var(--app-mute); white-space: nowrap; }
.tm-link q { font-weight: 600; }
.tm-link.is-flag { background: var(--work-soft); }
.tm-link.is-flag .tm-at { color: var(--work); }
.tm-link.is-strength { background: var(--good-soft); }
.tm-link.is-strength .tm-at { color: var(--good); }

/* Week: two salespeople, two ways to miss meetings */
.tm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8cqw; }
.tm-who { display: grid; gap: .6cqw; align-content: start; padding: .85cqw .95cqw .9cqw; border-radius: .85cqw; background: var(--app-accent-soft); box-shadow: inset 0 0 0 1px rgb(150 70 78 / 14%); }
.tm-who-head { display: flex; align-items: center; justify-content: space-between; gap: .5cqw; white-space: nowrap; }
.tm-who-head .cm-who { font-size: 1.02cqw; }
.tm-who-head small { font-size: .82cqw; font-weight: 650; color: var(--app-accent); }
.tm-nums { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 1.6cqw; }
.tm-nums p { display: grid; gap: .2cqw; }
.tm-nums b { font: 750 2.3cqw/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tm-nums small { font-size: .82cqw; font-weight: 550; line-height: 1.25; color: var(--app-mute); white-space: nowrap; }
.tm-who-text { font-size: .9cqw; line-height: 1.38; text-wrap: pretty; }
.tm-wins { display: grid; gap: .45cqw; margin-top: .55cqw; padding-top: .75cqw; box-shadow: 0 -1px 0 var(--app-line); }
.tm-wins h5 .ic { color: var(--app-accent); }
.tm-wins ul { display: grid; gap: .4cqw; }
.tm-wins li { display: flex; align-items: center; gap: .5cqw; font-size: .92cqw; line-height: 1.35; }
.tm-wins li b { font-weight: 650; }

/* Month: what recurs across the team, and what coaching changed */
.tm-month { display: grid; gap: .2cqw; }
.tm-month-head, .tm-month li { display: grid; grid-template-columns: 1.05cqw minmax(0, 1fr) 4.6cqw 3cqw; align-items: center; gap: .6cqw; }
.tm-month-head { font-size: .84cqw; font-weight: 650; color: var(--app-mute); }
.tm-month-head span { grid-column: 1 / 3; }
.tm-month-head small { font-size: .78cqw; font-weight: 550; }
.tm-month-head small:last-child { text-align: right; }
.tm-month ul + .tm-month-head { margin-top: .6cqw; }
.tm-month ul { display: grid; }
.tm-month li { padding: .38cqw 0; font-size: .95cqw; box-shadow: 0 1px 0 var(--app-line); }
.tm-month li .ic { width: 1.05cqw; height: 1.05cqw; }
.tm-month li.is-problem .ic { color: var(--work); }
.tm-month li.is-strength .ic { color: var(--good); }
.tm-often { display: flex; gap: .2cqw; }
.tm-month li b { font: 750 1.35cqw/1 var(--display); letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.tm-better { display: grid; gap: .45cqw; margin-top: .75cqw; padding: .7cqw .95cqw .75cqw; border-radius: .85cqw; background: var(--good-soft); }
.tm-better header { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqw; white-space: nowrap; }
.tm-better h5 { color: var(--good); }
.tm-better header small { font-size: .82cqw; color: var(--app-mute); }
.tm-better-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65cqw; }
.tm-better-body > p:not(.tm-from) { font-size: .95cqw; line-height: 1.35; text-wrap: pretty; }
.tm-better-body > p b { font-weight: 650; }
.tm-from { display: grid; justify-items: end; gap: .2cqw; padding-left: .6cqw; }
.tm-from span { display: flex; align-items: baseline; gap: .45cqw; }
.tm-from b { font: 750 2.3cqw/1 var(--display); letter-spacing: -.035em; color: var(--app-mute); font-variant-numeric: tabular-nums; }
.tm-from b.is-up { color: var(--good); }
.tm-from i { font-style: normal; font-size: .92cqw; font-weight: 600; color: var(--app-mute); }
.tm-from small { font-size: .8cqw; color: var(--app-mute); white-space: nowrap; }

/* The definition, once, at the foot of the screen */
.tm-def { grid-column: 1 / -1; display: flex; align-items: center; gap: .45cqw; font-size: .86cqw; line-height: 1.3; color: var(--app-mute); }
.tm-def .ic { width: .95cqw; height: .95cqw; }

@media (prefers-reduced-motion: reduce) {
  .tm-read.is-in > *, .tm-tag .cm-chip { animation: none; }
}
