.task-progress {
  --tp-ink: #f2f3fc;
  --tp-muted: #b4bbcf;
  --tp-violet: #b0d1d6;
  --tp-mint: #93dece;
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: clamp(16px, 2.7vw, 25px);
  border: 1px solid #c3d5d83d;
  border-radius: 23px;
  color: var(--tp-ink);
  background: linear-gradient(145deg, #373d3eec, #202426f5 64%);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 8px 26px #05071122;
  text-align: start;
  color-scheme: dark;
}
.task-progress[hidden] { display: none !important; }
.task-progress .tp-head, .task-progress .tp-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.task-progress .tp-head .tp-title {
  margin: 0; font: inherit; font-size: 17px; font-weight: 650; letter-spacing: .01em; color: var(--tp-ink);
}
.task-progress .tp-count { color: #d5d8ff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.task-progress .tp-bar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.task-progress .tp-percent { min-width: 3ch; color: #dee3fb; text-align: end; font-size: 12px; font-variant-numeric: tabular-nums; }
.task-progress .tp-track { flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: #424657; box-shadow: inset 0 1px 2px #10122255; }
.task-progress .tp-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b8aaca,#b8d4de 65%,#b3e2d7); transition: width .25s ease-out; }
.task-progress .tp-message { min-height: 1.45em; color: var(--tp-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.task-progress .tp-status-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; justify-content: space-between; }
.task-progress .tp-time { color: #aeb6ca; font-size: 11px; font-variant-numeric: tabular-nums; }
.task-progress .tp-columns { display: grid; grid-template-columns: minmax(148px,.82fr) minmax(0,1.8fr); align-items: start; gap: 18px; margin-top: 17px; }
.task-progress .tp-steps { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; align-content: start; }
.task-progress .tp-steps li { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 5px 0; line-height: 1.4; color: #a4aaba; font-size: 13px; overflow-wrap: anywhere; }
.task-progress .tp-step-icon { flex: 0 0 19px; height: 19px; box-sizing: border-box; border: 1px solid #b9c1df38; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.task-progress li[data-state="done"] { color: #c4d2d2; }
.task-progress li[data-state="done"] .tp-step-icon { border-color: #8ce6c947; background: #74c4af21; color: var(--tp-mint); }
.task-progress li[data-state="active"] { color: #eeeefe; font-weight: 650; }
.task-progress li[data-state="active"] .tp-step-icon { color: #f1efff; background: #727bc856; border-color: var(--tp-violet); box-shadow: 0 0 0 3px #9aa7ff13; }
.task-progress li:is([data-state="failed"],[data-state="paused"]) { color: #f2c9a7; }
.task-progress .tp-preview { min-width: 0; align-self: stretch; overflow: hidden; border: 1px solid #9099b634; border-radius: 15px; background: #131722; }
.task-progress .tp-preview-head { min-height: 36px; padding: 4px 14px; box-sizing: border-box; border-bottom: 1px solid #a0a7c222; background: #d0d7ff07; }
.task-progress .tp-preview-head strong { display: inline-flex; align-items: center; gap: 7px; color: #d9ddef; font-size: 12px; font-weight: 600; }
.task-progress .tp-preview-head strong::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9299ab; }
.task-progress[data-status="active"] .tp-preview-head strong::before { background: var(--tp-mint); box-shadow: 0 0 0 3px #93dece14; }
.task-progress .tp-detail { color: #b3bbcf; font-size: 11px; font-variant-numeric: tabular-nums; }
.task-progress .tp-paper { outline-offset: -3px; padding: 13px 15px; min-height: 100px; max-height: 235px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4c546a transparent; }
.task-progress .tp-paper:focus-visible { outline: 2px solid var(--tp-violet); }
.task-progress .tp-paper-title { color: #dfdffc; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.task-progress .tp-paper-title:not(:empty) { margin-bottom: 6px; }
.task-progress .tp-paper-text, .task-progress .tp-paper[data-empty="true"]::before { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-progress .tp-paper-text { color: #e4e6ef; }
.task-progress .tp-paper[data-empty="true"]::before { content: attr(data-placeholder); color: #9ca6ba; }
#aiTaskProgress, #formatTaskProgress { grid-column: 1 / -1; }
#formatTaskProgress { scroll-margin-top: 6rem; }
#formatTaskProgress, #parseTaskProgress { margin-top: 14px; }
#workflowShell #aiPanel[aria-busy="true"] :is(label[for="aiOutput"],#aiOutput) { display: none !important; }
#workflowShell #aiStop[hidden] { display: none !important; }
#workflowShell #aiPanel #aiStop { width: auto; min-height: 40px; margin: 5px 0 0 7px; padding: 6px 13px; border-radius: 99px; font-size: 13px; }
#practiceBundle .practice-task-actions :is(button,a):hover, #workflowShell #aiPanel #aiStop:hover { transform: none; }
@container (max-width: 530px) {
  .task-progress .tp-columns { grid-template-columns: 1fr; gap: 11px; margin-top: 12px; }
  .task-progress .tp-steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 8px; }
  .task-progress .tp-paper { max-height: 182px; }
}
@media (prefers-reduced-motion: reduce) { .task-progress .tp-track span { transition: none; } }
@media (prefers-contrast: more) {
  .task-progress { --tp-muted: #e0e4f4; }
  .task-progress .tp-steps li { color: #e0e4f4; }
}
