.job-queue-dialog {
  width: min(960px, 96vw);
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 14px;
  color: #eee;
  background: #182126;
  border: 1px solid #52616b;
}

.job-queue-dialog::backdrop {
  background: rgba(0, 0, 0, .75);
}

.job-queue-dialog .dialog-heading,
.job-queue-toolbar,
.job-queue-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.job-queue-dialog h2,
.job-queue-dialog h3 {
  color: #f0d69a;
}

.job-queue-dialog button {
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
}

.job-queue-dialog button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.job-queue-lane {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #43545c;
  border-radius: 10px;
}

.job-queue-card {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #64747b;
  border-radius: 8px;
  background: #263238;
  overflow-wrap: anywhere;
}

.job-queue-card > * {
  display: block;
  margin-bottom: 8px;
}

.job-queue-card small {
  color: #c4d1d5;
}

.job-queue-controls {
  justify-content: flex-start;
}

#jobQueueStatus {
  font-size: .9rem;
}

@media (max-width: 600px) {
  .job-queue-dialog {
    width: 98vw;
    max-height: 94vh;
    padding: 12px;
  }

  .job-queue-lane {
    padding: 9px;
  }

  .job-queue-controls button {
    flex: 1 1 44%;
  }
}

/* Compact owner queue action controls */
.job-queue-dialog .job-queue-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.job-queue-dialog .job-queue-controls button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .job-queue-dialog .job-queue-controls button {
    flex: 0 0 auto;
    min-height: 40px;
  }
}
