.project-overview-page {
  max-width: 1700px;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: 250px minmax(600px, 1fr) 90px;
}

.project-overview-axis-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  color: #67748a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-overview-row {
  border-bottom: 1px solid #e2e8f0;
}

.project-overview-row:last-child {
  border-bottom: 0;
}

.project-overview-row > .timeline-label {
  align-self: stretch;
}

.project-overview-track {
  position: relative;
  min-height: 60px;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.4);
  --timeline-future-buffer: 60px;
}

.project-overview-track.timeline-lanes-1 .project-overview-pipeline {
  top: 18px;
}

.project-overview-pipeline {
  text-decoration: none;
}

.project-overview-pipeline i {
  font-style: normal;
}

.project-overview-pipeline.is-fallback {
  left: 0.75rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  border: 1px dashed #94a3b8;
  opacity: 0.75;
}

.project-overview-pipeline.timeline-job-skipped,
.project-overview-pipeline.timeline-job-manual,
.project-overview-pipeline.timeline-job-scheduled {
  background: #cbd5e1;
  color: #334155;
}

.project-overview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: #67748a;
  font-size: 0.75rem;
  line-height: 1rem;
}

.project-overview-empty[hidden] {
  display: none;
}

.project-overview-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-variant-numeric: tabular-nums;
}

.project-overview-count span {
  color: #67748a;
}

#project-pipeline-detail-slot:empty {
  display: none;
}

.project-pipeline-detail {
  scroll-margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #5b4fd6;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.project-pipeline-detail:focus {
  outline: 2px solid #5b4fd6;
  outline-offset: 2px;
}

.project-pipeline-detail-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.project-pipeline-detail-head h2,
.project-pipeline-job h3 {
  margin-top: 0.25rem;
}

.project-pipeline-detail-head p:last-child,
.project-pipeline-job p {
  margin-top: 0.25rem;
  color: #67748a;
  font-size: 0.75rem;
}

.project-pipeline-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.project-pipeline-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.75rem;
}

.project-pipeline-detail-meta span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.project-pipeline-jobs {
  display: flex;
  flex-direction: column;
}

.project-pipeline-jobs-empty {
  padding: 1.5rem 1.25rem;
  color: #67748a;
  font-size: 0.875rem;
}

.project-pipeline-job {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.project-pipeline-job:last-child {
  border-bottom: 0;
}

.project-pipeline-job > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .project-pipeline-detail-head,
  .project-pipeline-job {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .project-pipeline-detail-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
