.task-progress {
  --tp-surface: var(--customer-surface, #fff);
  --tp-text: var(--customer-text, #202124);
  --tp-muted: var(--customer-muted, #62666d);
  --tp-border: var(--customer-border, #e7e8eb);
  --tp-accent: var(--customer-accent, #b33f38);
  --tp-active-text: #91362e;
  --tp-active-bg: #fff1ed;
  --tp-waiting: #8a6500;
  --tp-waiting-bg: #fff5c7;
  --tp-ready: #246851;
  --tp-ready-bg: #edf6f1;
  --tp-warning: #86551b;
  --tp-warning-bg: #fcf5e9;
  --tp-neutral-bg: #f2f3f5;
  font: 400 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--tp-text);
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 16px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  isolation: isolate;
  container-type: inline-size;
}
.task-progress *,
.task-progress *::before,
.task-progress *::after {
  box-sizing: border-box;
}
.task-progress h2,
.task-progress h3,
.task-progress p,
.task-progress ul,
.task-progress ol,
.task-progress dl {
  margin: 0;
}
.task-progress ul,
.task-progress ol {
  list-style: none;
  padding: 0;
}
.task-progress button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.task-progress button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.task-progress button:focus-visible {
  outline: 2px solid var(--tp-accent);
  outline-offset: 3px;
}
.task-progress button:not(:disabled):hover {
  background: #f5f5f6;
}
.task-progress button:not(:disabled):active {
  background: #ededf0;
}
.task-progress svg {
  flex-shrink: 0;
}
.tp-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--tp-border);
}
.tp-header-reference {
  position: sticky;
  top: var(--tp-sticky-top, 0px);
  z-index: 2;
  background: var(--tp-surface);
  border-radius: 16px 16px 0 0;
}
.tp-order-reference {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.tp-order-reference dd {
  margin: 0;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.tp-refresh {
  display: flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tp-border);
  border-radius: 9px;
  background: transparent;
  padding: 0;
  color: var(--tp-muted);
  font-size: 13px !important;
  white-space: nowrap;
}
.task-progress[aria-busy='true'] .tp-refresh svg {
  animation: tp-refresh-spin 900ms linear infinite;
}
@keyframes tp-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
.tp-task {
  --tp-current: var(--tp-muted);
  --tp-current-bg: var(--tp-neutral-bg);
  padding: 14px 16px;
  position: relative;
}
.tp-state-waiting {
  --tp-current: var(--tp-waiting);
  --tp-current-bg: var(--tp-waiting-bg);
}
.tp-state-active {
  --tp-current: var(--tp-accent);
  --tp-current-bg: var(--tp-active-bg);
}
.tp-state-ready {
  --tp-current: var(--tp-ready);
  --tp-current-bg: var(--tp-ready-bg);
}
.tp-state-warning {
  --tp-current: var(--tp-warning);
  --tp-current-bg: var(--tp-warning-bg);
}
.tp-task + .tp-task {
  border-top: 1px solid var(--tp-border);
}
/* Motion belongs to the generic track, never to the icon or its ancestors. */
.tp-step-current .tp-node::after,
.tp-step-terminal .tp-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px var(--tp-current);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}
.tp-motion-target .tp-step-current .tp-node::after,
.tp-state-complete .tp-step-terminal .tp-node::after {
  animation: tp-track-breathe 3.2s ease-in-out infinite;
}
.task-progress[aria-busy='true'] .tp-steps .tp-step .tp-node::after {
  animation-play-state: paused;
}
@keyframes tp-track-breathe {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.26;
  }
}
.tp-task-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tp-task-object {
  min-width: 0;
}
.tp-task-object h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 620;
  letter-spacing: -0.15px;
}
.tp-quantity {
  display: inline-block;
  font-weight: 400;
  font-size: 13px;
  margin-left: 9px;
  color: var(--tp-muted);
  white-space: nowrap;
}
.tp-task-object p {
  font-size: 13px;
  color: var(--tp-muted);
  margin-top: 4px;
}
.tp-remark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px !important;
  font-size: 13px;
  color: var(--tp-muted);
}
.tp-remark-label {
  flex-shrink: 0;
}
.tp-remark-value {
  min-width: 0;
  white-space: pre-wrap;
}
.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 7px;
  flex-shrink: 0;
  max-width: 45%;
  line-height: 1.5;
}
.tp-badge svg {
  width: 14px;
  height: 14px;
}
.tp-tone-neutral,
.tp-tone-complete {
  color: var(--tp-muted);
  background: var(--tp-neutral-bg);
}
.tp-tone-waiting {
  color: var(--tp-waiting);
  background: var(--tp-waiting-bg);
}
.tp-tone-active {
  color: var(--tp-active-text);
  background: var(--tp-active-bg);
}
.tp-tone-ready {
  color: var(--tp-ready);
  background: var(--tp-ready-bg);
}
.tp-tone-warning {
  color: var(--tp-warning);
  background: var(--tp-warning-bg);
}
.tp-steps {
  display: flex;
  align-items: flex-start;
  margin-top: 14px !important;
  margin-bottom: 4px !important;
}
.tp-step {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--tp-muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 3px;
}
.tp-connector {
  position: absolute;
  top: 9px;
  left: calc(50% + 15px);
  right: calc(-50% + 15px);
  height: 2px;
  border-radius: 2px;
  background: #e0e3e8;
  transition: background-color 280ms ease, opacity 280ms ease;
}
.tp-connector-done {
  background: var(--tp-current);
  opacity: 0.5;
}
.tp-connector-gap {
  background: repeating-linear-gradient(
    to right,
    #c5cad2 0 3px,
    transparent 3px 6px
  );
}
.tp-node {
  transition: border-color 280ms ease, background-color 280ms ease,
    box-shadow 280ms ease;
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #969da8;
  background: var(--tp-surface);
  border-radius: 50%;
  z-index: 1;
  flex-shrink: 0;
}
.tp-node svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.tp-step-done .tp-node {
  background: var(--tp-current-bg);
  color: var(--tp-current);
  border-color: transparent;
}
.tp-step-current,
.tp-step-terminal {
  color: var(--tp-current);
  font-weight: 600;
}
.tp-step-label {
  padding: 1px 2px;
  transition: color 280ms ease;
}
.tp-step-current .tp-node,
.tp-step-terminal .tp-node {
  border-color: transparent;
  background: var(--tp-current-bg);
  box-shadow: 0 0 0 3px var(--tp-current-bg);
}
.tp-step-current .tp-state-icon,
.tp-step-terminal .tp-state-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}
.tp-step-upcoming .tp-node {
  border-color: #8c939e;
  width: 10px;
  height: 10px;
  margin: 5px;
}
.tp-step-unknown .tp-node {
  border-style: dashed;
}
.tp-step-skipped .tp-node {
  font-size: 12px;
  color: var(--tp-muted);
  background: #f7f8fa;
}
.tp-show-all svg {
  width: 13px;
  height: 13px;
  transition: transform 160ms;
}
.tp-rotated {
  transform: rotate(180deg);
}
.tp-notice {
  margin-top: 10px !important;
  color: var(--tp-muted);
  font-size: 13px;
}
.tp-notice-ready {
  color: var(--tp-ready);
}
.tp-fields {
  border-top: 0;
  margin-top: 10px !important;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.tp-fields dt {
  color: var(--tp-muted);
  font-size: 12px;
}
.tp-fields dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.tp-primary-fields {
  border-top: 0;
  margin-top: 10px !important;
  padding-top: 0;
  align-items: baseline;
}
.tp-primary-fields > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
}
.tp-primary-fields dd {
  margin: 0;
  font-size: 13px;
}
.tp-fields > div {
  min-width: 0;
}
.tp-primary-fields > div:only-child {
  grid-column: 1 / -1;
}
.tp-primary-fields .tp-field-primary dd {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: var(--tp-text);
}
.tp-state-ready .tp-primary-fields .tp-field-primary dd {
  color: var(--tp-ready);
}
.tp-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--tp-muted);
  background: #fafafa;
  border: 0;
  border-top: 1px solid var(--tp-border);
  border-radius: 0 0 16px 16px;
  width: 100%;
  font-size: 13px !important;
  padding: 12px;
}
.tp-alert {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  margin: 18px 24px 0;
  background: var(--tp-warning-bg);
  border-radius: 9px;
  color: var(--tp-warning);
  font-size: 13px;
}
.tp-alert strong {
  font-weight: 550;
}
.tp-alert p {
  font-size: 12px;
  margin-top: 3px;
}
.tp-alert svg {
  margin-top: 2px;
}
.tp-alert-subtle {
  background: #f6f6f7;
  color: var(--tp-muted);
}
.tp-stale .tp-step-current {
  color: var(--tp-muted);
}
.tp-stale .tp-step-current .tp-node,
.tp-stale .tp-step-terminal .tp-node {
  border-color: var(--tp-muted);
  box-shadow: none;
}
.tp-task-inactive .tp-task-object {
  color: var(--tp-muted);
}
.tp-empty-error {
  padding: 38px 24px 42px;
  text-align: center;
}
.tp-error-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--tp-neutral-bg);
  border-radius: 50%;
  color: var(--tp-muted);
  margin-bottom: 12px;
}
.tp-empty-error h3 {
  font-size: 15px;
  font-weight: 550;
}
.tp-empty-error p {
  font-size: 13px;
  color: var(--tp-muted);
  margin-top: 7px;
}
.tp-skeleton {
  padding: 26px 24px 34px;
}
.tp-skeleton > span {
  display: block;
  height: 14px;
  border-radius: 5px;
  background: #eeeef0;
  width: 42%;
  margin-bottom: 12px;
}
.tp-skeleton > span + span {
  height: 11px;
  width: 28%;
}
.tp-skeleton > div {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}
.tp-skeleton i {
  height: 13px;
  flex: 1;
  border-radius: 4px;
  background: #eeeef0;
}
.tp-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tp-steps-vertical {
  display: block;
  padding-left: 4px !important;
}
.tp-steps-vertical .tp-step {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
  min-height: 42px;
  padding: 0 0 14px;
}
.tp-steps-vertical .tp-connector {
  top: 25px;
  bottom: 5px;
  left: 9px;
  right: auto;
  width: 2px;
  height: auto;
}
.tp-steps-vertical .tp-connector-gap {
  background: repeating-linear-gradient(
    to bottom,
    #c5cad2 0 3px,
    transparent 3px 6px
  );
}
.tp-steps-vertical .tp-step:last-child {
  padding-bottom: 0;
}
@container (max-width: 440px) {
  .tp-header {
    padding: 12px 16px;
    gap: 8px;
  }
  .tp-task {
    padding: 14px 16px;
  }
  .tp-task-heading {
    gap: 8px;
  }
  .tp-task-object h3 {
    font-size: 15px;
  }
  .tp-badge {
    font-size: 12px;
    padding: 4px 7px;
  }
  .tp-step {
    font-size: 12px;
  }
  .tp-alert {
    margin: 16px 16px 0;
    padding: 12px;
  }
  .tp-notice {
    font-size: 12px;
  }
  .tp-fields {
    gap: 12px;
  }
  .tp-quantity {
    font-size: 12px;
    margin-left: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task-progress *,
  .task-progress *::before,
  .task-progress *::after {
    animation: none !important;
    transition: none !important;
  }
}
.tp-motion-off *,
.tp-motion-off *::before,
.tp-motion-off *::after,
.tp-stale .tp-badge {
  animation: none !important;
  transition: none !important;
}
