.xueqiu-collector-card {
  order: 4;
  border-top: 3px solid var(--signal);
}

.collector-status-pill.warn {
  background: rgba(202, 138, 4, 0.12);
  color: #a16207;
}

.collector-status-pill.bad {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.collector-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.collector-current span,
.collector-stats span,
.collector-progress-head span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.collector-current strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 680;
}

.collector-current small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.collector-page {
  min-width: 78px;
  text-align: right;
}

.collector-page strong {
  font-family: var(--mono);
  font-size: 16px;
}

.collector-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.collector-progress-head strong {
  font-family: var(--mono);
  font-size: 12px;
}

.collector-progress {
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(16, 21, 28, 0.08);
}

.collector-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
  transition: width 400ms ease;
}

.collector-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collector-stats div {
  min-width: 0;
  padding: 11px 8px;
}

.collector-stats div + div {
  border-left: 1px solid var(--line);
}

.collector-stats strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
}

.collector-eta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0 2px;
}

.collector-eta div {
  min-width: 0;
}

.collector-eta span,
.collector-eta small {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.collector-eta strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 680;
}

.collector-eta small {
  flex: 0 0 auto;
  color: var(--muted);
  text-align: right;
}

.collector-page-timings {
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.collector-storage {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 0;
}

.collector-storage span,
.collector-storage small {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.collector-storage strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 680;
}

.collector-storage small {
  color: var(--muted);
  text-align: right;
}

.collector-page-timings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.collector-page-timings-head span,
.collector-page-timings-head small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

.collector-page-timings-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collector-page-timing-chart {
  display: grid;
  grid-template-columns: repeat(100, minmax(1px, 1fr));
  align-items: end;
  gap: 1px;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  overflow: hidden;
}

.collector-page-timing-chart span {
  display: block;
  min-width: 1px;
  max-height: 100%;
  border-radius: 1px 1px 0 0;
  background: #0f766e;
  opacity: 0.82;
}

.collector-page-timing-chart span.is-pause {
  background: #ca8a04;
}

.collector-page-timing-chart span.is-start {
  background: #64748b;
}

.collector-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.collector-foot time {
  flex: 0 0 auto;
  font-family: var(--mono);
}

.collector-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #dc2626;
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.collector-error strong,
.collector-error span {
  display: block;
}

.collector-error span {
  margin-top: 3px;
}

@media (max-width: 640px) {
  .collector-current {
    gap: 10px;
  }

  .collector-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .collector-eta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .collector-eta small {
    text-align: left;
  }

  .collector-page-timings-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .collector-page-timings-head small {
    width: 100%;
    text-align: left;
  }

  .collector-storage {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .collector-storage small {
    text-align: left;
  }

  .collector-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collector-stats div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .collector-stats div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}
