.queue {
  width: min(100%, 724px);
  margin: 0 auto 0.58rem;
  padding: 0.34rem 0.38rem 0.36rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.28rem;
}

.summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 650;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.46rem;
  min-height: 40px;
  padding: 0.34rem 0.38rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.item:hover {
  background: rgba(255, 255, 255, 0.036);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.itemQueued {
  cursor: grab;
}

.itemQueued:active {
  cursor: grabbing;
}

.itemDragSource {
  opacity: 0.58;
}

.itemDropTarget {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.062);
  transform: translateY(-1px);
}

.dragHandle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.26);
  cursor: inherit;
  padding: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.item:hover .dragHandle {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.52);
}

.taskBody {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.taskTitle {
  min-width: 0;
}

.taskPrompt {
  display: block;
  font-size: 0.89rem;
  font-weight: 520;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deleteButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.deleteButton:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
}

.actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.menuButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.menuButton:hover,
.menuButton[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
}

.menu {
  position: absolute;
  bottom: calc(100% + 0.3rem);
  right: 0;
  z-index: 5;
  min-width: 176px;
  padding: 0.28rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 20, 23, 0.92);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menuItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.56rem 0.64rem;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.menuItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .queue {
    border-radius: 16px;
    padding: 0.32rem 0.34rem 0.34rem;
    margin-bottom: 0.48rem;
  }

  .item {
    gap: 0.4rem;
    padding: 0.34rem 0.36rem;
  }

  .taskPrompt {
    font-size: 0.86rem;
  }
}
