/* Counted progress on a task (ui-v2/s1-task-progress.js). Ink and grey; the only hue is the late colour, for "behind pace". */
.tp { display: grid; gap: calc(6px * var(--s1-scale, 1)); margin-top: 8px; padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-line-soft); border-radius: 10px; background: var(--s1-panel); min-width: 0; font-size: var(--s1-fs-2); color: var(--s1-ink); }
.tp--mini { padding: calc(6px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)); gap: 4px; }
.tp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px calc(10px * var(--s1-scale, 1)); }
.tp-unit { font-weight: 650; text-transform: capitalize; }
.tp-pace { font-size: var(--s1-fs-1); color: var(--s1-mute); }
.tp-pace--behind { color: var(--s1-late); font-weight: 600; }
.tp-line { display: grid; grid-template-columns: 44px minmax(60px, 1fr) auto; align-items: center; gap: calc(8px * var(--s1-scale, 1)); }
.tp-line:not(:has(.tp-bar)) { grid-template-columns: 44px auto; }
.tp-who { color: var(--s1-mute); font-size: var(--s1-fs-1); }
.tp-bar { display: block; height: 6px; border-radius: 999px; background: var(--s1-line-soft); overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--s1-ink); }
.tp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-spark { width: 100%; max-width: 240px; height: 28px; }
.tp-spark-line { fill: none; stroke: var(--s1-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tp-spark-target { stroke: var(--s1-mute); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tp-people li { display: flex; justify-content: space-between; gap: calc(10px * var(--s1-scale, 1)); color: var(--s1-ink-2); }
.tp-act { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); }
.tp-btn { min-width: 40px; height: 30px; padding: 0 calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-ink); border-radius: 8px; background: var(--s1-ink); color: var(--s1-on-ink); font: 600 var(--s1-fs-2)/1 inherit; cursor: pointer; }
.tp-btn:hover:not(:disabled) { background: var(--s1-ink-hover); }
.tp-btn--ghost { background: var(--s1-panel); color: var(--s1-ink); border-color: var(--s1-line); }
.tp-btn--ghost:hover:not(:disabled) { background: var(--s1-panel); border-color: var(--s1-ink); }
.tp-btn:disabled { opacity: .55; cursor: default; }
@media (hover: none) { .tp-btn { min-width: 44px; height: 44px; } }
/* the one-line summary inside the project overview's work list */
.tp-glance { color: var(--s1-ink-2); font-size: var(--s1-fs-2); }
.tp-glance.is-behind { color: var(--s1-late); }

.tp-btn--log { height: 34px; padding: 0 calc(14px * var(--s1-scale, 1)); }
.tp-btn--quiet { background: transparent; color: var(--s1-mute); border-color: transparent; font-weight: 500; text-decoration: underline; }
.tp-btn--quiet:hover:not(:disabled) { background: transparent; color: var(--s1-ink); }

/* r18: the counted block is part of the row, not a box inside it; the bar is thin and the pace line says where you stand */
html .tp { border: 0; border-radius: 0; background: none; padding: 4px 0 0; }
html .tp--mini { padding: 2px 0 0; }
html .tp-pace--behind { color: var(--s1-soon); }
html .tp-glance.is-behind { color: var(--s1-soon); }
html .tp-btn--ghost { border-color: var(--s1-line); }

/* r19: the counted block never adds a second dark button beside the page's one primary. Log progress is an outline button. */
html .tp-btn--log { background: var(--s1-panel); color: var(--s1-ink); border-color: var(--s1-line); }
html .tp-btn--log:hover:not(:disabled) { background: var(--s1-panel-head, var(--s1-panel)); border-color: var(--s1-ink); }
