/* 拖拽手柄 */
.task-drag-handle {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
  color: var(--color-text-disabled);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.task-drag-handle:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg);
}

.task-drag-handle:active {
  cursor: grabbing;
  color: var(--azure-blue);
  background: var(--azure-blue-lighter);
}

.task-drag-handle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Sortable 拖拽状态 */
.sortable-ghost {
  opacity: .4;
  background: var(--azure-blue-lighter) !important;
  border: 1px dashed var(--azure-blue) !important;
}

.sortable-chosen {
  box-shadow: var(--shadow-8);
}

.sortable-drag {
  box-shadow: var(--shadow-16);
  border-radius: var(--radius-md);
  opacity: .9;
}

/* 任务列表项 */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  transition: background .12s;
}

.task-item:hover {
  background: var(--color-bg-alt);
}

.task-item__priority {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}
.task-item__priority--high   { background: var(--color-danger); }
.task-item__priority--medium { background: var(--color-warning); }
.task-item__priority--low    { background: var(--color-success); }

.task-item__content {
  flex: 1;
  min-width: 0;
}

.task-item__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* 尝试次数徽标 */
.task-attempt-badge {
  display: inline-block;
  min-width: 24px;
  padding: 1px 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border-radius: 10px;
  text-align: center;
}

/* 好友管理表 */
.az-friend-table-wrap {
  overflow-x: auto;
}

.az-friend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.az-friend-table thead {
  background: var(--color-bg-alt);
  position: sticky;
  top: 0;
  z-index: 1;
}
.az-friend-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.az-friend-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.az-friend-table tbody tr:hover {
  background: var(--color-bg-alt);
}
.az-friend-table__idx {
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

.az-friend-table__qq {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  color: var(--azure-blue);
}
.az-friend-pagination {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}
