/* 부품 progress — 진행 막대 + 숫자 글. 묶음: templates/ui/progress.html · static/ui/parts/progress/progress.{css,js,md}.
   바탕(static/ui/base/ui.css)의 변수에 기댄다. CDN·의존 없음. */
.nx-progress { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.nx-progress-track { flex: 1 1 auto; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.nx-progress-bar { height: 100%; background: var(--acc); transition: width .4s ease; }
.nx-progress-text { flex: 0 0 auto; min-width: 4ch; text-align: right; font-size: var(--fs-s); color: var(--muted);
                    font-variant-numeric: tabular-nums; }
/* 얼마나 남았는지 모르는 일 — 막대가 오간다(data-wait) */
.nx-progress[data-wait] .nx-progress-bar { width: 35% !important; transition: none; animation: nx-progress-wait 1.2s ease-in-out infinite alternate; }
@keyframes nx-progress-wait { from { transform: translateX(0); } to { transform: translateX(186%); } }
@media (prefers-reduced-motion: reduce) { .nx-progress[data-wait] .nx-progress-bar { animation-duration: 4s; } }
/* 하는 일 띠 — 화면 아래 가운데에 떠서 지금 도는 일을 보인다(누르면 자세히). 목록이 밀리지 않는다 */
.nx-work { position: fixed; left: 50%; bottom: var(--sp-4); transform: translateX(-50%); z-index: 30; width: min(560px, calc(100vw - 2 * var(--sp-3)));
           display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--acc); border-radius: var(--r-2);
           background: var(--surface-2); box-shadow: var(--shadow); font-size: var(--fs-s); cursor: pointer; }
.nx-work-line { min-width: 0; }
.nx-work-line > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-work .nx-progress-track { background: var(--line); }
