/* People › Team progress, a person's progress page and the dashboard tile (docs/designs/team-progress-2026-11-17).
   A plain stylesheet, not scoped: the list, the person page and the tile share every class here. Everything sits under .tp. */

/* Kinds of work and bar fills */
.tp .tp-k-text { background: var(--info); }
.tp .tp-k-rec { background: var(--info); opacity: .7; }
.tp .tp-k-sugg { background: var(--info); opacity: .45; }
.tp .tp-k-mkt { background: var(--ai); }
.tp .tp-k-test { background: var(--brand); }
.tp .tp-k-task { background: var(--success); }
.tp .tp-f-ok { background: var(--success); }
.tp .tp-f-warn { background: var(--warn); }
.tp .tp-f-bad { background: var(--danger); }
.tp .tp-f-info { background: var(--info); }
.tp .tp-f-muted { background: var(--muted); }
.tp .tp-f-open { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }

.tp .tp-bar { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; display: flex; flex: 1; min-width: 60px; }
.tp .tp-bar i { display: block; height: 100%; }
.tp .tp-bar--lg { height: 12px; }
/* In a column (summary, card body) flex:1 would make the bar's height its flex basis: keep it a thin bar. */
.tp .tp-bar--lg, .tp .tp-card__body > .tp-bar, .tp .tp-sum__text > .tp-bar, .tp .m-w__body > .tp-bar { flex: none; }
.tp .tp-bar > i + i { border-left: 1px solid var(--surface); }
.tp .tp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--ink-2); }
.tp .tp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tp .tp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tp .tp-spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.tp .tp-spark i { width: 7px; border-radius: 2px 2px 0 0; background: var(--info); display: block; min-height: 2px; }
.tp .tp-spark--lg { height: 36px; }
.tp .tp-spark--lg i { width: 14px; }

