/* The line of completion (js/progress.js): a thin line, "37% · circa 12 min" and the details that open under it. It sits on the glass bar of the chat, in a card on the page of the project, in a row
   of the list and of the Home. Only Orbita's own tokens: the track is --track, the fill --acc, the words --tx3 / --acc-tx like the rest. */
.pl { display: block; position: relative; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; transition: opacity 400ms var(--ease); }
.pl[hidden] { display: none; }
.pl.out { opacity: 0; }
.pl > i { display: block; height: 100%; width: 1%; min-width: 4px; border-radius: inherit; background: var(--acc); transition: width 900ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .pl, .pl > i { transition: none; } }

/* the text: the percent, a dot, the time; with the details it is a button (the target is wider than the words) */
.pl-txt { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; position: relative; }
button.pl-txt { cursor: pointer; }
button.pl-txt::after { content: ""; position: absolute; inset: -14px -8px; }
.pl-txt .sep { opacity: .5; }
.pl-txt.stopped { color: var(--warn); }

/* on the glass bar of the chat: along the lower edge, clear of the rounded ends; the details open over the messages, under the bar, without pushing them */
.bar > .pl { position: absolute; left: 30px; right: 30px; bottom: 4px; height: 3px; pointer-events: none; }
@media (min-width: 900px) { .bar > .pl { left: 20px; right: 30px; bottom: 6px; } }
.pl-details { display: grid; gap: 8px; padding: 14px 16px; border-radius: 22px; }
.pl-details[hidden] { display: none; }
.chat-top > .pl-details { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--sheet); }      /* (the sheet's own, nearly opaque glass: the words under it must not show through) */
.pl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pl-row > span:last-child { text-align: right; min-width: 0; }
.pl-note { margin: 0; }
.pl-note + .pl-note { margin-top: -2px; }
@media (max-width: 480px) { .status .el { display: none; } }

/* in a card on the page of the project */
.pl-card { display: grid; gap: 12px; }
.pl-card .pl { height: 6px; border-radius: 3px; }
.pl-card .pl-details { padding: 0; border-radius: 0; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.pl-head .pl-txt { color: var(--acc-tx); }

/* in a row of the list: the line and the words side by side */
.pl-inline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-inline .pl { flex: 1; min-width: 0; }
.pl-inline .pl-txt { flex: none; color: var(--acc-tx); }