/* List */
.tp .tp-who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tp .tp-who:hover .tp-who__n { text-decoration: underline; }
.tp .tp-who__n { display: block; }
.tp .tp-who__r { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.tp .tp-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.tp .tp-av--sm { width: 24px; height: 24px; font-size: 10px; }
.tp .tp-av--lg { width: 56px; height: 56px; font-size: 19px; }
.tp .tp-av--0 { background: var(--info-soft); color: var(--info); }
.tp .tp-av--1 { background: var(--success-soft); color: var(--success); }
.tp .tp-av--2 { background: var(--ai-soft); color: var(--ai); }
.tp .tp-av--3 { background: var(--warn-soft); color: var(--warn); }
.tp .tp-av--4 { background: var(--brand-soft); color: var(--brand-text); }
.tp .tp-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.tp .tp-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: 500;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tp .tp-tag i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tp .tp-prog { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.tp .tp-prog__n { font-variant-numeric: tabular-nums; font-weight: 600; width: 46px; text-align: right; }
.tp .tp-sub { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.tp .tp-late { color: var(--danger); font-weight: 600; }
.tp .tp-table td { vertical-align: middle; }

/* Person page */
.tp .tp-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tp .tp-head__text { flex: 1 1 300px; min-width: 0; }
.tp .tp-head__name { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.tp .tp-head__meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.tp .tp-head__acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp .tp-sum { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px; }
.tp .tp-ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tp .tp-ring__in { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.tp .tp-ring__in b { font-size: 30px; font-weight: 600; line-height: 1; display: block; }
.tp .tp-ring__in span { font-size: var(--fs-xs); color: var(--muted); }
.tp .tp-sum__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp .tp-sum__lead { font-size: var(--fs-lg); font-weight: 500; margin: 0; }
.tp .tp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1 1 420px; }
.tp .tp-stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface-2); }
.tp .tp-stat__k { font-size: var(--fs-xs); color: var(--muted); }
.tp .tp-stat__v { font-size: 20px; font-weight: 600; }
.tp .tp-stat__v small { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.tp .tp-sect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp .tp-sect h2 { font-size: var(--fs-md); font-weight: 600; margin: 0; }
.tp .tp-sect > .m-help, .tp .tp-sect > .tp-legend { margin-left: auto; }
.tp .tp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tp .tp-sect > a { margin-left: auto; color: var(--info); text-decoration: none; font-size: var(--fs-sm); }
.tp .tp-sect > a:hover { text-decoration: underline; }
.tp .tp-stat__v small { white-space: nowrap; }
.tp .tp-chart__x span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp .tp-chart__none { height: 150px; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.tp .tp-mini__row .tp-bar { margin-top: 6px; height: 6px; }
.tp .tp-card { background: var(--surface); border: 1px solid var(--panel-border, var(--line)); border-radius: var(--r-md); box-shadow: var(--shadow-1); display: flex; flex-direction: column; overflow: hidden; }
.tp .tp-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.tp .tp-card__ic { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.tp .tp-ic-text, .tp .tp-ic-rec, .tp .tp-ic-sugg { background: var(--info-soft); color: var(--info); }
.tp .tp-ic-mkt { background: var(--ai-soft); color: var(--ai); }
.tp .tp-ic-test { background: var(--brand-soft); color: var(--brand-text); }
.tp .tp-ic-task { background: var(--success-soft); color: var(--success); }
.tp .tp-card__t { font-weight: 600; }
.tp .tp-card__s { font-size: var(--fs-xs); color: var(--muted); }
.tp .tp-card__head .m-pill, .tp .tp-card__head > :last-child:not(div) { margin-left: auto; }
.tp .tp-card__body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.tp .tp-card__big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tp .tp-card__big b { font-size: 22px; font-weight: 600; }
.tp .tp-card__big span { color: var(--muted); }
.tp .tp-brk { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; font-size: var(--fs-sm); align-items: center; }
.tp .tp-brk i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.tp .tp-brk .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tp .tp-stat__v--sm { font-size: var(--fs-md); }
.tp .tp-cats { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: var(--fs-sm); padding-top: 8px; border-top: 1px solid var(--line); }
.tp .tp-cat { display: contents; color: var(--muted); }
.tp .tp-cat .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tp .tp-card__foot { margin-top: auto; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 8px; align-items: center;
    background: var(--surface-2); font-size: var(--fs-xs); color: var(--muted); flex-wrap: wrap; }
.tp .tp-card__foot > :last-child { margin-left: auto; }
.tp .tp-panel { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tp .tp-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.tp .tp-chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.tp .tp-chart__col i { display: block; }
.tp .tp-chart__col i:first-child { border-radius: 3px 3px 0 0; }
.tp .tp-chart__x { display: flex; gap: 14px; padding: 6px 4px 0; }
.tp .tp-chart__x span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.tp .tp-chart__x span.now { color: var(--ink); font-weight: 600; }
.tp .tp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.tp .tp-list { display: flex; flex-direction: column; }
.tp .tp-li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: inherit; text-decoration: none; }
.tp .tp-li:last-child { border-bottom: 0; }
.tp a.tp-li:hover .tp-li__t { text-decoration: underline; }
.tp .tp-li__main { flex: 1; min-width: 0; }
.tp .tp-li__t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp .tp-li__s { color: var(--muted); font-size: var(--fs-xs); }
.tp .tp-c-ok { color: var(--success); }
.tp .tp-c-warn { color: var(--warn); }
.tp .tp-c-bad { color: var(--danger); }
.tp .tp-c-info { color: var(--info); }

/* Dashboard tile */
.tp .tp-tile__top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tp .tp-tile__top .tp-bar { min-width: 160px; }
.tp .tp-tile__row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.tp .tp-tile__row:hover { background: var(--surface-2); }
.tp .tp-tile__who { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.tp .tp-tile__row .tp-prog { min-width: 140px; }

/* Other ways in: a person's name on another page that opens their progress (Verification overview) */
a.tp-person-link { color: inherit; text-decoration: none; }
a.tp-person-link:hover { text-decoration: underline; }

/* Phone: the cards fold into one line each (design screen 4) */
.tp .tp-mini { display: none; padding: 4px 14px; }
.tp .tp-mini__row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tp .tp-mini__row:last-child { border-bottom: 0; }
.tp .tp-mini__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

@media (max-width: 720px) {
    .tp .tp-mini { display: block; }
    .tp .tp-cards { display: none; }
    .tp .tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp .tp-two { grid-template-columns: minmax(0, 1fr); }
    .tp .tp-cards { grid-template-columns: minmax(0, 1fr); }
    .tp .tp-chart { gap: 8px; height: 110px; }
    .tp .tp-chart__x { gap: 8px; }
    .tp .tp-chart__x span { font-size: 10px; }
    .tp .tp-chart__none { height: 110px; }
    .tp .tp-ring { width: 92px; height: 92px; }
    .tp .tp-ring__in { width: 72px; height: 72px; }
    .tp .tp-ring__in b { font-size: 22px; }
    .tp .tp-head__acts { width: 100%; }
    .tp .tp-tile__row .tp-prog { min-width: 90px; }
}
